Classes | |
class | TestPrintPath |
Functions | |
def | _printOp |
def | printPath |
def | printPaths |
def printPaths::_printOp | ( | op, | ||
indent, | ||||
indentDelta | ||||
) | [private] |
Definition at line 21 of file printPaths.py.
00021 : 00022 indent += indentDelta 00023 for i in dir(op): 00024 o = getattr(op,i) 00025 if isinstance(o,mod._Module): 00026 print indent+"module: "+o.label_()+" <"+o.type_()+">" 00027 elif isinstance(o, cms.Sequence): 00028 printPath(o,indent,indentDelta, "seq") 00029 elif isinstance(o,sqt._Sequenceable): 00030 _printOp(o,indent,indentDelta) 00031 if __name__ == "__main__":
def printPaths::printPath | ( | pth, | ||
indent = "" , |
||||
indentDelta = " " , |
||||
type = "path" | ||||
) |
Definition at line 10 of file printPaths.py.
00010 : 00011 item = pth._seq 00012 print indent+type+": "+pth.label_() 00013 indent += indentDelta 00014 if isinstance(item,mod._Module): 00015 print indent+"module: "+item.label_()+" <"+item.type_()+">" 00016 elif isinstance(item,cms.Sequence): 00017 printPath(item,indent,indentDelta,"seq") 00018 else: 00019 _printOp(item,indent,indentDelta) 00020 def _printOp(op,indent, indentDelta):
def printPaths::printPaths | ( | process | ) |
Definition at line 5 of file printPaths.py.
00005 : 00006 "print all the paths in the process" 00007 for p in process.paths.itervalues(): 00008 printPath(p) 00009 def printPath(pth, indent="", indentDelta=" ", type="path"):