I recently had an email/IM chat between myself, Sylvain and Russ. This was before we had the forum setup. I got permission from them to capture this discussion on the forum. I have since marked up the code blocks and quotes, so it is easier to read this interchange of ideas.
Glad to meet you. I appreciate getting any type of assistance regarding CherryPy.
One of my first things I did when creating Spring Python was to make a web app demo
like Spring's petclinic, and I decided to use CherryPy (https://springpython.webfactional.com/wiki/PetClinic).
I think cherrypy is pretty neat. Since my HTML was not very complicated, I don't
use any templating libraries.
The whole demo app is located at https://springpython.webfactional.co...ples/petclinic.
petclinic.py is my cherrypy runner
model.py contains all my business object, i.e. python POJOs
controller.py contains the business logic, in this case database calls to populate
the model objects
view.py contains the HTML, and is basically a set of cherrypy exposed methods
noxml.py contains three IoC containers, one demonstrating client-and-server, the
other two demonstraing client-only and server-only versions of the application (show
off remoting features of Spring Python). Right now, I am working on the client-and-server
The version of petclinic.py I had working with CherryPy 2 is https://springpython.webfactional.co...nic.py?rev=109.
Last night, I downloaded CherryPy 3.1.0 (since it advertised out-of-the-box Google
App Engine support), and proceeded to adjust petclinic.py to work with it. You can
see what changes I made at https://springpython.webfactional.com/changeset/122.
I was able to view the petclinic app in my web browser, but my middleware security
filter isn't working. I wrote a WSGI-compliant security filter. It is meant
to intercept calls to "/", run them through the security filtering, and
if things succeed, pass through to the actual app I have mounted at root. My filter
code is located at https://springpython.webfactional.co...ecurity/web.py.
I would appreciate any help on how to migrate my application properly. If you have
questions, please feel free to email me, or IM me through skype me at "gregturn".
FYI: Spring Python is my "pet" project, not my day job, so I can't
always correspond in real time, but I will advise you about that.