Example #1
0
 def save(self):
     #create a random score...
     if not hasattr(self, 'score'):
         self.score = random.randint(0, 100)
     IndexedObject.save(self)
Example #2
0
 def save(self):
     #create a random score...
     if not hasattr(self, 'score'):
         self.score = random.randint(0, 100)
     IndexedObject.save(self)
Example #3
0
 def __init__(self, **kwargs):
     IndexedObject.__init__(self, **kwargs)
     self.registrationDate = int(kwargs.get('registrationDate',
                                            time.time()))
Example #4
0
 def __init__(self, **kwargs):
     IndexedObject.__init__(self, **kwargs)
     self.registrationDate = int(kwargs.get('registrationDate', time.time()))