def get_worksheet_feed(client, ss, ws): try: ss_id = get_feed_id(client.GetSpreadsheetsFeed(), ss) ws_id = get_feed_id(client.GetWorksheetsFeed(ss_id), ws) list_feed = client.GetListFeed(ss_id, ws_id) except gdata.service.RequestError: print >> ERROR_FILE, "There was an error connecting to google." sys.exit(0) return list_feed
def get_worksheet_feed(client, ss, ws): ''' Returns Google worksheet feed. ''' try: ss_id = get_feed_id(client.GetSpreadsheetsFeed(), ss) ws_id = get_feed_id(client.GetWorksheetsFeed(ss_id), ws) list_feed = client.GetListFeed(ss_id, ws_id) except gdata.service.RequestError: print >> ERROR_FILE, 'There was an error connecting to google for (spreadsheet, worksheet): (' + ss + ', ' + ws + ')' sys.exit(0) return list_feed
def get_worksheet_feed(client, ss, ws): ss_id = get_feed_id(client.GetSpreadsheetsFeed(), ss) ws_id = get_feed_id(client.GetWorksheetsFeed(ss_id), ws) return client.GetListFeed(ss_id, ws_id)