Package flumotion :: Package common :: Module registry :: Class ComponentRegistry
[hide private]

Class ComponentRegistry

source code

log.Loggable --+
               |
              ComponentRegistry

Registry, this is normally not instantiated.

Instance Methods [hide private]
 
__init__(self) source code
 
addFile(self, file) source code
 
addFromString(self, string) source code
bool
addRegistryPath(self, path, prefix='flumotion')
Add a registry path to this registry, scanning it for registry snippets.
source code
 
isEmpty(self) source code
RegistryEntryComponent
getComponent(self, name) source code
 
hasComponent(self, name) source code
 
getComponents(self) source code
RegistryEntryPlug
getPlug(self, type) source code
 
hasPlug(self, name) source code
 
getPlugs(self) source code
 
getBundles(self) source code
 
getDirectories(self) source code
flumotion.common.bundle.BundlerBasket
makeBundlerBasket(self) source code
 
dump(self, fd)
Dump the cache of components to the given opened file descriptor.
source code
 
clean(self)
Clean the cache of components.
source code
 
rebuildNeeded(self) source code
 
save(self, force=False) source code
 
verify(self, force=False)
Verify if the registry is uptodate and rebuild if it is not.
source code

Inherited from log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Class Variables [hide private]
  logCategory = 'registry'
Implementors can provide a category to log their messages under.
  filename = '/builddir/build/BUILD/flumotion-0.4.2/cache/regist...

Inherited from log.Loggable: __implemented__, __provides__

Method Details [hide private]

addFile(self, file)

source code 
Parameters:
  • file (str or file.) - The file to add, either as an open file object, or as the name of a file to open.

addRegistryPath(self, path, prefix='flumotion')

source code 

Add a registry path to this registry, scanning it for registry snippets.

Parameters:
  • path - a full path containing a 'flumotion' directory, which will be scanned for registry files.
Returns: bool
whether the path could be added

dump(self, fd)

source code 

Dump the cache of components to the given opened file descriptor.

Parameters:
  • fd (integer) - open file descriptor to write to

verify(self, force=False)

source code 

Verify if the registry is uptodate and rebuild if it is not.

Parameters:
  • force - True if the registry needs rebuilding for sure.

Class Variable Details [hide private]

filename

Value:
'/builddir/build/BUILD/flumotion-0.4.2/cache/registry/registry.xml'