def post(self): r_model = ResourceModel(self.user.id) resource_list = r_model.recource_list()
def post(self): url = self.get_argument("url", None) resource_type = self.get_argument("type", "text") r_model = ResourceModel(self.user.id) r_model.create(url,resource_type)