Ejemplo n.º 1
0
    def list_topics(self, environ, start_response):
        topics = meeplib.get_all_topics()   
        
        headers = [('Content-type', 'text/html')]
        start_response("200 OK", headers)

        return [ render_page('view_topics.html', topics = topics) ]        
Ejemplo n.º 2
0
    def list_topics(self, environ, start_response):
        topics = meeplib.get_all_topics()
        
        cookie = environ.get('HTTP_COOKIE', '')

        username = meepcookie.load_username(cookie)
        
        headers = [('Content-type', 'text/html')]
        start_response("200 OK", headers)
        
        return [ render_page('list_topics.html', topics=topics, username=username) ]
Ejemplo n.º 3
0
    def list_topics(self, environ, start_response):
        topics = meeplib.get_all_topics()

        cookie = environ.get('HTTP_COOKIE', '')

        username = meepcookie.load_username(cookie)

        headers = [('Content-type', 'text/html')]
        start_response("200 OK", headers)

        return [
            render_page('list_topics.html', topics=topics, username=username)
        ]