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

        IndexedObject.__init__(self, **kwargs)

        if hasattr(self, 'path'):
            self.basename = os.path.basename(self.path or '')
Esempio n. 4
0
 def save(self):
     #create a random score...
     if not hasattr(self, 'score'):
         self.score = random.randint(0, 100)
     IndexedObject.save(self)
Esempio n. 5
0
 def __init__(self, **kwargs):
     IndexedObject.__init__(self, **kwargs)
     self.registrationDate = int(kwargs.get('registrationDate', time.time()))
Esempio n. 6
0
    def __init__(self, **kwargs):

        IndexedObject.__init__(self, **kwargs)

        if hasattr(self,'path'):
            self.basename = os.path.basename(self.path or '')