[Twisted-Python] Jelly and Components

Andrew Bennetts andrew-twisted at puzzling.org
Thu Oct 10 02:17:42 EDT 2002

Instead of 
    class Foo(jelly.Jellyable):
        # etc

Shouldn't we be doing:
    class Foo:
        __implements__ = jelly.IJellyable
        # etc

    class Foo:
        # etc
    components.registerAdapter(..., Foo, jelly.IJellyable)


This strikes me as being like copy_reg, but better :)


More information about the Twisted-Python mailing list