def View(env, resp):
 posts = forumdb.GetAllPosts()
 headers = [('Content-type', 'text/html')]
 resp('200 OK', headers)
 return [(HTML_WRAP % ''.join(((POST % p) for p in posts)))]

def View ( env , resp ) : posts = forumdb . GetAllPosts ( ) headers = [ ( 'Content-type' , 'text/html' ) ] resp ( '200 OK' , headers ) return [ ( HTML_WRAP % '' . join ( ( ( POST % p ) for p in posts ) ) ) ]
view is the main page of the forum .