Exemplo n.º 1
0
    def __init__(self, challenge, client=None):
        """.. rubric:: constructor

        :param str challenge: nickname of a challenge (e.g., D5C1)

        To automatically connect to synapse, create a file called .synapseConfig with this
        content::

            [authentication]
            username: email
            password: password

        """
        Challenge.__init__(self, challenge_name=challenge)
        Login.__init__(self, client=client)
Exemplo n.º 2
0
    def __init__(self, challenge, client=None, username=None, password=None):
        """.. rubric:: constructor

        :param str challenge: alias of a challenge (e.g., D5C1)

        To automatically connect to synapse, create a file 
        called .synapseConfig with this content::

            [authentication]
            username: email
            password: password

        """
        Challenge.__init__(self, challenge_name=challenge)
        # Login provides the synapse client. See client attribute
        warnings.filterwarnings("ignore")
        Login.__init__(self, client=client, username=username,
                password=password)
        warnings.resetwarnings()
Exemplo n.º 3
0
    def __init__(self, challenge, client=None, username=None, password=None):
        """.. rubric:: constructor

        :param str challenge: alias of a challenge (e.g., D5C1)

        To automatically connect to synapse, create a file 
        called .synapseConfig with this content::

            [authentication]
            username: email
            password: password

        """
        Challenge.__init__(self, challenge_name=challenge)
        # Login provides the synapse client. See client attribute
        warnings.filterwarnings("ignore")
        Login.__init__(self,
                       client=client,
                       username=username,
                       password=password)
        warnings.resetwarnings()