I would like to know how to call some method from of a cherrypy app
code in the interactive python shell, it uses the request/response
variables, currently it is not possible as far as I know, because
cherrypy.request and cherrypy.response variables are empty when the
server is not started and there is (obviously) no request to respond
to. Maybe if they could have an empty default state I could perform the
tests on the interactive shell simulating a new server serving a fake
empty request. Maybe I could get my hands into writting this but I'd
like to know first if it is a bad idea.
Any suggestions to this? Should I be posting this to cherrypy-users
instead?
I would like to know how to call some method from of a cherrypy app
code in the interactive python shell, it uses the request/response
variables, currently it is not possible as far as I know, because
cherrypy.request and cherrypy.response variables are empty when the
server is not started and there is (obviously) no request to respond
to. Maybe if they could have an empty default state I could perform the
tests on the interactive shell simulating a new server serving a fake
empty request. Maybe I could get my hands into writting this but I'd
like to know first if it is a bad idea.
Any suggestions to this? Should I be posting this to cherrypy-users
instead?
Just a note that this has already been worked on for CP 3. There will
be dummy request and response objects, with default values.
Robert Brewer
System Architect
Amor Ministries
fuma...@amor.org