Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class Root(object):
  2. ##########I want to parametrize###################
  3. john = Storm("john")
  4. second = Storm("second")
  5. eric = Storm("eric")
  6. .
  7. .
  8. .
  9. ########this part of the code#####################
  10.  
  11.  
  12. @cherrypy.expose
  13. @cherrypy.tools.mako(filename="index.html", directories=MEDIA_DIR)
  14. def index(self, name=None):
  15. return {}
  16.  
  17. cherrypy.tree.mount(Root(), '/', config=config)
  18. cherrypy.engine.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement