Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def addUser(self, username=None, password=None, full_name=None,
- email=None, nick=None, ua_dict={}):
- def thd(conn):
- transaction = conn.begin()
- # insert ua_dict info, defaulting to False where key not given
- if not ua_dict:
- ua_dict = self.defaultAuthz()
- else:
- # ...
- transaction.commit()
- d = self.db.pool.do(thd)
- return d
Add Comment
Please, Sign In to add comment