def post(self):
    """Fetches the user's data."""

    try:
      feed = gdocs.GetDocumentListFeed()
      json = []
      for entry in feed.entry:
        if entry.lastModifiedBy is not None:
          last_modified_by = entry.lastModifiedBy.email.text
        else:
          last_modified_by = ''
        if entry.lastViewed is not None:
          last_viewed = entry.lastViewed.text
        else:
          last_viewed = ''
        json.append({'title': entry.title.text,
                     'links': {'alternate': entry.GetHtmlLink().href},
                     'published': entry.published.text,
                     'updated': entry.updated.text,
                     'resourceId': entry.resourceId.text,
                     'type': entry.GetDocumentType(),
                     'lastModifiedBy': last_modified_by,
                     'lastViewed': last_viewed
                    })
      self.response.out.write(simplejson.dumps(json))
    except gdata.service.RequestError, error:
      OAuthDance.post(self)
dataset/ETHPy150Open kuri65536/python-for-android/python-build/python-libs/gdata/samples/oauth/oauth_on_appengine/main_rsa.py/FetchData.post/original