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