Esempio n. 1
0
    def write_form(self, topic_btn = '/login', link1='/login',
                   text1 ='Log In', status = 'status red',
                   link2 = 'signup', text2 = 'Sign Up', username=''):

        cursor = Post.query()
        render(self, 'home_page.html',
               cursor = cursor,
               status = status, 
               link1 = link1, text1 = text1,
               link2 = link2, text2 = text2,
               username = username,
               new_topic_btn = topic_btn)