Exemple #1
0
 def __init__(self):
     _tooshort = errors["arguments.tooshort"]
     if ~util.str_isblank(_tooshort):
         self.tooshort = _tooshort
     _illegal = errors["arguments.illegal"]
     if ~util.str_isblank(_illegal):
         self.illegal = _illegal
Exemple #2
0
 def __init__(self):
     _tooshort = errors["arguments.tooshort"]
     if ~util.str_isblank(_tooshort):
         self.tooshort = _tooshort
     _illegal = errors["arguments.illegal"]
     if ~util.str_isblank(_illegal):
         self.illegal = _illegal
Exemple #3
0
 def __init__(self, **sslinfo):
     super(HTTPS, self).__init__(HTTPS_KEY, HTTPS_PORT)
     if sslinfo.has_key("keyfile"):
         _keyfile = sslinfo["keyfile"]
         if ~util.str_isblank(_keyfile):
             keyfile = util.replace_curpath(_keyfile)
     if sslinfo.has_key("certfile"):
         _certfile = sslinfo["certfile"]
         if ~util.str_isblank(_certfile):
             certfile = util.replace_curpath(_certfile)
Exemple #4
0
 def __init__(self, **sslinfo):
     super(HTTPS, self).__init__(HTTPS_KEY, HTTPS_PORT)
     if sslinfo.has_key("keyfile"):
         _keyfile = sslinfo["keyfile"]
         if ~util.str_isblank(_keyfile):
             keyfile = util.replace_curpath(_keyfile)
     if sslinfo.has_key("certfile"):
         _certfile = sslinfo["certfile"]
         if ~util.str_isblank(_certfile):
             certfile = util.replace_curpath(_certfile)