c3po/mod/communicator.py
def _download_csv_from_gdocs(self, trans_csv_path, meta_csv_path):
        """
        Download csv from GDoc.
        :return: returns resource if worksheets are present
        :except: raises PODocsError with info if communication
                 with GDocs lead to any errors
        """
        try:
            entry = self.gd_client.GetResourceById(self.key)
            self.gd_client.DownloadResource(
                entry, trans_csv_path,
                extra_params={'gid': 0, 'exportFormat': 'csv'}
            )
            self.gd_client.DownloadResource(
                entry, meta_csv_path,
                extra_params={'gid': 1, 'exportFormat': 'csv'}
            )
        except (RequestError, IOError) as e:
            raise PODocsError(e)
        return entry
def _download_csv_from_gdocs(self, trans_csv_path, meta_csv_path):
        """
        Download csv from GDoc.
        :return: returns resource if worksheets are present
        :except: raises PODocsError with info if communication
                 with GDocs lead to any errors
        """
        try:
            entry = self.gd_client.GetResourceById(self.key)
            self.gd_client.DownloadResource(
                entry, trans_csv_path,
                extra_params={'gid': 0, 'exportFormat': 'csv'}
            )
            self.gd_client.DownloadResource(
                entry, meta_csv_path,
                extra_params={'gid': 1, 'exportFormat': 'csv'}
            )
        except (RequestError, IOError) as e:
            raise PODocsError(e)
        return entry
Download csv from GDoc.
        :return: returns resource if worksheets are present
        :except: raises PODocsError with info if communication
                 with GDocs lead to any errors