prayagverma / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
1 stars 0 forks source link

AttributeError: 'DocsClient' object has no attribute 'GetEverything' #588

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Upgrade from 2.0.14 to 2.0.16
2. Use GetEverything() method to fetch the entire list of documents belong to a 
user, as explained here: 
http://code.google.com/apis/documents/docs/3.0/developers_guide_python.html#List
Docs

What is the expected output? What do you see instead?

I used to get output stating how many documents a user cold access.  However, I 
now just get:

AttributeError: 'DocsClient' object has no attribute 'GetEverything'

What version of the product are you using?

2.0.16

Code from page above:

docs = client.GetEverything()  # makes multiple HTTP requests.
print 'User has a total of %s documents in their account' % len(docs)
for doc in docs:
  print doc.title.text, ' - ', doc.GetDocumentType()

Original issue reported on code.google.com by bryankwa...@gmail.com on 24 Jan 2012 at 9:44

GoogleCodeExporter commented 9 years ago
use client.GetAllResources instead.

Example here:

http://code.google.com/p/gdata-python-client/source/browse/samples/docs/docs_v3_
example.py

Original comment by afs...@google.com on 2 Feb 2012 at 2:44