Looks like I figured it out, it was my mad Python skillz. I cast the
blah_id object as a string when feeding it to the GetFeed function.
Works now.

On Feb 4, 11:50 am, Karen Tracey <kmtra...@gmail.com> wrote:
> On Wed, Feb 4, 2009 at 2:37 PM, bfellows <bfell...@gmail.com> wrote:
>
> > Traceback:
> > File "/var/lib/python-support/python2.5/django/core/handlers/base.py"
> > in get_response
> > 86. response = callback(request, *callback_args, **callback_kwargs)
> > File "/var/django/.../views.py" in display
> > 33. photos = gd_client.GetFeed(f)
> > File "/usr/lib/python2.5/site-packages/gdata/photos/service.py" in
> > GetFeed
> > 177. return self.Get(uri, converter=gdata.photos.AnyFeedFromString)
> > File "/usr/lib/python2.5/site-packages/gdata/service.py" in Get
> > 981. headers=extra_headers)
> > File "/usr/lib/python2.5/site-packages/atom/service.py" in request
> > 176. data=data, headers=all_headers)
> > File "/usr/lib/python2.5/site-packages/atom/http_interface.py" in
> > perform_request
> > 148. return http_client.request(operation, url, data=data,
> > headers=headers)
> > File "/usr/lib/python2.5/site-packages/atom/http.py" in request
> > 93. connection = self._prepare_connection(url, all_headers)
> > File "/usr/lib/python2.5/site-packages/atom/http.py" in
> > _prepare_connection
> > 249. return HttpClient._prepare_connection(self, url, headers)
> > File "/usr/lib/python2.5/site-packages/atom/http.py" in
> > _prepare_connection
> > 161. return httplib.HTTPConnection(url.host)
> > File "/usr/lib/python2.5/httplib.py" in __init__
> > 639. self._set_hostport(host, port)
> > File "/usr/lib/python2.5/httplib.py" in _set_hostport
> > 645. i = host.rfind(':')
>
> And the exception info from your other message is:
>
> > Exception Type: AttributeError at /app/blah/
> > Exception Value: 'NoneType' object has no attribute 'rfind'
>
> So, host is None down in the depths of the library code.  Looking further
> up, we see something passing url.host, so host is somehow supposed to be
> associated with a url involved here.  Is the url you are passing in supposed
> to be able to be split into host[:port]/path?  (I know nothing of this
> GetFeed method you are calling here.)  If so, it doesn't look like you have
> provided the host portion.  That's just a guess, it could well be wrong.
> One way to figure out what it's supposed to be is to look at the sources
> identified in that traceback -- all the files and line numbers are
> identified there -- and figure out where host is supposed to be coming from,
> which should reveal what you need to do to get it set properly.
>
> Karen
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to