コード例 #1
0
ファイル: meep_example_app.py プロジェクト: Foxsly/meep
    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) ]        
コード例 #2
0
ファイル: meep_example_app.py プロジェクト: Solatrus/meep
    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) ]
コード例 #3
0
ファイル: meep_example_app.py プロジェクト: Solatrus/meep
    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)
        ]