Package flumotion :: Package common :: Module bundle :: Class MergedBundler
[hide private]

Class MergedBundler

source code

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.

Instance Methods [hide private]
 
__init__(self, name='merged-bundle')
Create a new bundle.
source code
 
addBundler(self, bundler)
Add to me all of the files managed by another bundler.
source code
 
getSubBundlers(self)
Returns: A list of all of the bundlers that have been added to me.
source code

Inherited from Bundler: add, bundle

Inherited from Bundler (private): _buildzip

Method Details [hide private]

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

source code 

Create a new bundle.

Overrides: Bundler.__init__
(inherited documentation)

addBundler(self, bundler)

source code 

Add to me all of the files managed by another bundler.

Parameters:
  • bundler (Bundler) - The bundler whose files you want in this bundler.

getSubBundlers(self)

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