Re: xmlrpc_metaweblog.py problem
Richard Chamberlain <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Will,
Thanks for the reply.
On 12 Dec 2004, at 16:02, will guaraldi wrote:
> On Fri, 10 Dec 2004, Richard Chamberlain wrote:
>>
>> Up until recently I was posting using the xmlrpc_metaweblog.py plugin
>> and MarsEdit. For some reason it now fails and I've not managed to
>> easily persuade it to work again. I have the same set up configured
>> on two different servers on one it works no problem and on the other
>> it fails. I'm guessing it is some apache setting that is different
>> between the two.
>>
>> I get a traceback in MarsEdit's console:
>
> <snip>
>
> I don't think I've ever seen an error like this before. Can you do
> some debugging to figure out what "form" is at line 590 of
> pyblosxom.py? I think that's where I'd start.
Well I'm totally confused.
According to form.__class__.name it is a FieldStorage object as
expected.
When I dir the object to a file I get a list:
['FieldStorageClass', '_FieldStorage__write', '__contains__',
'__doc__', '__getattr__', '__getitem__', '__init__', '__iter__',
'__len__', '__module__', '__repr__', 'bufsize', 'disposition',
'disposition_options', 'done', 'file', 'filename', 'fp', 'getfirst',
'getlist', 'getvalue', 'has_key', 'headers', 'innerboundary',
'keep_blank_values', 'keys', 'length', 'list', 'make_file', 'name',
'outerboundary', 'read_binary', 'read_lines', 'read_lines_to_eof',
'read_lines_to_outerboundary', 'read_multi', 'read_single',
'read_urlencoded', 'skip_lines', 'strict_parsing', 'type',
'type_options']
Included in the list of methods is has_key, but it fails on attempting
to use the method:
if form.has_key('flav'):
File "/usr/local/lib/python2.3/cgi.py", line 603, in has_key
raise TypeError, "not indexable"
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?
Thanks again,
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/