XMLRPC / TextMate / Awkwardness
Posted: Fri Mar 23, 2007 12:11 am
Hi there,
those people who use TextMate's Blogging-Bundle to maintain their Seredipity blogs may have noticed that setting the "Comments:" and "Ping:"-headers seem to have no effect (also, s9y always interprets the date sent by TM as time(0), but that's another matter I'll fix tomorrow).
I tracked the problem down to a buglet in TextMate where its blogging entry parser is unable to handle empty headers.
s9y always generates at least one empty blog property record member when entries are accessed by XML-RPC: mt_convert_breaks is always present in answers and is always empty. mt_keywords also is always there in s9y's answers but it's sometimes filled, so no problems there.
I posted a fix to the author of the blogging bundle, so we'll see a fix from TextMate I hope. But I'm still posting here to ask you:
Is it actually allowed behaviour to send empty record member? From my understanding it would make more sense to just omit the member if it's empty. I had a look at the s9y-XMLRPC-plugin and it looks kind of non-trivial to produce a quick patch, so I'm asking first and patching later :p
Anyways. With this fix to TextMate (http://www.lipfi.ch/bb_fixparser.diff and/or http://www.lipfi.ch/bb_skipempty.diff - depending on where you want to patch - have a look at the text mate mailing list archives for details), we are getting one large step closer to actually being able to blog to s9y with the help of TextMate.
Tomorrow I'll try and fix the date problem.
Philip
those people who use TextMate's Blogging-Bundle to maintain their Seredipity blogs may have noticed that setting the "Comments:" and "Ping:"-headers seem to have no effect (also, s9y always interprets the date sent by TM as time(0), but that's another matter I'll fix tomorrow).
I tracked the problem down to a buglet in TextMate where its blogging entry parser is unable to handle empty headers.
s9y always generates at least one empty blog property record member when entries are accessed by XML-RPC: mt_convert_breaks is always present in answers and is always empty. mt_keywords also is always there in s9y's answers but it's sometimes filled, so no problems there.
I posted a fix to the author of the blogging bundle, so we'll see a fix from TextMate I hope. But I'm still posting here to ask you:
Is it actually allowed behaviour to send empty record member? From my understanding it would make more sense to just omit the member if it's empty. I had a look at the s9y-XMLRPC-plugin and it looks kind of non-trivial to produce a quick patch, so I'm asking first and patching later :p
Anyways. With this fix to TextMate (http://www.lipfi.ch/bb_fixparser.diff and/or http://www.lipfi.ch/bb_skipempty.diff - depending on where you want to patch - have a look at the text mate mailing list archives for details), we are getting one large step closer to actually being able to blog to s9y with the help of TextMate.
Tomorrow I'll try and fix the date problem.
Philip