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  
Packager  

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.
  getPackager()
  _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)

_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 Tue Dec 20 15:33:10 2005 http://epydoc.sf.net