本文整理汇总了Python中data.storage.Storage.creatediscussioncollection方法的典型用法代码示例。如果您正苦于以下问题:Python Storage.creatediscussioncollection方法的具体用法?Python Storage.creatediscussioncollection怎么用?Python Storage.creatediscussioncollection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类data.storage.Storage
的用法示例。
在下文中一共展示了Storage.creatediscussioncollection方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Room
# 需要导入模块: from data.storage import Storage [as 别名]
# 或者: from data.storage.Storage import creatediscussioncollection [as 别名]
#.........这里部分代码省略.........
print("Inclassromm of update enrolled:::::::::::::");
self.__store.names();
return(self.__store.updateOwned(email,ownedCourse))
except:
return 'failed'
def updateQuiz(self,email,ownedQuiz):
try:
print("Inclassromm of update enrolled:::::::::::::");
self.__store.names();
return(self.__store.updateQuiz(email,ownedQuiz))
except:
return 'failed'
def announcementcollectionAdd(self,userJson):
try:
print("Inclassromm :::::::::::::");
self.__store.names();
return(self.__store.createannouncementcollection(userJson))
except:
return 'failed'
def discussioncollectionAdd(self,userJson):
try:
print("Inclassromm :::::::::::::");
self.__store.names();
return(self.__store.creatediscussioncollection(userJson))
except:
return 'failed'
def getdis(self,cid):
try:
return(self.__store.getdis(cid))
except:
return 'failed'
def creatediscussionlist(self):
try:
print("Inclassromm :::::::::::::");
print "inside classroommmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm"
self.__store.names();
return(self.__store.creatediscussionlist())
except:
return 'failed'
def createannouncementlist(self):
try:
self.__store.names();
return(self.__store.createannouncementlist())
except:
return 'failed'