Package Config object represents a Configuration Unit (typically
related to Ganga Packages). It should not be created directly but only
via the getConfig method.
PackageConfig has a name which corresponds to the [name] section in
the .gangarc file. Once initialized the configuration may only be
modified by special setUserValues methods. This will give a chance to
Ganga to take further actions such as automatic update of the
.gangarc file.
The PackageConfig interface is designed for Ganga Package Developers.
User oriented interface is available via the GPI.
|
|
|
|
|
__iter__(self)
Iterate over the effective options. |
source code
|
|
|
__getitem__(self,
o)
Get the effective value of option o. |
source code
|
|
|
addOption(self,
name,
default_value,
docstring,
override=False,
**meta) |
source code
|
|
|
setSessionValue(self,
name,
value,
raw=0)
Add or override options as a part of second phase of
initialization of this configuration module (PHASE 2) If the
default type of the option is not string, then the expression will
be evaluated. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getEffectiveLevel(self,
name)
Return 0 if option is effectively set at the user level, 1 if at
session level or 2 if at default level |
source code
|
|
|
attachUserHandler(self,
pre,
post)
Attach a user handler:
- pre(name,x) will be always called before setUserValue(name,x)
- post(name,x2) will be always called after setUserValue(name,x) |
source code
|
|
|
attachSessionHandler(self,
pre,
post)
See attachUserHandler(). |
source code
|
|
|
|