Changeset 812

Show
Ignore:
Timestamp:
11/11/08 12:50:53 (8 weeks ago)
Author:
zindel
Message:

interact() for htsql_client.py

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/htsql_client/htsql_client.py

    r730 r812  
    422422                                          None, filter, perspective)) 
    423423 
     424    def interact(self, table, data, perspective=None, content_type='text/csv'): 
     425        return self.execute(build_request('interact().js', 
     426                                          table, None, None, 
     427                                          None, None, perspective), 
     428                            data, {'Content-Type': content_type}) 
     429 
    424430    def upload(self, table, locator, columns, filenames, perspective=None): 
    425431        # TODO: please document this... in particular, the logic  
  • trunk/test/test_client.py

    r636 r812  
    2222def test(item): 
    2323    return fetch(item) == result[item] 
     24fetch.interact('organization', "action(),id(),name\ninsert,my_org,My Org") 
    2425assert test('/organization.txt') 
    2526assert test('/organization.csv')