Exemplo n.º 1
0
        def _ServerInfoMixin():
            x = ServerInfoMixin()

            def warn_and_quit(*args):
                waq.append(args)

            x.warn_and_quit = warn_and_quit
            return x
Exemplo n.º 2
0
        def _ServerInfoMixin():
            x = ServerInfoMixin()

            def warn_and_quit(*_args):
                pass

            x.warn_and_quit = warn_and_quit
            return x
Exemplo n.º 3
0
 def __init__(self):
     #this may be called more than once,
     #skip doing internal init again:
     if not hasattr(self, "exit_code"):
         self.defaults_init()
     ServerInfoMixin.__init__(self)
     FilePrintMixin.__init__(self)
     self._init_done = False
Exemplo n.º 4
0
 def __init__(self):
     #this may be called more than once,
     #skip doing internal init again:
     if not hasattr(self, "exit_code"):
         self.defaults_init()
     ServerInfoMixin.__init__(self)
     FilePrintMixin.__init__(self)
     self._init_done = False
     #insert in order:
     dcm = OrderedDict()
     dcm["uri"]      = self.process_challenge_uri
     dcm["file"]     = self.process_challenge_file
     dcm["env"]      = self.process_challenge_env
     dcm["kerberos"] = self.process_challenge_kerberos
     dcm["gss"]      = self.process_challenge_gss
     dcm["u2f"]      = self.process_challenge_u2f
     dcm["prompt"]   = self.process_challenge_prompt
     self.default_challenge_methods = dcm