def api_submission_view_(request): form = request.web_input(anyway='', increment_views='') return submission.select_view_api(request.userid, int(request.matchdict['submitid']), anyway=bool(form.anyway), increment_views=bool( form.increment_views))
def submission_tag_history_(request): submitid = int(request.matchdict['submitid']) page_title = "Tag updates" page = define.common_page_start(request.userid, title=page_title) page.append(define.render('detail/tag_history.html', [ submission.select_view_api(request.userid, submitid), searchtag.tag_history(submitid), ])) return Response(define.common_page_end(request.userid, page))
def GET(self, submitid): submitid = int(submitid) page_title = "Tag updates" page = define.common_page_start(self.user_id, title=page_title) page.append(define.render('detail/tag_history.html', [ submission.select_view_api(self.user_id, submitid), searchtag.tag_history(submitid), ])) return define.common_page_end(self.user_id, page)
def GET(self, submitid): submitid = int(submitid) page_title = "Tag updates" page = define.common_page_start(self.user_id, title=page_title) page.append( define.render('detail/tag_history.html', [ submission.select_view_api(self.user_id, submitid), searchtag.tag_history(submitid), ])) return define.common_page_end(self.user_id, page)
def GET(self, submitid): form = web.input(anyway='', increment_views='') result = submission.select_view_api( self.user_id, int(submitid), anyway=bool(form.anyway), increment_views=bool(form.increment_views)) return json.dumps(result)
def api_submission_view_(request): form = request.web_input(anyway='', increment_views='') return submission.select_view_api( request.userid, int(request.matchdict['submitid']), anyway=bool(form.anyway), increment_views=bool(form.increment_views))