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): person = auth.getuser() recent = threads.getrecent(person.id, limit=40) print config.base.layout(view.recent(recent), person)
def GET(self): person = auth.getuser() recent = threads.getrecent(person.id) print config.base.layout(view.dashboard(person, recent), person)