Question: Any plans of upgrading the config option parsing to use the
newer AST or Parsing modules, or do I just wing it here?
I am NOT a compiler guy. I can muddle through with it some, but, like,
damn. (To paraphrase Will Smith).
I think I could hack around on it and get something going, but just
wanted to check with y'all first and see if there was anything in the
works before I go off half-cocked here.
Thanks for your attention,
Dave
--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherryp...@googlegroups.com.
To unsubscribe from this group, send email to cherrypy-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en.
import fepy
fepy.install_option('fileobject')
import cherrypy
class Empty(object):
@cherrypy.expose
def hello(self):
return "hello"
config = {'/' :
{
'engine.autoreload_on':False,
'log.screen':False,
'server.socket_host' : "0.0.0.0",
'server.socket_port' : 8080,
'server.thread_pool' : 10,
'engine.autoreload_on' : False,
'log.screen' : False
}
}
import threading
class ThreadClass(threading.Thread):
def run(self):
cherrypy.tree.mount(Empty(), "/", config = config)
cherrypy.quickstart(Empty(), "/", config = config)
t = ThreadClass()
t.start()