Beispiel #1
0
 def can_commit(self, commit=True):
     if commit:
         commitsession()
     return self
Beispiel #2
0
 def save(self, commit=True):
     session().add(self)
     x = current_app
     if commit:
         commitsession()
     return self
Beispiel #3
0
 def commit(self):
     return commitsession()
Beispiel #4
0
 def delete(self):
     x = current_app
     session().delete(self)
     commitsession()