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

Module flumotion.common.package

objects and functions used in dealing with packages
Classes
PackageHooks I am an import Hooks object that makes sure that every package that gets loaded has every necessary path in the module's __path__ list.
Packager I am an object through which package paths can be registered, to support the partitioning of the module import namespace across bundles.

Function Summary
  findEndModuleCandidates(path, prefix)
I take a directory and return a list of candidate python end modules (i.e., non-package modules) for the given module prefix.
Packager getPackager()
Return the (unique) packager.
  _findPackageCandidates(path, prefix)
I take a directory and return a list of candidate python packages under that directory that start with the given prefix.
  _listDirRecursively(path)
I'm similar to os.listdir, but I work recursively and only return directories containing python code.
list _listPyFileRecursively(path)
I'm similar to os.listdir, but I work recursively and only return files representing python non-package modules.

Variable Summary
NoneType __packager = None                                                                  

Function Details

findEndModuleCandidates(path, prefix='flumotion')

I take a directory and return a list of candidate python end modules (i.e., non-package modules) for the given module prefix.
Parameters:
path - the path under which to search for end modules
           (type=string)
prefix - module prefix to check candidates under
           (type=string)

getPackager()

Return the (unique) packager.
Returns:
Packager

_findPackageCandidates(path, prefix='flumotion')

I take a directory and return a list of candidate python packages under that directory that start with the given prefix. A package is a module containing modules; typically the directory with the same name as the package contains __init__.py
Parameters:
path - the path
           (type=string)

_listDirRecursively(path)

I'm similar to os.listdir, but I work recursively and only return directories containing python code.
Parameters:
path - the path
           (type=string)

_listPyFileRecursively(path)

I'm similar to os.listdir, but I work recursively and only return files representing python non-package modules.
Parameters:
path - the path
           (type=string)
Returns:
list of files underneath the given path containing python code
           (type=list)

Variable Details

__packager

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Sun Oct 26 16:39:17 2008 http://epydoc.sf.net