Esempio n. 1
0
 def response(self, para):
     if para == 'info':
         return json_response(self.basic_info)
     elif para == 'contents':
         return json_response(self.contents)
Esempio n. 2
0
 def response(self):
     dbdata = ContentList(self.contents).info
     return json_response(dbdata)
Esempio n. 3
0
 def response(self, request):
     if request == "items":
         return json_response(self.items_info)