Example #1
0
def getAllSubmissions():
    pm = PersistenceManager()
    submissions = []
    items =  pm.getObjects("Submission")
    for item in items:
        submissions.append(Submission(item))
    return submissions
Example #2
0
 def save(self):
     pm = PersistenceManager()
     newItem = pm.saveObject(self.__dict__, type(self).__name__)
     self.updateWithReturnedItem(newItem)
Example #3
0
 def save(self):
     pm = PersistenceManager()
     pm.saveObject(self.__dict__, "User")
Example #4
0
 def save(self):
     pm = PersistenceManager()
     pm.saveObject(self.__dict__, "SiteCredentials")
Example #5
0
 def save(self):
     pm = PersistenceManager()
     newItem = pm.saveObject(self.__dict__, "Submission")
     self.updateWithReturnedItem(newItem)