Issue 715 in gdata-python-client: The DeleteRow function results in the deletion of every other row when iterating through a ListFeed in a spreadsheet using python gdata in New Google Spreadsheets

14 views
Skip to first unread message

gdata-pyt...@googlecode.com

unread,
Jan 18, 2015, 8:19:00 AM1/18/15
to gdata-python-client-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 715 by kirbysol...@gmail.com: The DeleteRow function results in
the deletion of every other row when iterating through a ListFeed in a
spreadsheet using python gdata in New Google Spreadsheets
https://code.google.com/p/gdata-python-client/issues/detail?id=715

What steps will reproduce the problem?
1. Prepare two *NEW* google spreadsheets, “input". Enter multiple rows of
data into the worksheet. For example, put the following in column A, each
on its own row: ID, 1,2,3,4,5,6,7,8,9,10,11,12
2. Perform deleterow() in a loop over a ListFeed

import gdata.spreadsheet.service
import gdata.service

ss_key = “google spreadsheet key";

gd_client = gdata.spreadsheet.service.SpreadsheetsService();

...
gd_client.ProgrammaticLogin();

feed = gd_client.GetWorksheetsFeed(ss_key);
worksheetID =
feed.entry[int(feed.total_results.text)-1].id.text.rsplit('/', 1)[1]
listFeed = gd_client.GetListFeed(ss_key, worksheetID);

for row in listFeed.entry:
gd_client.DeleteRow(row)


What is the expected output? What do you see instead?
Expected output would be for the rows except the header to be deleted.
What I see is that rows 2,4,6,8,10 and 12 remain. If I run it again, rows
4,8,12 remain. It is deleting every other row.

What version of the product are you using?
gdata 2.0.18 and new google spreadsheets

Please provide any additional information below.
This approach continues to work the old google spreadsheets. It does not
work with the new google spreadsheets.





--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

gdata-pyt...@googlecode.com

unread,
Jan 20, 2015, 2:45:21 PM1/20/15
to gdata-python-client-...@googlegroups.com

Comment #1 on issue 715 by afs...@google.com: The DeleteRow function
results in the deletion of every other row when iterating through a
ListFeed in a spreadsheet using python gdata in New Google Spreadsheets
https://code.google.com/p/gdata-python-client/issues/detail?id=715

Please raise this here:
https://github.com/google/gdata-python-client/issues/new
Reply all
Reply to author
Forward
0 new messages