Ticket #3054 defect closed fixed
Small error in the documentation for pb
| Reported by: | njal | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | pb | Keywords: | |
| Cc: | Branch: | branches/setcopierforclass-docs-3054-3 | |
| Author: | exarkun | Launchpad Bug: |
Description
I was looking at the documentation for t.s.pb today (for Copyable specifically), and after following the pb-intro-howto, I found the following small issues:
http://twistedmatrix.com/trac/browser/trunk/doc/core/howto/pb-intro.xhtml#L243
should read
flavors.setCopierForClass(Foo, RemoteFoo) # (or even setUnjellyableForClass)
As it stands now, using str(Foo), will result the follow if defined in module 'model':
twisted.spread.jelly.InsecureJelly: Module model not allowed (in type model.Foo).
I have not checked this with any other python-version than python 2.5.1 on OS X Leopard.
Also, the docstring for this function: http://twistedmatrix.com/trac/browser/trunk/twisted/spread/jelly.py#L191 refers to MyCopier, but this probably should read MyJellier?
197
198 jellier.setUnjellyableForClass('module.package.Class', MyJellier).
199
200 Call this at the module level immediately after its class
201 definition. MyCopier should be a subclass of RemoteCopy.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

