Example #1
0
File: rooms.py Project: drew/seddit
    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)
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):
     person = auth.getuser()
     recent = threads.getrecent(person.id, limit=40)
     print config.base.layout(view.recent(recent), person)
Example #4
0
 def GET(self):
     person = auth.getuser()
     recent = threads.getrecent(person.id)
     
     print config.base.layout(view.dashboard(person, recent), person)