Re: xmlrpc_metaweblog.py problem
Richard Chamberlain <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
On 13 Dec 2004, at 02:35, Wari Wahab wrote:
>
>> Which looking at the cgi module means that cgi.list is equal to None.
>>
>> So presumably I have some issue where the cgi parameters are not
>> getting to the actual script.
>>
>> I should point out that if I move the whole pyblosxom and my entries
>> to a different server everything works as expected, so it's a problem
>> on this particular server. Unfortunately it happens to be the server
>> where my site is hosted.
>>
>> Anyone have any ideas?
>
> Hmmm, looks like the cgi input stream have been processed by something
> else on the web server, a cgi preprocessing utility, for example,
> mod_python or cgi-wrapper, or could even be processed by pyblosxom
> earlier in the code. Else you got a buggy webserver, or buggy python,
> or buggy pyblosxom :). Try to write a simple python cgi program that
> displays whatever is in the cgi.list. See if you find anomalies there.
> Sorry if we can't be more helpful.
Thanks again for the reply.
I've debugged somewhat further (I'm learning fast how pyblosxom
works!). I tried logging the requests on both servers and they were
pretty much identical.
From what I can tell xmlrpc.py or xmlrpc_metaweblog doesn't appear to
be getting called. Firstly I stuck some print statements in both xmlrpc
and xmlrpc_metaweblog which I expect to see show up in the log, but
nothing appeared. I then tried logging to a file in the process method
in xmlrpc and still nada.
I logged PATH_INFO and that shows correctly as /RPC.
I've also discovered that my original error:
File
"/home/richardc/public_html/pyblosxom/pyblosxom-1.0.0/Pyblosxom/
pyblosxom.py", line 590, in blosxom_process_path_info
data['flavour'] = (form.has_key('flav') and form['flav'].value or
File "/usr/local/lib/python2.3/cgi.py", line 603, in has_key
raise TypeError, "not indexable"
TypeError: not indexable
Doesn't happen on the other server because the it never gets to that
bit of code, again having logged it.
I've installed will's pluginfo plugin and the xmlrpc plugins are both
listed.
So for some reason the xmlrpc plugins are not handling the request
causing it to be handled as a standard request, hence the failure.
Any other suggestions how I go about debugging this?
Thanks,
Richard
-------------------------------------------------------
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/