Ejemplo n.º 1
0
    def upload(self,local_xls,output_googleid):
        confpath=self.data_dir+local_xls
        fullpath=os.path.realpath(confpath)
        login=self._check_login()
        #login=None
        #if self.google_user:
        #    login=(self.google_user,self.google_password)

        print "upload", fullpath,output_googleid
        upload_item('spreadsheet:' + output_googleid, fullpath,login)
Ejemplo n.º 2
0
 def upload(self,local_xls,output_googleid):
     login=None
     if self.google_user:
         login=(self.google_user,self.google_password)
     upload_item('spreadsheet:' + output_googleid, local_xls,login)