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

Module registry

source code

parsing of registry, which holds component and bundle information


Version: $Rev$

Classes [hide private]
RegistryEntryScenario
I represent a <scenario> entry in the registry
RegistryEntryComponent
I represent a <component> entry in the registry
RegistryEntryPlug
I represent a <plug> entry in the registry
RegistryEntryBundle
This class represents a <bundle> entry in the registry
RegistryEntryBundleDirectory
This class represents a <directory> entry in the registry
RegistryEntryBundleFilename
This class represents a <filename> entry in the registry
RegistryEntryProperty
This class represents a <property> entry in the registry
RegistryEntryCompoundProperty
This class represents a <compound-property> entry in the registry
RegistryEntryFile
This class represents a <file> entry in the registry
RegistryEntryEntry
This class represents a <entry> entry in the registry
RegistryEntryEater
This class represents a <eater> entry in the registry
RegistryEntryWizard
This class represents a <wizard> entry in the registry
RegistryEntryWizardFormat
This class represents an <accept-format> or <provide-format> entry in the registry
RegistryParser
Registry parser
RegistryDirectory
I represent a directory under a path managed by the registry.
RegistryWriter
ComponentRegistry
Registry, this is normally not instantiated.
RegistrySubsetWriter
Functions [hide private]
 
_getMTime(file) source code
 
makeBundleFromLoadedModules(outfile, outreg, *prefixes)
Make a bundle from a subset of all loaded modules, also writing out a registry file that can apply to that subset of the global registry.
source code
ComponentRegistry
getRegistry()
Return the registry.
source code
Variables [hide private]
  READ_CACHE = False
  FLU_RANK_NONE = 0
  _VALID_WIZARD_COMPONENT_TYPES = ['audio-producer', 'video-prod...
  _VALID_WIZARD_PLUG_TYPES = ['http-consumer', 'httpserver-plug']
  __registry = None
  __package__ = 'flumotion.common'
Function Details [hide private]

makeBundleFromLoadedModules(outfile, outreg, *prefixes)

source code 

Make a bundle from a subset of all loaded modules, also writing out a registry file that can apply to that subset of the global registry. Suitable for use as a FLU_ATEXIT handler.

Parameters:
  • outfile (str) - The path to which a zip file will be written.
  • outreg (str) - The path to which a registry file will be written.
  • prefixes (list of str) - A list of prefixes to which to limit the export. If not given, package up all modules. For example, "flumotion" would limit the output to modules that start with "flumotion".

getRegistry()

source code 

Return the registry. Only one registry will ever be created.

Returns: ComponentRegistry

Variables Details [hide private]

_VALID_WIZARD_COMPONENT_TYPES

Value:
['audio-producer',
 'video-producer',
 'muxer',
 'audio-encoder',
 'video-encoder',
 'consumer']