Classes | |
class | TestModificationTracking |
Variables | |
_isModified | |
_modifications | |
ACTIVATE_INSPECTION = True | |
def python.EnablePSetHistory.auto_inspect | ( | ) |
helpers for inspection ####
Definition at line 8 of file EnablePSetHistory.py.
Referenced by python.EnablePSetHistory.new__ModuleSequenceType__iadd__(), python.EnablePSetHistory.new__ModuleSequenceType__imul__(), python.EnablePSetHistory.new__ModuleSequenceType_remove(), python.EnablePSetHistory.new__ModuleSequenceType_replace(), python.EnablePSetHistory.new_Parameterizable_addParameter(), python.EnablePSetHistory.new_Parameterizable_setattr(), python.EnablePSetHistory.new_Parameterizeable_delattr(), and python.EnablePSetHistory.new_setattr().
def python.EnablePSetHistory.new___init__ | ( | self, | |
name | |||
) |
Definition at line 43 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new__Module_name | ( | self | ) |
Definition at line 480 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new__ModuleSequenceType__iadd__ | ( | self, | |
other | |||
) |
Definition at line 535 of file EnablePSetHistory.py.
References python.EnablePSetHistory.auto_inspect().
def python.EnablePSetHistory.new__ModuleSequenceType__imul__ | ( | self, | |
other | |||
) |
Definition at line 527 of file EnablePSetHistory.py.
References python.EnablePSetHistory.auto_inspect().
def python.EnablePSetHistory.new__ModuleSequenceType__init__ | ( | self, | |
arg, | |||
argv | |||
) |
Definition at line 488 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new__ModuleSequenceType_copy | ( | self | ) |
Definition at line 503 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new__ModuleSequenceType_isModified | ( | self | ) |
Definition at line 499 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new__ModuleSequenceType_remove | ( | self, | |
original | |||
) |
Definition at line 519 of file EnablePSetHistory.py.
References python.EnablePSetHistory.auto_inspect().
def python.EnablePSetHistory.new__ModuleSequenceType_replace | ( | self, | |
original, | |||
replacement | |||
) |
Definition at line 511 of file EnablePSetHistory.py.
References python.EnablePSetHistory.auto_inspect().
def python.EnablePSetHistory.new__ModuleSequenceType_resetModified | ( | self | ) |
Definition at line 494 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new__place | ( | self, | |
name, | |||
mod, | |||
d | |||
) |
def python.EnablePSetHistory.new__placeLooper | ( | self, | |
name, | |||
mod | |||
) |
def python.EnablePSetHistory.new__placeService | ( | self, | |
typeName, | |||
mod | |||
) |
def python.EnablePSetHistory.new__placeSource | ( | self, | |
name, | |||
mod | |||
) |
def python.EnablePSetHistory.new__Sequenceable_name | ( | self | ) |
sequence history ####
Definition at line 443 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new__SequenceIgnore_name | ( | self | ) |
Definition at line 466 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new__SequenceNegation_name | ( | self | ) |
Definition at line 459 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_addAction | ( | self, | |
tool | |||
) |
def python.EnablePSetHistory.new_checkRecording | ( | self | ) |
Definition at line 152 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_deleteAction | ( | self, | |
i | |||
) |
Definition at line 135 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_disableRecording | ( | self | ) |
Definition at line 139 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_dumpHistory | ( | self, | |
withImports = True |
|||
) |
def python.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 290 of file EnablePSetHistory.py.
References any, align_tpl.filter, join(), list(), and split.
def python.EnablePSetHistory.new_dumpModificationsWithObjects | ( | self, | |
removeDuplicates = False |
|||
) |
Definition at line 348 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_enableRecording | ( | self | ) |
Definition at line 148 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_history | ( | self, | |
removeDuplicates = False |
|||
) |
Definition at line 98 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_items_ | ( | self | ) |
Definition at line 371 of file EnablePSetHistory.py.
def python.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 264 of file EnablePSetHistory.py.
References list().
def python.EnablePSetHistory.new_modifiedObjects | ( | self | ) |
Definition at line 53 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_moduleItems_ | ( | self | ) |
Definition at line 363 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_Parameterizable_addParameter | ( | self, | |
name, | |||
value | |||
) |
Definition at line 402 of file EnablePSetHistory.py.
References python.EnablePSetHistory.auto_inspect().
def python.EnablePSetHistory.new_Parameterizable_init | ( | self, | |
a, | |||
k | |||
) |
parameterizable history ####
Definition at line 395 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_Parameterizable_resetModified | ( | self | ) |
Definition at line 427 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_Parameterizable_setattr | ( | self, | |
name, | |||
value | |||
) |
Definition at line 409 of file EnablePSetHistory.py.
References python.EnablePSetHistory.auto_inspect().
def python.EnablePSetHistory.new_Parameterizeable_delattr | ( | self, | |
name | |||
) |
Definition at line 418 of file EnablePSetHistory.py.
References python.EnablePSetHistory.auto_inspect().
def python.EnablePSetHistory.new_ParameterTypeBase_resetModified | ( | self | ) |
Definition at line 436 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_recurseDumpModifications_ | ( | self, | |
name, | |||
o | |||
) |
Recursively return a standardised list of modifications from the object hierarchy.
Definition at line 201 of file EnablePSetHistory.py.
References ConfigBuilder.dumpPython().
def python.EnablePSetHistory.new_recurseResetModified_ | ( | self, | |
o | |||
) |
Empty all the _modifications lists for all objects beneath this one.
Definition at line 183 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_resetHistory | ( | self | ) |
Definition at line 102 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_resetModified | ( | self | ) |
Empty out all the modification lists, so we only see changes that happen from now onwards.
Definition at line 280 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_resetModifiedObjects | ( | self | ) |
Definition at line 57 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_Sequence_name | ( | self | ) |
Definition at line 473 of file EnablePSetHistory.py.
def python.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 156 of file EnablePSetHistory.py.
References python.EnablePSetHistory.auto_inspect().
def python.EnablePSetHistory.new_setLooper_ | ( | self, | |
lpr | |||
) |
def python.EnablePSetHistory.new_setSchedule_ | ( | self, | |
sch | |||
) |
def python.EnablePSetHistory.new_SortedKeysDict__copy__ | ( | self | ) |
Definition at line 23 of file EnablePSetHistory.py.
def python.EnablePSetHistory.new_SortedKeysDict__deepcopy__ | ( | self, | |
memo = None |
|||
) |
Definition at line 27 of file EnablePSetHistory.py.
python.EnablePSetHistory._isModified |
Definition at line 413 of file EnablePSetHistory.py.
python.EnablePSetHistory._modifications |
Definition at line 398 of file EnablePSetHistory.py.
python.EnablePSetHistory.ACTIVATE_INSPECTION = True |
Definition at line 4 of file EnablePSetHistory.py.