def GET(self, journalid): form = web.input(anyway='', increment_views='') result = journal.select_view_api( self.user_id, int(journalid), anyway=bool(form.anyway), increment_views=bool(form.increment_views)) return json.dumps(result)
def api_journal_view_(request): form = request.web_input(anyway='', increment_views='') return journal.select_view_api(request.userid, int(request.matchdict['journalid']), anyway=bool(form.anyway), increment_views=bool(form.increment_views))
def api_journal_view_(request): form = request.web_input(anyway='', increment_views='') return journal.select_view_api( request.userid, int(request.matchdict['journalid']), anyway=bool(form.anyway), increment_views=bool(form.increment_views))