t.s.j.setUnjellyableForClass(classname, unjellyable) : function documentation

Part of twisted.spread.jelly View Source

Set which local class will represent a remote type.

If you have written a Copyable class that you expect your client to be receiving, write a local "copy" class to represent it, then call:

   jellier.setUnjellyableForClass('module.package.Class', MyCopier).

Call this at the module level immediately after its class definition. MyCopier should be a subclass of RemoteCopy.

The classname may be a special tag returned by 'Copyable.getTypeToCopyFor' rather than an actual classname.

This call is also for cached classes, since there will be no overlap. The rules are the same.

API Documentation for Twisted, generated by pydoctor at 2015-01-30 14:14:53.