in common/utils.py, def upload_file_binary, you need to return the data stream. line 78 should be: return self.buf_uploadFile or self.buf_uploadFile.getValue(), of course that's pretty crude. in line 71, your are checking the quality of the c.perform operation; in oycurl as in curl, success is indicated by null/None. so if response is not None: #clean up and return pycurl failure.
overall, the python sdk looks like a java-2-python transliteration, which isn;t all that great. i'm a bit bit short on time right now but if you want, i can at least clean up the utils.py. any particular reason you are using pycurl instead of httplib2 or requests?
This message was posted using Email2Forum by Imran Rafique.