Re: Atom and web services interfaces

2005-11-25 Thread tonemcd
Groan! - just starting out on my Django career and already falling victim to the "didn't read the dcoumentation" disease! Thanks very much indeed Rob, it works fine now! cheers Tone

Re: Atom and web services interfaces

2005-11-25 Thread oggie rob
> Thanks for the reply Rob - yup it's a string all right, but the only time *I* pass anything to rfc3399 is when I pass it a datetime.datetime object. Okay, but I meant the add_item method wants a datetime. From your original post: f.add_item(title=u"Hot dog today", link = u"http://www.exampl

Re: Atom and web services interfaces

2005-11-25 Thread tonemcd
Thanks for the reply Rob - yup it's a string all right, but the only time *I* pass anything to rfc3399 is when I pass it a datetime.datetime object. It seems that the routine feedgenerator.writeString is sending rfc3399 a string rather than a datetime.datetime object, which it gets from the write

Re: Atom and web services interfaces

2005-11-25 Thread oggie rob
Looks like you are passing in a string object for the date. feedgenerator.rfc3339_date(when) will return a string rather than a datetime object, I'm guessing that is the problem. -rob

Re: Atom and web services interfaces

2005-11-24 Thread tonemcd
Oh yes, I figured that Django would be very RESTian-friendly from the URL dispatching. I did some digging around for Atom publishing modules (parsing seems to be pretty well taken care of with feedparser and ElementTree) and after some false starts, I found quite a good publisher in ... django! (d

Re: Atom and web services interfaces

2005-11-23 Thread Adrian Holovaty
On 11/23/05, tonemcd <[EMAIL PROTECTED]> wrote: > I'm thinking of using Django as the front-end to an experimental > Atom-enabled 'store' as outlined by Joe Gregorio at > http://www.xml.com/pub/a/2005/09/21/atom-store-web-database.html > [...] > Any thoughts gratefully received. Hi Tone, Django'