All,

I am new to Python and Django. I'm quickly catching on but have
finally run in to my first issue.

I'm building a simple app that will work with Google's Picasa. The
idea is to copy an album from one account to another, something that
Picasa won't let you do in its interface.

Here's the thing--I have this working within the Python shell, but
can't make it work with Django.

To retrieve an Album from Picasa, the code looks something like this:
album_uri_to_copy = request.POST['album_uri']
gclient1 = gdata.photos.service.PhotosService()
gclient1.ClientLogin( guser1, gpassword1 )
album_feed = gclient1.GetFeed(album_uri_to_copy)

And album_uri_to_copy might look like:
http://www.ggpht.com//data/feed/api/user/someuser/album?id=4rdioE_s&kind=photo

When calling:
album_feed = gclient1.GetFeed(album_uri_to_copy)

from a Python shell it works fine. When calling it from Django it
returns an Exception saying that album_uri_to_copy isn't a valid uri
or atom feed (this is a google error message).

I SUSPECT that the & is getting changed to "&". The thing is, I've
used {{ album_uri|safe }} in my template, so album_uri_to_copy should
be safe! I'm thinking that Django is interfering with the
album_uri_to_copy string in the GetFeed() call.

Can anyone give me some troubleshooting options?

Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to