Package flumotion :: Package common :: Module package :: Class Packager
[show private | hide private]
[frames | no frames]

Class Packager

Loggable --+
           |
          Packager


Method Summary
  __init__(self)
  getPathsForPackage(self, packageName)
  registerPackagePath(self, packagePath, key, prefix)
Register a given path as a path that can be imported from.
  unregister(self)
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, message)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure)
Log a warning about a Failure.

Class Variable Summary
str logCategory: Implementors can provide a category to log their messages under.

Method Details

registerPackagePath(self, packagePath, key, prefix='flumotion')

Register a given path as a path that can be imported from. Used to support partition of bundled code or import code from various uninstalled location.

sys.path will also be changed to include this, and remove references to older packagePath's for the same bundle.
Parameters:
packagePath - path to add under which the module namespaces live, (ending in an md5sum, for flumotion purposes)
           (type=string @param key a unique id for the package being registered)
key
           (type=string)
prefix - prefix of the packages to be considered
           (type=string)

Class Variable Details

logCategory

Implementors can provide a category to log their messages under.
Type:
str
Value:
'packager'                                                             

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net