Esempio n. 1
0
    def set_formatter(cls, formatter_name="terminal256"):
        """Set the formatter to use for the output

        :param formatter_name: the name of the Pygments formatter
        :type formatter_name: str
        """

        Config.set("core.formatter", formatter_name)
Esempio n. 2
0
File: http.py Progetto: sjl421/pycr
    def set_host(cls, host):
        """Set the Gerrit Code Review server host name

        :param host: the server's host
        :type host: str
        """

        Config.set('gerrit.host', host)
Esempio n. 3
0
    def set_formatter(cls, formatter_name='terminal256'):
        """Set the formatter to use for the output

        :param formatter_name: the name of the Pygments formatter
        :type formatter_name: str
        """

        Config.set('core.formatter', formatter_name)
Esempio n. 4
0
    def set_host(cls, host):
        """Set the Gerrit Code Review server host name

        :param host: the server's host
        :type host: str
        """

        Config.set("gerrit.host", host)
Esempio n. 5
0
File: http.py Progetto: enzbang/pycr
    def set_host(cls, host):
        """Set the Gerrit Code Review server host name.

        PARAMETERS
            host: the server's host
        """

        Config.set('gerrit.host', host)
Esempio n. 6
0
    def set_formatter(cls, formatter_name='terminal256'):
        """
        Set the formatter to use for the output.

        PARAMETERS
            formatter_name: the name of the Pygments formatter
        """

        Config.set('core.formatter', formatter_name)
Esempio n. 7
0
File: http.py Progetto: sjl421/pycr
    def set_unsecure_connection(cls, unsecure):
        """If True, requests will be made over HTTP instead of HTTPS

        Always use HTTPS by default.

        :param unsecure: True to use HTTP
        :type unsecure: bool
        """

        Config.set('gerrit.unsecure', unsecure)
Esempio n. 8
0
    def set_unsecure_connection(cls, unsecure):
        """If True, requests will be made over HTTP instead of HTTPS

        Always use HTTPS by default.

        :param unsecure: True to use HTTP
        :type unsecure: bool
        """

        Config.set("gerrit.unsecure", unsecure)
Esempio n. 9
0
File: http.py Progetto: enzbang/pycr
    def set_unsecure_connection(cls, unsecure):
        """If True, requests will be made over HTTP instead of HTTPS.

        Always use HTTPS by default.

        PARAMETERS
            unsecure: True to use HTTP
        """

        Config.set('gerrit.unsecure', unsecure)
Esempio n. 10
0
File: http.py Progetto: sjl421/pycr
    def set_auth_token(cls, username, password=None):
        """Set the authentication pair to use for HTTP requests

        :param username: the account username
        :type username: str
        :param password: the account HTTP password
        :type password: str
        """

        Config.set('gerrit.username', username)
        Config.set('gerrit.password', password)
Esempio n. 11
0
    def set_auth_token(cls, username, password=None):
        """Set the authentication pair to use for HTTP requests

        :param username: the account username
        :type username: str
        :param password: the account HTTP password
        :type password: str
        """

        Config.set("gerrit.username", username)
        Config.set("gerrit.password", password)
Esempio n. 12
0
File: http.py Progetto: enzbang/pycr
    def set_auth_token(cls, username, password=None):
        """
        Set the authentication pair to use for HTTP requests.

        PARAMETERS
            username: the account username
            password: the account HTTP password
        """

        Config.set('gerrit.username', username)
        Config.set('gerrit.password', password)