def put(self): submit = self.request() if submit.__contains__("mobile"): ldap = Ldap() ldap.modify(session[USER_SESSION]["uid"], {"mobile": submit["mobile"]}, submit["password"]) User.edit(submit) return self.succ()
def put(self, uid): submit = self.request() ldap = Ldap() ldap.modify(uid, self.to_str_dict(submit)) User.update() return self.succ()