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