예제 #1
0
파일: rooms.py 프로젝트: 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)
예제 #2
0
파일: threads.py 프로젝트: drew/seddit
 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')
예제 #3
0
파일: threads.py 프로젝트: drew/seddit
 def GET(self, id):
     # TODO if a trasncript is requested for an invalid thread id, tell the user.
     print simplejson.dumps(threads.threadtranscript(id))