Re: WSGI wrapper for Pyblosxom
Steven Armstrong <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello again I forgot something. One would have to apply the attached patch to pyblosxom.py to get the whole thing working. cheers Steven
pyblosxom.diff
(text/plain, 689 B)
Index: pyblosxom.py
===================================================================
RCS file: /cvsroot/pyblosxom/pyblosxom/Pyblosxom/pyblosxom.py,v
retrieving revision 1.51
diff -u -r1.51 pyblosxom.py
--- pyblosxom.py 19 Nov 2004 18:11:15 -0000 1.51
+++ pyblosxom.py 26 Nov 2004 12:22:19 -0000
@@ -415,7 +415,10 @@
data['renderer'] = r
- request.addHttp( {"form": cgi.FieldStorage() } )
+ # hack to make pyblosxom play nicely with mod_python
+ if not request.getHttp().has_key("form"):
+ request.addHttp( {"form": cgi.FieldStorage() } )
+
# process the path info to determine what kind of blog entry(ies)
# this is
tools.run_callback("pathinfo",