def GET(self, room): room = rooms.getroom(room) transcript = threads.threadtranscript(room.thread_id) person = auth.getuser() recent = threads.getrecent(person.id, limit=2) print config.base.thread(view.lobby(transcript.thread, transcript.messages, person), recent)
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')
def GET(self, id): # TODO if a trasncript is requested for an invalid thread id, tell the user. print simplejson.dumps(threads.threadtranscript(id))