Example #1
0
 def GET(self, id):
     """ displays the requested thread as an archived webpage.
     """
     thread = threads.thread(id)
     comments = thread.comments()
     f = commentform()
     print config.base.layout(view.archive(thread.retrievearchive(), comments, f), person)
Example #2
0
 def GET(self, id):
     thread = threads.thread(id)
     
     if thread['resolved']:
         web.seeother('/thread/%s/archive/' % id)
     
     transcript = threads.threadtranscript(id)
     threads.updaterecent(person.id, id)
     
     recent = threads.getrecent(person.id, limit=2)
     print config.base.thread(view.thread(transcript.thread, transcript.messages, auth.getuser()), recent, 'thread')
Example #3
0
 def GET(self, id):
     """ marks the thread as resolved
     
         NOTE only the user that asked the question, can mark the question as resolved. In the future
         i think that admins will be able to close questions as well, but for now, i haven't
         implemented that yet.
         
         TODO check to make sure the user trying to close the thread is the originating user.
     """
     thread = threads.thread(id)
     aid = thread.archive()
     web.seeother('/thread/%i/archive/' % thread['id'])