Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`web`.`distrib`.`ResourcePublisher``

class documentation

`class ResourcePublisher(pb.Root, styles.Versioned): (source)`

Constructor: `ResourcePublisher(site)`

View In Hierarchy

`ResourcePublisher` exposes a remote API which can be used to respond to request.

Method | `__init__` | Undocumented
Method | `getPerspectiveNamed` | Undocumented
Method | `remote_request` | Look up the resource for the given request and render it.
Method | `upgradeToVersion2` | Undocumented
Class Variable | `persistenceVersion` | Undocumented
Instance Variable | `site` | The site which will be used for resource lookup.
Class Variable | `_log` | Undocumented

Inherited from `Root`:

Method | `rootObject` | A factory is requesting to publish me as a root object.

Inherited from `Referenceable` (via `Root`):

Method | `jellyFor` | (internal)
Method | `remoteMessageReceived` | A remote message has been received. Dispatch it appropriately.
Class Variable | `perspective` | I am an object sent remotely as a direct reference.

Inherited from `Serializable` (via `Root`, `Referenceable`):

Method | `processUniqueID` | Return an ID which uniquely represents this object for this process.

Inherited from `Jellyable` (via `Root`, `Referenceable`, `Serializable`):

Method | `getStateFor` | Undocumented

Inherited from `Versioned` (via `Root`, `Referenceable`, `Serializable`, `Jellyable`):

Method | `__getstate__` | Get state, adding a version number to it on its way out.
Method | `__setstate__` | Undocumented
Method | `versionUpgrade` | (internal) Do a version upgrade.
Class Variable | `persistenceForgets` | Undocumented
Instance Variable | `__dict__` | Undocumented

def __init__(self, site): (source)

Undocumented

def getPerspectiveNamed(self, name): (source)

Undocumented

def remote_request(self, request): (source)

Look up the resource for the given request and render it.

def upgradeToVersion2(self): (source)

Undocumented

persistenceVersion: `int` = (source)
overrides `twisted.persisted.styles.Versioned.persistenceVersion`

Undocumented

site: `twisted.web.server.Site` = (source)

The site which will be used for resource lookup.

_log = (source)

Undocumented