예제 #1
0
    def GET(self):
        # Check for the key in the query
        key = None
        if not key:
            # generate a fresh key and redirect
            pass

        # Look up our state from the database
        state = None

        import make_status
        statuses = [(make_status.random_template(),
                     make_status.random_person())
                    for _ in range(6)]


        web.header('content-type', 'text/html')
        template = Template(filename='template_statusupdate.html',
                            input_encoding='utf-8',
                            encoding_errors='replace',
                            output_encoding='utf-8')
        return template.render(statuses=statuses)
예제 #2
0
 def GET(self):
     import make_status
     return make_status.random_template()