[Twisted-Python] Bending Jelly

Simon Pickles sipickles at hotmail.com
Sun Apr 27 09:22:02 MDT 2008


So.... what are the ramifications of doing this:

class PortableGameObject(GameObject, pb.Copyable, pb.RemoteCopy):
    def getStateToCopy(self):
        d = self.__dict__.copy()
        return d
    def setCopyableState(self, state):
        #newDict = { 'newness' : 1 }
        self.__dict__ = state

pb.setUnjellyableForClass(PortableGameObject, PortableGameObject)


I only ask since I want to make the objects transmittable and receivable.

Thanks

Si

-- 

http://www.squirtual-reality.com
--------------------------------
Linux user #458601 - http://counter.li.org.







More information about the Twisted-Python mailing list