Classes | |
class | TestModificationTracking |
Variables | |
_isModified | |
_modifications | |
def EnablePSetHistory.auto_inspect | ( | ) |
helpers for inspection ####
Definition at line 9 of file EnablePSetHistory.py.
Referenced by new__ModuleSequenceType__iadd__(), new__ModuleSequenceType__imul__(), new__ModuleSequenceType_remove(), new__ModuleSequenceType_replace(), new_Parameterizable_addParameter(), new_Parameterizable_setattr(), new_Parameterizeable_delattr(), and new_setattr().
def EnablePSetHistory.new___init__ | ( | self, | |
l, | |||
k | |||
) |
Definition at line 44 of file EnablePSetHistory.py.
def EnablePSetHistory.new__Module_name | ( | self | ) |
Definition at line 486 of file EnablePSetHistory.py.
def EnablePSetHistory.new__ModuleSequenceType__iadd__ | ( | self, | |
other | |||
) |
Definition at line 544 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new__ModuleSequenceType__imul__ | ( | self, | |
other | |||
) |
Definition at line 536 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new__ModuleSequenceType__init__ | ( | self, | |
arg, | |||
argv | |||
) |
Definition at line 494 of file EnablePSetHistory.py.
def EnablePSetHistory.new__ModuleSequenceType_copy | ( | self | ) |
Definition at line 509 of file EnablePSetHistory.py.
def EnablePSetHistory.new__ModuleSequenceType_isModified | ( | self | ) |
Definition at line 505 of file EnablePSetHistory.py.
def EnablePSetHistory.new__ModuleSequenceType_remove | ( | self, | |
original | |||
) |
Definition at line 528 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new__ModuleSequenceType_replace | ( | self, | |
original, | |||
replacement | |||
) |
Definition at line 517 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new__ModuleSequenceType_resetModified | ( | self | ) |
Definition at line 500 of file EnablePSetHistory.py.
def EnablePSetHistory.new__place | ( | self, | |
name, | |||
mod, | |||
d | |||
) |
def EnablePSetHistory.new__placeLooper | ( | self, | |
name, | |||
mod | |||
) |
Definition at line 75 of file EnablePSetHistory.py.
References mps_setup.append.
def EnablePSetHistory.new__placeService | ( | self, | |
typeName, | |||
mod | |||
) |
Definition at line 81 of file EnablePSetHistory.py.
References mps_setup.append.
def EnablePSetHistory.new__placeSource | ( | self, | |
name, | |||
mod | |||
) |
Definition at line 69 of file EnablePSetHistory.py.
References mps_setup.append.
def EnablePSetHistory.new__Sequenceable_name | ( | self | ) |
sequence history ####
Definition at line 445 of file EnablePSetHistory.py.
References str.
def EnablePSetHistory.new__SequenceIgnore_name | ( | self | ) |
Definition at line 472 of file EnablePSetHistory.py.
References str.
def EnablePSetHistory.new__SequenceNegation_name | ( | self | ) |
Definition at line 465 of file EnablePSetHistory.py.
References str.
def EnablePSetHistory.new__SequencePlaceholder_name | ( | self | ) |
Definition at line 461 of file EnablePSetHistory.py.
def EnablePSetHistory.new_addAction | ( | self, | |
tool | |||
) |
def EnablePSetHistory.new_checkRecording | ( | self | ) |
Definition at line 154 of file EnablePSetHistory.py.
def EnablePSetHistory.new_deleteAction | ( | self, | |
i | |||
) |
Definition at line 137 of file EnablePSetHistory.py.
def EnablePSetHistory.new_disableRecording | ( | self | ) |
Definition at line 141 of file EnablePSetHistory.py.
Definition at line 109 of file EnablePSetHistory.py.
References join().
def EnablePSetHistory.new_dumpModifications | ( | self, | |
comments = True , |
|||
process = True , |
|||
module = False , |
|||
sequence = True , |
|||
value = True , |
|||
sort = True , |
|||
group = True |
|||
) |
Return some text describing all the modifications that have been made. * comments: print out comments describing the file and line which triggered the modification, if determined. * process: print "process." in front of every name * module: only print out one entry per top-level module that has been changed, rather than the details * sequence: include changes to sequences * value: print out the latest value of each name * sort: whether to sort all the names before printing (otherwise they're in more-or-less time order, within each category)
Definition at line 292 of file EnablePSetHistory.py.
References any(), join(), list(), and split.
Definition at line 350 of file EnablePSetHistory.py.
def EnablePSetHistory.new_enableRecording | ( | self | ) |
Definition at line 150 of file EnablePSetHistory.py.
Definition at line 99 of file EnablePSetHistory.py.
def EnablePSetHistory.new_items_ | ( | self | ) |
Definition at line 373 of file EnablePSetHistory.py.
def EnablePSetHistory.new_modificationCheckpoint | ( | self | ) |
Set a checkpoint, ie get the current list of all known top-level names and store them. Later, when we print out modifications we ignore any modifications that do not affect something in this list. There is currently no way of clearing this, but I think this is generally a use-once feature.
Definition at line 266 of file EnablePSetHistory.py.
References list().
def EnablePSetHistory.new_modifiedObjects | ( | self | ) |
Definition at line 54 of file EnablePSetHistory.py.
def EnablePSetHistory.new_moduleItems_ | ( | self | ) |
Definition at line 365 of file EnablePSetHistory.py.
def EnablePSetHistory.new_Parameterizable_addParameter | ( | self, | |
name, | |||
value | |||
) |
Definition at line 404 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new_Parameterizable_init | ( | self, | |
a, | |||
k | |||
) |
parameterizable history ####
Definition at line 397 of file EnablePSetHistory.py.
def EnablePSetHistory.new_Parameterizable_resetModified | ( | self | ) |
Definition at line 429 of file EnablePSetHistory.py.
def EnablePSetHistory.new_Parameterizable_setattr | ( | self, | |
name, | |||
value | |||
) |
Definition at line 411 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new_Parameterizeable_delattr | ( | self, | |
name | |||
) |
Definition at line 420 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new_ParameterTypeBase_resetModified | ( | self | ) |
Definition at line 438 of file EnablePSetHistory.py.
def EnablePSetHistory.new_recurseDumpModifications_ | ( | self, | |
name, | |||
o | |||
) |
Recursively return a standardised list of modifications from the object hierarchy.
Definition at line 203 of file EnablePSetHistory.py.
References ConfigBuilder.dumpPython().
def EnablePSetHistory.new_recurseResetModified_ | ( | self, | |
o | |||
) |
Empty all the _modifications lists for all objects beneath this one.
Definition at line 185 of file EnablePSetHistory.py.
def EnablePSetHistory.new_resetHistory | ( | self | ) |
Definition at line 103 of file EnablePSetHistory.py.
def EnablePSetHistory.new_resetModified | ( | self | ) |
Empty out all the modification lists, so we only see changes that happen from now onwards.
Definition at line 282 of file EnablePSetHistory.py.
def EnablePSetHistory.new_resetModifiedObjects | ( | self | ) |
Definition at line 58 of file EnablePSetHistory.py.
def EnablePSetHistory.new_Sequence_name | ( | self | ) |
def EnablePSetHistory.new_setattr | ( | self, | |
name, | |||
value | |||
) |
This catches modifications that occur during process.load, and only records a modification if there was an existing object and the version after __setattr__ has a different id(). This does not mean that the object is different, only redefined. We still really need a recursive-comparison function for parameterizeable objects to determine if a real change has been made.
Definition at line 158 of file EnablePSetHistory.py.
References auto_inspect(), and triggerObjects_cff.id.
def EnablePSetHistory.new_setLooper_ | ( | self, | |
lpr | |||
) |
def EnablePSetHistory.new_setSchedule_ | ( | self, | |
sch | |||
) |
Definition at line 87 of file EnablePSetHistory.py.
References mps_setup.append.
def EnablePSetHistory.new_SortedKeysDict__copy__ | ( | self | ) |
Definition at line 24 of file EnablePSetHistory.py.
Definition at line 28 of file EnablePSetHistory.py.
References triggerObjects_cff.id.
|
private |
Definition at line 415 of file EnablePSetHistory.py.
|
private |
Definition at line 400 of file EnablePSetHistory.py.