コード例 #1
0
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))
コード例 #2
0
ファイル: detail.py プロジェクト: bubbt/weasyl
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))
コード例 #3
0
ファイル: detail.py プロジェクト: hyena/weasyl
    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)
コード例 #4
0
ファイル: detail.py プロジェクト: weykent/weasyl
    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)
コード例 #5
0
ファイル: api.py プロジェクト: weykent/weasyl
 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)
コード例 #6
0
ファイル: api.py プロジェクト: Weasyl/weasyl
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))