Пример #1
0
 def getTransientVars(self):
     return {
         'GC_DATE':
         strftime("%F"),
         'GC_TIMESTAMP':
         strftime("%s"),
         'GC_GUID':
         strGuid(
             str.join(
                 "",
                 imap(lambda x: "%02x" % x,
                      imap(random.randrange, [256] * 16)))),
         'RANDOM':
         str(random.randrange(0, 900000000))
     }
Пример #2
0
	def _generateBlockName(self, key, data):
		return strGuid(key)
Пример #3
0
	def getTransientVars(self):
		return {'GC_DATE': strftime("%F"), 'GC_TIMESTAMP': strftime("%s"),
			'GC_GUID': strGuid(str.join("", imap(lambda x: "%02x" % x, imap(random.randrange, [256]*16)))),
			'RANDOM': str(random.randrange(0, 900000000))}
Пример #4
0
 def generateBlockName(self, key, data):
     return strGuid(key)