예제 #1
0
 def GET(self, pid):
     user_email = helpers.get_loggedin_email()
     p = get_petition_by_id(pid)
     if not p: raise web.notfound
     ptitle = p.title
     signs = get_signs(pid).list()
     return render.signature_list(pid, ptitle, signs, is_author(user_email, pid))
예제 #2
0
 def GET(self, pid):
     user_email = helpers.get_loggedin_email()
     p = get_petition_by_id(pid)
     if not p: raise web.notfound()
     ptitle = p.title
     signs = get_signs(pid).list()
     return render.signature_list(pid, ptitle, signs,
                                  is_author(user_email, pid))
예제 #3
0
 def GET_signatories(self, pid):
     user_email = helpers.get_loggedin_email()
     ptitle = db.select('petition', what='title', where='id=$pid', vars=locals())[0].title
     signs = db.select(['signatory', 'users'], 
                     what='users.name, users.email, '
                          'signatory.share_with, signatory.comment',
                     where='petition_id=$pid AND user_id=users.id',
                     order='signtime desc',
                     vars=locals()).list()
     return render.signature_list(pid, ptitle, signs, is_author(user_email, pid))