[google-appengine] Re: deserialize xml

2009-08-22 Thread Ritesh Nadhani
Hi I dont think you need the serializer of django. From what I see, it is more for translating Django objects. What you need is a XML parser. http://groups.google.com/group/google-appengine/browse_thread/thread/85b7d03ff0d4ff2b/9fdfec112a4c051a?pli=1 On Wed, Aug 19, 2009 at 2:30 PM, veearrsix

[google-appengine] Re: deserialize xml

2009-08-22 Thread vp
I think it is easier and faster to work with json instead of xml. For flick api, you can change response to json easily: http://www.flickr.com/services/api/response.json.html As for how to process json in your app: from django.utils import simplejson from google.appengine.api import urlfetch ur

[google-appengine] Re: deserialize xml

2009-08-24 Thread Anthoni
Hi veearrsix, Like vp mentioned above, the fastest way to query flickr is to use their json api, Below is some code that I use in one of my Google Wave Robots to do such a thing, hope it helps. The code was given in the Robots group and is not mine, but it does work. [code] def searchFlickr(quer

[google-appengine] Re: deserialize xml

2009-08-25 Thread veearrsix
Cheers Guys, I went the simplejson route, I was wondering is there much difference performance wise in the way you've removed the jsonp text, I've done it this way: ... data = urlfetch.fetch(url, headers={}, payload=params,method=urlfetch.POST) json = re.search ('{.*}', data.content )