class documentation

class twisted.web.distrib.ResourceSubscription(resource.Resource): (source)

View In Hierarchy

Undocumented

Class Variable isLeaf Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource.
Instance Variable waiting Undocumented
Method __init__ Initialize.
Instance Variable host Undocumented
Instance Variable port Undocumented
Instance Variable pending Undocumented
Instance Variable publisher Undocumented
Method __getstate__ Get persistent state for this ResourceSubscription.
Method connected I've connected to a publisher; I'll now send all my requests.
Method notConnected I can't connect to a publisher; I'll now reply to all pending requests.
Method booted Undocumented
Method render Render this request, from my server.
Class Variable _log Undocumented

Inherited from Resource:

Class Variable server Undocumented
Instance Variable children Undocumented
Method listStaticNames Undocumented
Method listStaticEntities Undocumented
Method listNames Undocumented
Method listEntities Undocumented
Method listDynamicNames Undocumented
Method listDynamicEntities Undocumented
Method getStaticEntity Undocumented
Method getDynamicEntity Undocumented
Method delEntity Undocumented
Method reallyPutEntity Undocumented
Method getChild Retrieve a 'child' resource from me.
Method getChildWithDefault Retrieve a static or dynamically generated child resource from me.
Method getChildForRequest Undocumented
Method putChild Register a static child.
Method render_HEAD Default handling of HEAD method.
isLeaf = (source)

Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource.

(type: int)
waiting = (source)

Undocumented

(type: int)
_log = (source)

Undocumented

def __init__(self, host, port): (source)
host = (source)

Undocumented

port = (source)

Undocumented

pending = (source)

Undocumented

(type: list)
publisher = (source)

Undocumented

def __getstate__(self): (source)

Get persistent state for this ResourceSubscription.

def connected(self, publisher): (source)

I've connected to a publisher; I'll now send all my requests.

def notConnected(self, msg): (source)

I can't connect to a publisher; I'll now reply to all pending requests.

def booted(self): (source)

Undocumented

def render(self, request): (source)

Render this request, from my server.

This will always be asynchronous, and therefore return NOT_DONE_YET. It spins off a request to the pb client, and either adds it to the list of pending issues or requests it immediately, depending on if the client is already connected.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.