Exemple #1
0
 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)
Exemple #2
0
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))
Exemple #3
0
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))