示例#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
文件: people.py 项目: drew/seddit
 def GET(self):
     person = auth.getuser()
     recent = threads.getrecent(person.id, limit=40)
     print config.base.layout(view.recent(recent), person)
示例#4
0
文件: people.py 项目: drew/seddit
 def GET(self):
     person = auth.getuser()
     recent = threads.getrecent(person.id)
     
     print config.base.layout(view.dashboard(person, recent), person)