Public Member Functions | |
def | __getitem__ (self, key) |
def | __init__ (self, *args, **kwargs) |
def | __setitem__ (self, key, value, dict_setitem=collections.OrderedDict.__setitem__) |
def | items (self) |
Public Attributes | |
validationslist | |
Dictionary which handles updates of values for already existing keys in a modified way. adapteddict[key] returns a list of all values associated with key This dictionary is used in the class `BetterConfigParser` instead of the default `dict_type` of the `ConfigParser` class.
Definition at line 15 of file betterConfigParser.py.
def betterConfigParser.AdaptedDict.__init__ | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Definition at line 24 of file betterConfigParser.py.
def betterConfigParser.AdaptedDict.__getitem__ | ( | self, | |
key | |||
) |
Definition at line 50 of file betterConfigParser.py.
References betterConfigParser.AdaptedDict.validationslist.
def betterConfigParser.AdaptedDict.__setitem__ | ( | self, | |
key, | |||
value, | |||
dict_setitem = collections.OrderedDict.__setitem__ |
|||
) |
od.__setitem__(i, y) <==> od[i]=y Updating an existing key appends the new value to the old value instead of replacing it. Arguments: - `key`: key part of the key-value pair - `value`: value part of the key-value pair - `dict_item`: method which is used for finally setting the item
Definition at line 28 of file betterConfigParser.py.
References mps_setup.append, and betterConfigParser.AdaptedDict.validationslist.
def betterConfigParser.AdaptedDict.items | ( | self | ) |
Definition at line 56 of file betterConfigParser.py.
References betterConfigParser.AdaptedDict.validationslist.
Referenced by betterConfigParser.BetterConfigParser.exists(), crabConfigParser.CrabConfigParser.getSectionLines(), and python.rootplot.core.Options.kwarg_list().
betterConfigParser.AdaptedDict.validationslist |
Definition at line 25 of file betterConfigParser.py.
Referenced by betterConfigParser.AdaptedDict.__getitem__(), betterConfigParser.AdaptedDict.__setitem__(), and betterConfigParser.AdaptedDict.items().