Package flumotion :: Package common :: Module bundle :: Class BundlerBasket
[show private | hide private]
[frames | no frames]

Class BundlerBasket


I manage bundlers that are registered through me.
Method Summary
  __init__(self)
Create a new bundler basket.
  add(self, bundleName, source, destination)
Add files to the bundler basket for the given bundle.
  depend(self, depender, *dependencies)
Make the given bundle depend on the other given bundles.
  getBundlerByName(self, bundlerName)
Return the bundle by name, or None if not found.
  getBundlerNameByFile(self, filename)
Return the bundler name by filename, or None if not found.
  getBundlerNameByImport(self, importString)
Return the bundler name by import statement, or None if not found.
  getDependencies(self, bundlerName)
Return names of all the dependencies of this bundle, including this bundle itself.

Method Details

__init__(self)
(Constructor)

Create a new bundler basket.

add(self, bundleName, source, destination=None)

Add files to the bundler basket for the given bundle.
Parameters:
bundleName - the name of the bundle this file is a part of
source - the path to the file to add to the bundle
destination - a relative path to store this file in in the bundle. If unspecified, this will be stored in the top level

depend(self, depender, *dependencies)

Make the given bundle depend on the other given bundles.
Parameters:
depender
           (type=string)
dependencies
           (type=list of strings)

getBundlerByName(self, bundlerName)

Return the bundle by name, or None if not found.

getBundlerNameByFile(self, filename)

Return the bundler name by filename, or None if not found.

getBundlerNameByImport(self, importString)

Return the bundler name by import statement, or None if not found.

getDependencies(self, bundlerName)

Return names of all the dependencies of this bundle, including this bundle itself. The dependencies are returned in a correct depending order.

Generated by Epydoc 2.1 on Wed Feb 16 07:23:00 2005 http://epydoc.sf.net