From: Oren Ben-K. <or...@ri...> - 2002-09-08 15:41:11
|
Armin Roehrl [mailto:ar...@xs...] wrote: > this is a 1st draft for the Linux journal article from > Stefan and me. Please tell us what is wrong/missing/, etc. Nicely done. I'm reading this as part of >100 messages so I can't really give it my undivided attention :-) but it looks good to me. A small nit (in addition to Brian's): > class MessageLoader: > def resolveType(self, value, url): Call this something other than 'url'. 'transfer' would be best. > if url == "!jabber.org,2003/message" > return Message(data) > msg = yaml.load(message_str, MessageLoader()).next() > print msg.to Have fun, Oren Ben-Kiki |