[Twisted-web] nevow.compy
James Y Knight
foom at fuhm.net
Thu Oct 14 10:20:53 MDT 2004
On Oct 14, 2004, at 11:35 AM, Valentino Volonghi wrote:
> On Thu, 14 Oct 2004 11:15:25 -0400, James Y Knight <foom at fuhm.net>
> wrote:
>
>> Nevow.compy is a nasty thing that will be going away soon. Right now,
>> if you use Nevow with Twisted SVN, it doesn't use compy. Compy should
>> be going away (leaving only the compatibility wrapper) soon after
>> Twisted 2.0 is released, thus nevow will be using Zope Interface as
>> well.
>
> Right now you must use compy.Interface to remember some interface on
> the context, otherwise it will crash. :(.
> I seeing this in weever (my sandbox) and I had to use compy.Interface
> to declare the interfaces that need to be remembered in the context.
If you're using Nevow with Twisted SVN, compy is already stubbed out,
so that shouldn't be the case. But, yes, if you're using it with
Twisted 1.3, you need to use compy or else random things won't work
right. BTW, if you do use nevow with Twisted SVN I recommend doing:
import warnings
import twisted.python.components
warnings.filterwarnings('ignore', '',
twisted.python.components.ComponentsDeprecationWarning)
or you'll be flooded with warnings. ;)
James
More information about the Twisted-web
mailing list