Guest User

Untitled

a guest
Oct 24th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. def addUser(self, username=None, password=None, full_name=None,
  2. email=None, nick=None, ua_dict={}):
  3.  
  4. def thd(conn):
  5. transaction = conn.begin()
  6.  
  7. # insert ua_dict info, defaulting to False where key not given
  8. if not ua_dict:
  9. ua_dict = self.defaultAuthz()
  10. else:
  11.  
  12. # ...
  13.  
  14. transaction.commit()
  15. d = self.db.pool.do(thd)
  16. return d
Add Comment
Please, Sign In to add comment