Esempio n. 1
0
 def solver_commit_update(solver):
     try:
         solver.passwd = md5(solver.passwd).hexdigest()
         db_session.merge(solver)
         db_session.commit()
     except:
         db_session.rollback()
         raise
     return SOLVER_UPDATE_OK
Esempio n. 2
0
 def solver_commit_update(solver):
     try:
         solver.passwd = md5(solver.passwd).hexdigest()
         db_session.merge(solver)
         db_session.commit()
     except:
         db_session.rollback()
         raise
     return SOLVER_UPDATE_OK
Esempio n. 3
0
 def cs_commit_update(cs):
     try:
         cs.passwd = md5(cs.passwd).hexdigest()
         db_session.merge(cs)
         db_session.commit()
     except:
         db_session.rollback()
         raise
     return CS_UPDATE_OK
Esempio n. 4
0
 def cs_commit_update(cs):
     try:
         cs.passwd = md5(cs.passwd).hexdigest()
         db_session.merge(cs)
         db_session.commit()
     except:
         db_session.rollback()
         raise
     return CS_UPDATE_OK