App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.api.lib_config.ConfigHandle Class Reference
Inheritance diagram for google.appengine.api.lib_config.ConfigHandle:

Public Member Functions

def __init__
 
def __getattr__
 

Detailed Description

A set of configuration for a single library module or package.

Public attributes of instances of this class are configuration
values.  Attributes are dynamically computed (in __getattr__()) and
cached as regular instance attributes.

Constructor & Destructor Documentation

def google.appengine.api.lib_config.ConfigHandle.__init__ (   self,
  prefix,
  registry 
)
Constructor.

Args:
  prefix: A shared prefix for the configuration names being registered.
  It *must* end in '_'.  (This is enforced by LibConfigRegistry.)
  registry: A LibConfigRegistry instance.

Member Function Documentation

def google.appengine.api.lib_config.ConfigHandle.__getattr__ (   self,
  suffix 
)
Dynamic attribute access.

Args:
  suffix: The attribute name.

Returns:
  A configuration values.

Raises:
  AttributeError if the suffix is not a registered suffix.

The first time an attribute is referenced, this method is invoked.
The value returned taken either from the config module or from the
registered default.

The documentation for this class was generated from the following file: