+try:
+ import uuid
+except ImportError, e:
+ # Some systems are using python 2.4, which doesn't have uuid
+ # this is a stub
+ logging.warning('Real uuid is not available, initializing fake uuid module')
+ class uuid:
+ def uuid1(self):
+ self.hex = None
+ return self