/examples/web/wsgiapp.py

https://bitbucket.org/prologic/circuits/ · Python · 13 lines · 7 code · 5 blank · 1 comment · 0 complexity · 7dd46b997fb8ecbd722c4b334928545c MD5 · raw file

  1. #!/usr/bin/env python
  2. from circuits.web import Controller
  3. from circuits.web.wsgi import Application
  4. class Root(Controller):
  5. def index(self):
  6. return "Hello World!"
  7. application = Application()
  8. Root().register(application)