本文整理汇总了Python中torlite.model.core_tab.CabMember.update方法的典型用法代码示例。如果您正苦于以下问题:Python CabMember.update方法的具体用法?Python CabMember.update怎么用?Python CabMember.update使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类torlite.model.core_tab.CabMember
的用法示例。
在下文中一共展示了CabMember.update方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: update_info
# 需要导入模块: from torlite.model.core_tab import CabMember [as 别名]
# 或者: from torlite.model.core_tab.CabMember import update [as 别名]
def update_info(self, u_name, newemail):
entry = CabMember.update(
user_email=newemail,
).where(CabMember.user_name == u_name)
entry.execute()
return entry
示例2: update_reset_passwd_timestamp
# 需要导入模块: from torlite.model.core_tab import CabMember [as 别名]
# 或者: from torlite.model.core_tab.CabMember import update [as 别名]
def update_reset_passwd_timestamp(self, uname, timeit):
entry = CabMember.update(
reset_passwd_timestamp = timeit,
).where(CabMember.user_name == uname)
entry.execute()
return entry
示例3: update_privilege
# 需要导入模块: from torlite.model.core_tab import CabMember [as 别名]
# 或者: from torlite.model.core_tab.CabMember import update [as 别名]
def update_privilege(self, u_name, newprivilege):
print(u_name)
entry = CabMember.update(
privilege=newprivilege
).where(CabMember.user_name == u_name)
entry.execute()
return entry
示例4: update_pass
# 需要导入模块: from torlite.model.core_tab import CabMember [as 别名]
# 或者: from torlite.model.core_tab.CabMember import update [as 别名]
def update_pass(self,u_name, newpass):
entry = CabMember.update(
user_pass = hashlib.md5(newpass.encode('utf-8')).hexdigest() ,
).where(CabMember.user_name == u_name)
entry.execute()
return entry
示例5: update_pass
# 需要导入模块: from torlite.model.core_tab import CabMember [as 别名]
# 或者: from torlite.model.core_tab.CabMember import update [as 别名]
def update_pass(self, u_name, newpass):
entry = CabMember.update(
user_pass=tools.md5(newpass),
).where(CabMember.user_name == u_name)
entry.execute()
return entry