Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Root(object):
- ##########I want to parametrize###################
- john = Storm("john")
- second = Storm("second")
- eric = Storm("eric")
- .
- .
- .
- ########this part of the code#####################
- @cherrypy.expose
- @cherrypy.tools.mako(filename="index.html", directories=MEDIA_DIR)
- def index(self, name=None):
- return {}
- cherrypy.tree.mount(Root(), '/', config=config)
- cherrypy.engine.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement