Package twisted :: Package coil :: Package plugins :: Module web :: Class StaticConfigurator
[frames | no frames]

Class StaticConfigurator

          Configurator --+
                         |
Collection --+           |
             |           |
   Constrained --+       |
                 |       |
            Locked --+   |
                     |   |
      StaticCollection --+
                         |
                        StaticConfigurator


Method Summary
  __init__(self, instance)
Initialize this configurator with the instance it will be configuring.
  config_execCGI(self, allowed)
  config_execEPY(self, allowed)
  getConfiguration(self)
Return a mapping of key/value tuples describing my configuration.
    Inherited from Configurator
  configDispensers(self)
Return list of dispensers.
  configure(self, dict)
Set a list of configuration variables.
  getInstance(self)
Return the instance being configured.
  getType(self, name)
Get the type of a configuration variable.
    Inherited from Locked
  entityConstraint(self, entity)
A method that determines whether an entity may be added to me.
  lock(self)
    Inherited from Constrained
  nameConstraint(self, name)
A method that determines whether an entity may be added to me with a given name.
  putEntity(self, name, entity)
Store an entity if it meets both constraints.
  reallyPutEntity(self, name, entity)
    Inherited from Collection
  delEntity(self, name)
Remove a static reference for 'name'.
  getDynamicEntity(self, name, request)
Subclass this to generate an entity on demand.
  getEntity(self, name, request)
Retrieve an entity from me.
  getStaticEntity(self, name)
Get an entity that was added to me using putEntity.
  listDynamicEntities(self, request)
A list of all name, entity that I can generate on demand.
  listDynamicNames(self)
Retrieve a list of the names of entities that I store references to.
  listEntities(self, request)
Retrieve a list of all name, entity pairs I contain.
  listNames(self, request)
Retrieve a list of all names for entities that I contain.
  listStaticEntities(self)
Retrieve a list of all name, entity pairs that I store references to.
  listStaticNames(self)
Retrieve a list of the names of entities that I store references to.
  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'.

Class Variable Summary
tuple __implements__ = (<class twisted.coil.coil.IConfigurator...
str configName = 'Web Filesystem Access'
dict configTypes = {'path': [<type 'str'>, 'Path', 'The path ...
class configurableClass = twisted.web.static.File
    Inherited from Locked
int locked = 0                                                                     

Method Details

__init__(self, instance)
(Constructor)

Initialize this configurator with the instance it will be configuring.
Overrides:
twisted.coil.coil.Configurator.__init__ (inherited documentation)

getConfiguration(self)

Return a mapping of key/value tuples describing my configuration.

By default gets the attributes from the instance being configured, override in subclasses if necessary.
Overrides:
twisted.coil.coil.Configurator.getConfiguration (inherited documentation)

Class Variable Details

__implements__

Type:
tuple
Value:
(<class twisted.coil.coil.IConfigurator at 0x8386b34>,
 <class twisted.coil.coil.IStaticCollection at 0x83b07c4>)             

configName

Type:
str
Value:
'Web Filesystem Access'                                                

configTypes

Type:
dict
Value:
{'defaultType': [<type 'str'>,
                 'Default MIME Type',
                 "MIME type for files whose type can't be guessed."],
 'execCGI': ['boolean', 'Execute CGIs', 'Support running CGI scripts.'\
],
 'execEPY': ['boolean', 'Execute EPYs', 'Support running EPY scripts.'\
],
 'path': [<type 'str'>, 'Path', 'The path in the filesystem to be serv\
...                                                                    

Generated by Epydoc 2.0 on Sat Sep 13 04:20:49 2003 http://epydoc.sf.net