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

Class MergedBundler

Bundler --+
          |
         MergedBundler


I am a bundler, with the extension that I can also bundle other bundlers.

The effect is that when you call bundle() on a me, you get one bundle with a union of all subbundlers' files, in addition to any loose files that you added to me.
Method Summary
  __init__(self, name)
Create a new bundle.
  addBundler(self, bundler)
Add to me all of the files managed by another bundler.
  getSubBundlers(self)
Return a list of all of the bundlers that have been added to me.
    Inherited from Bundler
  add(self, source, destination)
Add files to the bundle.
flumotion.common.bundle.Bundle bundle(self)
Bundle the files registered with the bundler.
  _buildzip(self)

Method Details

__init__(self, name='merged-bundle')
(Constructor)

Create a new bundle.
Overrides:
flumotion.common.bundle.Bundler.__init__ (inherited documentation)

addBundler(self, bundler)

Add to me all of the files managed by another bundler.
Parameters:
bundler - The bundler whose files you want in this bundler.
           (type=Bundler)

getSubBundlers(self)

Returns:
A list of all of the bundlers that have been added to me.

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