t.s.publish : module documentation

Part of twisted.spread View Source

Persistently cached objects for PB.

Maintainer: Glyph Lefkowitz

Future Plans: None known.

Class Publishable An object whose cached state persists across sessions.
Class RemotePublished The local representation of remote Publishable object.
Function whenReady Wrap a deferred returned from a pb method in another deferred that expects a RemotePublished as a result. This will allow you to wait until the result is really available.
Function _pubReady (internal)
def whenReady(d): (source)

Wrap a deferred returned from a pb method in another deferred that expects a RemotePublished as a result. This will allow you to wait until the result is really available.

Idiomatic usage would look like:

   publish.whenReady(serverObject.getMeAPublishable()).addCallback(lookAtThePublishable)
def _pubReady(result, d2): (source)
(internal)
API Documentation for Twisted, generated by pydoctor at 2014-05-12 18:27:00.