Module conddbui
[show private | hide private]
[frames | no frames]

Module conddbui

The idea behind the CondDBUI module is to simplify the usage of PyCool for LHCb users. This means that you will find here many functions which are specific to the way LHCb is playing with its conditions database. This means as well that these functions are not supposed to be efficient (and they are not). For efficient manipulations, we advise you to use directly the PyCool classes and functions, or (even better) to use the COOL C++ API. Please note that most of the functions of the conddbui module are used in the conddb browser.
Classes
CondDB Object allowing to manipulate a COOL database object in an LHCb way.
Tag Basic class allowing to manipulate more easily the tags in the tag hierarchy.
ValidityKeyWrapper  

Function Summary
  _collect_tree_info(source_dir, includes, excludes, include_dirs, exclude_dirs, includesFirst)
Create a list of folders and foldersets to create starting from a filesystem tree.
  _fix_xml(xml_data, folderset_path)
Function used to clean up the XML files before inserting them in the database.

Function Details

_collect_tree_info(source_dir, includes=[], excludes=[], include_dirs=[], exclude_dirs=[], includesFirst=True)

Create a list of folders and foldersets to create starting from a filesystem tree.
    inputs:
        source_dir: string; root node were to start scanning
        includes:      list regular expressions an accepted path must match
        excludes:      list regular expressions to exclude files matching them
        include_dirs:  list regular expressions an accepted dir must match
        exclude_dirs:  list regular expressions to exclude dirs matching them
        includesFirst: if True, first check includes, then excludes; vice-versa if
                       False
    outputs:
        list of folders and foldersets to be created

_fix_xml(xml_data, folderset_path)

Function used to clean up the XML files before inserting them in the database. It corrects:
  • paths to system ids
  • environment variable expansion
  • encoding (we need iso-8859-1)

Generated by Epydoc 2.1 on Tue Mar 6 18:29:23 2007 http://epydoc.sf.net