示例#1
0
 def delete(self, del_id):
     try:
         del_count = CabMember.delete().where(CabMember.uid == del_id)
         del_count.execute()
         return True
     except:
         return False
示例#2
0
文件: muser.py 项目: net4nt/TorCMS
 def delete(self, del_id):
     try:
         del_count = CabMember.delete().where(CabMember.uid == del_id)
         del_count.execute()
         return True
     except:
         return False
示例#3
0
 def delete_by_user_name(self, user_name):
     try:
         del_count = CabMember.delete().where(CabMember.user_name == user_name)
         del_count.execute()
         return True
     except:
         return False
示例#4
0
文件: muser.py 项目: vaveee/TorCMS
 def delete_by_user_name(self, user_name):
     try:
         del_count = CabMember.delete().where(CabMember.user_name ==  user_name)
         del_count.execute()
         return True
     except:
         return False