Posted By

manatlan on 10/07/09


Tagged

server python web aeweb


Versions (?)

Simplest aeweb


 / Published in: Python
 

  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. from libs.aeweb import Web,log
  5.  
  6. class MyApp1(Web):
  7. def GET(self):
  8. return "hello"
  9.  
  10. def main():
  11. Web.app( [('/', MyApp1)] ).run()
  12.  
  13.  
  14. if __name__ == '__main__':
  15. main()

Report this snippet  

You need to login to post a comment.