コード例 #1
0
 def __init__(self,
              base_url,
              username=None,
              apikey=None,
              http_headers=None):
     self.base_url = base_url
     self.projects = ProjectService(base_url, username, apikey,
                                    http_headers)
     self.documents = DocumentService(self.projects, base_url, http_headers)
     self.version = VersionService(base_url, http_headers)
コード例 #2
0
ファイル: client.py プロジェクト: gnuman/zanata-python-client
class ZanataResource:
    def __init__(self, base_url, username = None, apikey = None,http_headers=None):
        self.base_url = base_url
        self.projects = ProjectService(base_url, username, apikey,http_headers)
        self.documents = DocumentService(self.projects,base_url,http_headers)
        self.version = VersionService(base_url,http_headers)

    def disable_ssl_cert_validation(self):
        self.projects.disable_ssl_cert_validation()
        self.version.disable_ssl_cert_validation()
コード例 #3
0
class ZanataResource:
    def __init__(self, base_url, http_headers):
        self.base_url = base_url
        self.projects = ProjectService(base_url, http_headers)
        self.documents = DocumentService(self.projects, base_url, http_headers)
        self.version = VersionService(base_url, http_headers)
        self.glossary = GlossaryService(base_url, http_headers)
        self.stats = StatService(base_url, http_headers)

    def disable_ssl_cert_validation(self):
        self.projects.disable_ssl_cert_validation()
        self.version.disable_ssl_cert_validation()
コード例 #4
0
class ZanataResource:
    def __init__(self,
                 base_url,
                 username=None,
                 apikey=None,
                 http_headers=None):
        self.base_url = base_url
        self.projects = ProjectService(base_url, username, apikey,
                                       http_headers)
        self.documents = DocumentService(self.projects, base_url, http_headers)
        self.version = VersionService(base_url, http_headers)

    def disable_ssl_cert_validation(self):
        self.projects.disable_ssl_cert_validation()
        self.version.disable_ssl_cert_validation()
コード例 #5
0
 def __init__(self, base_url, http_headers):
     self.base_url = base_url
     self.projects = ProjectService(base_url, http_headers)
     self.documents = DocumentService(self.projects, base_url, http_headers)
     self.version = VersionService(base_url, http_headers)
     self.glossary = GlossaryService(base_url, http_headers)
     self.stats = StatService(base_url, http_headers)
コード例 #6
0
ファイル: client.py プロジェクト: gnuman/zanata-python-client
 def __init__(self, base_url, username = None, apikey = None,http_headers=None):
     self.base_url = base_url
     self.projects = ProjectService(base_url, username, apikey,http_headers)
     self.documents = DocumentService(self.projects,base_url,http_headers)
     self.version = VersionService(base_url,http_headers)