Page 1 of 1

xmlrpc patch to fix problems when posting from emacs

Posted: Sat May 17, 2008 11:13 pm
by TimNiceBut
I've been using serendipity for a while and am very happy with it in general (thanks!) but I've recently run into problems when trying to use Emacs weblogger mode to post directly from Emacs to my blog. The problem turned out to be that weblogger-mode is using the mt.supportedMethods xml rpc call to work out which feature the server supports, but the server doesn't implement the call, so weblogger-mode switches to "dumbest possible" and as a result, loses information like the title when posting the new article.

Anyway, I've extended an older version of the XMLRPC event plugin to support the necessary calls and this fixes the issue (and presumably allows other offline editors that are also using the same method to work out the server's capabilities). I've converted the patch to the latest available release (1.40) and just created a diff file which can be found at http://www.bsdninjas.co.uk/scratch/[/mt ... hods.patch. Would be great if that could be included in a future release of the XMLRPC plugin.

Re: xmlrpc patch to fix problems when posting from emacs

Posted: Wed May 21, 2008 11:20 am
by garvinhicking
Hi!

That would be great, but it seems the URL you gave returns a 404?

Best regards,
Garvin

Re: xmlrpc patch to fix problems when posting from emacs

Posted: Wed May 21, 2008 1:38 pm
by sonichouse
garvinhicking wrote:Hi!

That would be great, but it seems the URL you gave returns a 404?

Best regards,
Garvin
try http://www.bsdninjas.co.uk/scratch/mt_s ... hods.patch that worked for me.

Re: xmlrpc patch to fix problems when posting from emacs

Posted: Wed May 21, 2008 2:36 pm
by garvinhicking
Hi!

Thanks a lot! I've just committed it to the plugin.

Regards,
Garvin

Posted: Thu May 22, 2008 11:48 am
by TimNiceBut
Oops, sorry about the messed-up URL. Looks like beers and programming mix as well as ever...

Garvin, thanks for integrating the patch, much appreciate!

Posted: Thu May 22, 2008 3:14 pm
by judebert
You passed the Ballmer Peak, didn't you? :lol: