Results 1 to 10 of 14

Thread: Spring Python and CherryPy 3

Threaded View

  1. #1
    Join Date
    Aug 2006
    Posts
    382

    Default Spring Python and CherryPy 3

    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.
    ================================================== ========
    Hello Sylvain,

    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
    version.

    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.

    Thanks,
    Greg Turnquist
    Last edited by gregturn; Aug 28th, 2008 at 03:45 PM.
    Greg L. Turnquist (@gregturn), SpringSource/VMware
    Project Lead: Spring Python and author of Spring Python 1.1 and Python Testing Cookbook.
    Listen to Pond Jumpers, the international podcast for open source developers.
    These comments are my own personal opinions, and do not reflect those of my company.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •