class Collection: (source)
Known subclasses: twisted.python.roots.Constrained
Constructor: Collection(entities)
I represent a static collection of entities.
I contain methods designed to represent collections that can be dynamically created.
Method | __init__ |
Initialize me. |
Method | del |
Remove a static reference for 'name'. |
Method | get |
Subclass this to generate an entity on demand. |
Method | get |
Retrieve an entity from me. |
Method | get |
Get an entity that was added to me using putEntity. |
Method | list |
A list of all name, entity that I can generate on demand. |
Method | list |
Retrieve a list of the names of entities that I store references to. |
Method | list |
Retrieve a list of all name, entity pairs I contain. |
Method | list |
Retrieve a list of all names for entities that I contain. |
Method | list |
Retrieve a list of all name, entity pairs that I store references to. |
Method | list |
Retrieve a list of the names of entities that I store references to. |
Method | put |
Store a static reference on 'name' for 'entity'. |
Method | remove |
Remove an entity for 'name', based on the content of 'request'. |
Method | store |
Store an entity for 'name', based on the content of 'request'. |
Instance Variable | entities |
Undocumented |
twisted.web.vhost.VirtualHostCollection
Remove a static reference for 'name'.
Raises a KeyError if the operation fails.
Retrieve an entity from me.
I will first attempt to retrieve an entity statically; static entities will obscure dynamic ones. If that fails, I will retrieve the entity dynamically.
If I cannot retrieve an entity, I will return 'None'.
twisted.web.vhost.VirtualHostCollection
Get an entity that was added to me using putEntity.
This method will return 'None' if it fails.
twisted.web.vhost.VirtualHostCollection
Retrieve a list of all name, entity pairs that I store references to.
See getStaticEntity.
twisted.python.roots.Constrained
Store a static reference on 'name' for 'entity'.
Raises a KeyError if the operation fails.