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