okfn/webstore-client — Issue #6: Webstore client is broken - writerow and writerows do not work
Author: rgrp
Created: 2011-11-04 08:38:29+00:00
State: open

After several hours of debugging (this started while trying to implement stuff in dpm!) I have clearly established that writerow and writerows do not work with current webstore.

Specifically basic test code will hang after creating table and headers (only 'a') but failing to write any rows:

import webstore.client
db, table = webstore.client.URL('http://localhost:5001/test/test/data')
rows = [
{ 'a': '1' },
{ 'b': '1' }
]
table.writerows(rows)

I suspect looking at the code changes in webstore that this relates to move to upsert in this commit https://github.com/okfn/webstore/commit/9d3f067fa2f7f2962b74c991dbd30b9810cfd630 but not absolutely certain and do not know whether bug is in webstore client or webstore (more tests please :-) ) but I do know curl csv upload to webstore does work.