Package posterity :: Module core :: Class PosterityInstance

Class PosterityInstance



                object --+    
                         |    
       component.Component --+
                             |
                object --+   |
                         |   |
component.ComponentManager --+
                             |
                            PosterityInstance

Posterity instance directory

A Posterity instance directory is a directory on a filesystem which holds information and settings for single Posterity installation.



Nested Classes

Inherited from component.Component: __metaclass__

Instance Methods
 
__init__(self, path, create=False)
Initialize the component manager.
 
load_plugins(self)
 
connect_db(self)
Initialize the SQLAlchemy database connection
 
run_in_transaction(self, callable)
 
setup_logging(self)
Initialize the logging system for this instance.

Inherited from component.ComponentManager: __contains__, __getitem__, component_activated, is_component_enabled

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods

Inherited from component.Component: __new__

Class Variables
  VERSION_MSG = 'Posterity instance directory version 1\n'
  README_MSG = 'This is a Posterity instance directory.\nVisit h...
Properties
  routes_providers
List of components that implement IRoutesProvider
  settings_panels
List of components that implement ISettingsPanel
  message_filters
List of components that implement IMessageFilter

Inherited from object: __class__

Method Details

__init__(self, path, create=False)
(Constructor)

 
Initialize the component manager.
Overrides: component.ComponentManager.__init__
(inherited documentation)

setup_logging(self)

 

Initialize the logging system for this instance.

The logging system is controlled by a number of options under the [logging] section of posterity.ini:

log_type
Which backend to use. Available options: file, syslog and errno.
log_file
The file to log to if "log_type = file". This filename is relative to the instance directory.
log_level
Minumum level of importanance required for a message to be logged. Available values: CRITICAL, ERROR, WARNING, INFO and DEBUG.

Class Variable Details

README_MSG

Value:
'''This is a Posterity instance directory.
Visit http://posterity.edgewall.org/ for more information.
'''

Property Details

routes_providers

List of components that implement IRoutesProvider
Get Method:
unreachable.extensions(component) - Return a list of components that declare to implement the extension point interface.

settings_panels

List of components that implement ISettingsPanel
Get Method:
unreachable.extensions(component) - Return a list of components that declare to implement the extension point interface.

message_filters

List of components that implement IMessageFilter
Get Method:
unreachable.extensions(component) - Return a list of components that declare to implement the extension point interface.