| |
---|
| | # Program Information |
---|
| | |
---|
| | PROGNAME = "tren.py" |
---|
| | PROGENV = PROGNAME.split(".py")[0].upper() |
---|
| | RCSID = "$Id: tren.py,v 1.113 2010/01/27 17:34:57 tundra Exp $" |
---|
| | RCSID = "$Id: tren.py,v 1.114 2010/01/27 18:04:55 tundra Exp $" |
---|
| | VERSION = RCSID.split()[2] |
---|
| | |
---|
| | # Copyright Information |
---|
| | |
---|
| |
---|
| | # Literals |
---|
| | ##### |
---|
| | |
---|
| | ALL = "All" # Rename target is whole filename |
---|
| | ARROW = "--->" # Text pointer |
---|
| | COMMENT = "#" # Comment character in include files |
---|
| | EXT = "Ext" # Rename target is extension |
---|
| | EXTDELIM = "." # Extension delimeter |
---|
| | INCL = "-I" # Include file command line option |
---|
| |
---|
| | dINCLUDING = "Including file '%s'" |
---|
| | dPAIR = "Option/Target Pair" |
---|
| | dPROGENV = "$" + PROGENV |
---|
| | dRESOLVEDOPTS = "Resolved Command Line" |
---|
| | dSEQCMD = "Command Line Sequence:" |
---|
| | dSEQSIZE = "Size Sequence:" |
---|
| | dSEQCTIME = "Creation Time Sequence:" |
---|
| | dTARGETS = "Rename Targets: %s" |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| |
---|
| | DebugMsg(SEPARATOR) |
---|
| | DebugMsg(dDUMPOBJ % str(obj)) |
---|
| | DebugMsg(SEPARATOR) |
---|
| | |
---|
| | # Dump abspath, basename, & stat information |
---|
| | |
---|
| | for name in obj.RenNames: |
---|
| | DebugMsg(name) |
---|
| | for item in obj.RenNames[name]: |
---|
| | DebugMsg(ColumnPad([dELLIPSIS, item])) |
---|
| | |
---|
| | # Dump command line sequence |
---|
| | |
---|
| | DebugMsg(dSEQCMD) |
---|
| | for item in obj.cmdorder: |
---|
| | DebugMsg(ColumnPad([dELLIPSIS, item])) |
---|
| | |
---|
| | # Dump creation date sequence |
---|
| | |
---|
| | DebugMsg(dSEQCTIME) |
---|
| | for item in obj.ByCtime: |
---|
| | DebugMsg(ColumnPad([dELLIPSIS, " %s %s %s" % (item, ARROW, obj.ctimes[item])])) |
---|
| | |
---|
| | # Dump size sequence |
---|
| | |
---|
| | DebugMsg(dSEQSIZE) |
---|
| | for item in obj.BySize: |
---|
| | DebugMsg(ColumnPad([dELLIPSIS, " %s %s %s" % (item, ARROW, obj.sizes[item])])) |
---|
| | |
---|
| | DebugMsg(SEPARATOR + "\n\n") |
---|
| | |
---|
| | # End of 'DumpRenameObj()' |
---|
| |
---|
| | |