Skip to content

Commit b22dc01

Browse files
author
api.jscudder
committed
Added comments to better describe the use of the list entry's custom dictionary in the spreadsheets sample.
1 parent f3e742a commit b22dc01

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

samples/spreadsheets/spreadsheetExample.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,11 @@ def _PrintFeed(self, feed):
145145
print '%s %s\n' % (entry.title.text, entry.content.text)
146146
elif isinstance(feed, gdata.spreadsheet.SpreadsheetsListFeed):
147147
print '%s %s %s' % (i, entry.title.text, entry.content.text)
148+
# Print this row's value for each column (the custom dictionary is
149+
# built using the gsx: elements in the entry.)
150+
print 'Contents:'
148151
for key in entry.custom:
149-
print '%s: %s' % (key, entry.custom[key].text)
152+
print ' %s: %s' % (key, entry.custom[key].text)
150153
print '\n',
151154
else:
152155
print '%s %s\n' % (i, entry.title.text)

0 commit comments

Comments
 (0)