class documentation

class VirtualHostCollection(roots.Homogenous): (source)

View In Hierarchy

Wrapper for virtual hosts collection.

This exists for configuration purposes.

Method __init__ Initialize me.
Method del​Entity Remove a static reference for 'name'.
Method get​Static​Entity Get an entity that was added to me using putEntity.
Method list​Static​Entities Retrieve a list of all name, entity pairs that I store references to.
Method really​Put​Entity Undocumented
Instance Variable nvh Undocumented

Inherited from Homogenous:

Method entity​Constraint A method that determines whether an entity may be added to me.
Method get​Entity​Type Undocumented
Method get​Name​Type Undocumented

Inherited from Constrained (via Homogenous):

Method name​Constraint A method that determines whether an entity may be added to me with a given name.
Method put​Entity Store an entity if it meets both constraints.

Inherited from Collection (via Homogenous, Constrained):

Method get​Dynamic​Entity Subclass this to generate an entity on demand.
Method get​Entity Retrieve an entity from me.
Method list​Dynamic​Entities A list of all name, entity that I can generate on demand.
Method list​Dynamic​Names Retrieve a list of the names of entities that I store references to.
Method list​Entities Retrieve a list of all name, entity pairs I contain.
Method list​Names Retrieve a list of all names for entities that I contain.
Method list​Static​Names Retrieve a list of the names of entities that I store references to.
Method remove​Entity Remove an entity for 'name', based on the content of 'request'.
Method store​Entity Store an entity for 'name', based on the content of 'request'.
Instance Variable entities Undocumented
def __init__(self, nvh): (source)
Initialize me.
def delEntity(self, name): (source)

Remove a static reference for 'name'.

Raises a KeyError if the operation fails.

def getStaticEntity(self, name): (source)

Get an entity that was added to me using putEntity.

This method will return 'None' if it fails.

def listStaticEntities(self): (source)

Retrieve a list of all name, entity pairs that I store references to.

See getStaticEntity.

def reallyPutEntity(self, name, entity): (source)

Undocumented