本文整理汇总了Python中data.storage.Storage.addUser方法的典型用法代码示例。如果您正苦于以下问题:Python Storage.addUser方法的具体用法?Python Storage.addUser怎么用?Python Storage.addUser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类data.storage.Storage
的用法示例。
在下文中一共展示了Storage.addUser方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Room
# 需要导入模块: from data.storage import Storage [as 别名]
# 或者: from data.storage.Storage import addUser [as 别名]
#.........这里部分代码省略.........
#
def deleteAnnouncement(self, id):
return self.__store.deleteAnnouncement(id)
# update course
def updateCourse(self, id, body):
return self.__store.updateCourse(id, body)
# enroll course
def enrollCourse(self, email, courseid):
return self.__store.enrollCourse(email, courseid)
#
# course list delete
#
def deleteCourse(self, id):
return self.__store.deleteCourse(id)
#
# course list find
#
def listCourse(self):
return self.__store.listCourse()
def auth(self, email, pwd):
return self.__store.auth(email,pwd)
def addUser(self,email,pwd,fname,lname):
return self.__store.addUser(email,pwd,fname,lname)
def updateUser(self, email, data):
return self.__store.updateUser(email,data)
def deleteUser(self, email):
return self.__store.deleteUser(email)
def getUser(self, email):
return self.__store.getUser(email)
def addCourse(self, body):
return self.__store.addCourse(body)
#
# category find
#
def catfind(self,id):
return self.__store.catfind(id)
#
# category list find
#
def catlistfind(self):
return self.__store.catlistfind()
#
# Category add data
#
def catadd(self,catname,catdesc,catcreatedate,catstatus):