def real_main():
"""Every request passes through this function. It sets up a format for the
regex pattern used as the URL path in the URL mappings."""
url_path=r'%s(.*)'
url_mappings=[]
for handler in [SwapRequestHandler,
BlogRequestHandler,
GuestbookRequestHandler,
RootRequestHandler]:
url_mappings.append((url_path%handler.app_url, handler))
from google.appengine.ext.webapp import WSGIApplication
application=WSGIApplication(url_mappings, debug=True)
from wsgiref.handlers import CGIHandler
CGIHandler().run(application)
Thursday, July 17, 2008
Test Syntax Highlighter
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment