Ejemplo n.º 1
0
 def createFileName(self, nameGiven):
     # include the date and the name, if any. Date is used for archiving, name for display
     parts = [ "teststate" ]
     if not nameGiven or not self.isBatchDate(nameGiven):
         parts.append(calculateBatchDate())
     if nameGiven:
         parts.append(nameGiven)
     return "_".join(parts)
Ejemplo n.º 2
0
 def __init__(self, optionMap, *args):
     self.sessionName = optionMap["b"]
     self.runId = optionMap.get("name", calculateBatchDate()) # use the command-line name if given, else the date
     self.allApps = seqdict()
     self.appData = seqdict()
Ejemplo n.º 3
0
 def __init__(self, optionMap, *args):
     plugins.Responder.__init__(self)
     self.runId = optionMap.get("name", calculateBatchDate()) # use the command-line name if given, else the date
     self.batchAppData = OrderedDict()
     self.allApps = OrderedDict()
Ejemplo n.º 4
0
 def createFileName(self, nameGiven):
     # include the date and the name, if any. Date is used for archiving, name for display
     parts = [ "teststate", calculateBatchDate() ]
     if nameGiven:
         parts.append(nameGiven)
     return string.join(parts, "_")