Home | Trees | Index | Help |
|
---|
Package twisted :: Package python :: Module roots :: Class Collection |
|
Constrained
I represent a static collection of entities.
I contain methods designed to represent collections that can be dynamically created.Method Summary | |
---|---|
Initialize me. | |
Remove a static reference for 'name'. | |
Subclass this to generate an entity on demand. | |
Retrieve an entity from me. | |
Get an entity that was added to me using putEntity. | |
A list of all name, entity that I can generate on demand. | |
Retrieve a list of the names of entities that I store references to. | |
Retrieve a list of all name, entity pairs I contain. | |
Retrieve a list of all names for entities that I contain. | |
Retrieve a list of all name, entity pairs that I store references to. | |
Retrieve a list of the names of entities that I store references to. | |
Store a static reference on 'name' for 'entity'. | |
Remove an entity for 'name', based on the content of 'request'. | |
Store an entity for 'name', based on the content of 'request'. |
Method Details |
---|
__init__(self,
entities=None)
Initialize me.
|
delEntity(self, name)Remove a static reference for 'name'. Raises a KeyError if the operation fails. |
getDynamicEntity(self, name, request)Subclass this to generate an entity on demand. This method should return 'None' if it fails. |
getEntity(self, name, request)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'. |
getStaticEntity(self, name)Get an entity that was added to me using putEntity. This method will return 'None' if it fails. |
listDynamicEntities(self, request)A list of all name, entity that I can generate on demand. See getDynamicEntity. |
listDynamicNames(self)Retrieve a list of the names of entities that I store references to. See getDynamicEntity. |
listEntities(self, request)Retrieve a list of all name, entity pairs I contain. See getEntity. |
listNames(self, request)Retrieve a list of all names for entities that I contain. See getEntity. |
listStaticEntities(self)Retrieve a list of all name, entity pairs that I store references to. See getStaticEntity. |
listStaticNames(self)Retrieve a list of the names of entities that I store references to. See getStaticEntity. |
putEntity(self, name, entity)Store a static reference on 'name' for 'entity'. Raises a KeyError if the operation fails. |
removeEntity(self, name, request)Remove an entity for 'name', based on the content of 'request'. |
storeEntity(self, name, request)Store an entity for 'name', based on the content of 'request'. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:26 2004 | http://epydoc.sf.net |