本文整理匯總了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