When I pass etag='*' parameter, I get "AttributeError: 'str' object has no 
attribute 'modify_request'", apparently because it is trying to call 
modify_request() on the value of etag. See below:

/Users/hdara/bin/python/lib/python2.6/site-packages/atom/client.pyc in 
request(self, method, uri, auth_token, http_request, **kwargs)
     96     for name, value in kwargs.iteritems():
     97       if value is not None:
---> 98         value.modify_request(http_request)
     99     # Default to an http request if the protocol scheme is not set.

    100     if http_request.uri.scheme is None:

AttributeError: 'str' object has no attribute 'modify_request'

In [47]: %debug
> 
/Users/hdara/bin/python/lib/python2.6/site-packages/atom/client.py(98)request()
     97       if value is not None:
---> 98         value.modify_request(http_request)
     99     # Default to an http request if the protocol scheme is not set.


ipdb> kwargs
{'etag': '*', 'data': <gdata.data.MediaSource object at 0x105342050>, 
'ifmatch_header': None}
ipdb> value
'*'

I tried to basically do exactly what you are doing, including the seeks. I 
don't know the type of "photo", but I simply opened the image file and used 
that instead of "photo.file". If I send you my file and usage, would you be 
kind enough to run it in your environment and provide me with any more help? 
This has been really bugging me.

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html

Reply via email to