WSGI wrapper for Pyblosxom
Steven Armstrong <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Pyblosxom World
I have just put up my weblog running on pyblosxom.
While looking for a clean way to serve it from mod_python I decided to
give the WSGI approach a try.
So I wrote a few wrappers and pyblosxom is now happily running on it
both as a cgi and as a mod_python handler while using the same startup
function and config.
mod_python version:
http://www.c-area.ch/weblog/
cgi version:
http://www.c-area.ch/weblog-cgi/
the code for it:
http://www.c-area.ch/code/
the relevant files are:
code/
mp_wsgi_handler.py <-- the wsgi wrapper for mod_python
pyblosxom_wsgi_cgi.txt <-- the cgi launcher script
wsgi_app.py <-- the Pyblosxom wsgi application
pyblosxom/
wsgi.py <-- wrapper classes to cover the
Pyblosxoms internals
renderers/
wsgi.py <-- the wsgi renderer
With such an approach one could run Pyblosxom on any app-server.
For example I found a interesting example for twisted here:
http://svn.colorstudy.com/trunk/WSGIKit/wsgikit/twisted_wsgi.py
I also hacked on a few plugins. Some of my own, and some that I found on
the net which where eather not finished or didn't work for me out of box.
They are also on my site. I tried to give credits and copyright to
people who gave me ideas with their plugins or blogs. If I missed
someone/something please let me know.
I was wondering how the Pyblosxom hackers/users think about all this and
would be happy to get some feedback on the approach.
cheers
Steven
ps: I am both a Pyblosxom and Python n00b. So if you see some
un-pythonic code please point me to it. I'm doing all this mainly cause
I want to learn Python.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/