Hey Vic thanks for replying,
heres the code:
def row_insert(self, row_data, key, wksht_id):
entry = gs_client.InsertRow(row_data, key, wksht_id)
if isinstance(entry, gdata.spreadsheet.SpreadsheetsList):
print 'Inserted!'
thing is that row_data is an unorganized dictionary of rows i retrieved from
another spreadsheet using:
def row_data():
data = {}
# Document retrieving has to be simplified for performance
q = gdata.spreadsheet.service.DocumentQuery()
# Solution for now :D
q["key"] = "tD_D6a1LhPtHwkwKshdV4Uw"
feed = gs_client.GetSpreadsheetsFeed(query=q)
spreadsheet_id = feed.entry[0].id.text.rsplit('/',1)[1]
feed = gs_client.GetWorksheetsFeed(spreadsheet_id)
worksheet_id = feed.entry[0].id.text.rsplit('/',1)[1]
rows = gs_client.GetListFeed(spreadsheet_id, worksheet_id).entry
return rows
so thats why i was wondering how can i organize the data so that i can
create the rows with the columns in order.
also when trying to create the row , i get the following error
RequestError: {'status': 400, 'body': 'We're sorry, a server error
occurred. Please wait a bit and try reloading your spreadsheet.', 'reason':
'Bad Request'}
please advice as to whats causing this,
thanks