Asterisk.Config
index
/usr/src/ks-voip/py-asterisk/Asterisk/Config.py

Asterisk/Config.py: filesystem configuration reader.

 
Modules
       
Asterisk
ConfigParser
os

 
Classes
       
Asterisk.BaseException(exceptions.Exception)
ConfigurationError
__builtin__.object
Config

 
class Config(__builtin__.object)
     Methods defined here:
__init__(self, config_pathname=None)
get_connection(self, connection=None)
Return an (address, username, secret) argument tuple, suitable for
initialising a Manager instance. If <connection> is specified, use
the named <connection> instead of the configuration default.
refresh(self)
Read py-Asterisk configuration data from the filesystem.

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Config' objects>
list of weak references to the object (if defined)

 
class ConfigurationError(Asterisk.BaseException)
    This exception is raised when there is a problem with the configuration.
 
 
Method resolution order:
ConfigurationError
Asterisk.BaseException
exceptions.Exception

Methods inherited from Asterisk.BaseException:
__init__(self, error)
__str__(self)

Methods inherited from exceptions.Exception:
__getitem__(...)

 
Data
        CONFIG_FILENAME = 'py-asterisk.conf'
CONFIG_PATHNAMES = ['', '/.py-asterisk.conf', '/py-asterisk.conf', 'py-asterisk.conf', '/etc/py-asterisk.conf', '/etc/asterisk/py-asterisk.conf']