runtime/WampClient.py
branchnevow_service_rework
changeset 2223 909216419e45
parent 2221 e03f7649bfb3
child 2248 d9353e440887
equal deleted inserted replaced
2222:8ac0f1af5589 2223:909216419e45
   179 def CheckConfiguration(WampClientConf):
   179 def CheckConfiguration(WampClientConf):
   180     url = WampClientConf["url"]
   180     url = WampClientConf["url"]
   181     if not IsCorrectUri(url):
   181     if not IsCorrectUri(url):
   182         raise annotate.ValidateError(
   182         raise annotate.ValidateError(
   183             {"url":"Invalid URL: {}".format(url)},
   183             {"url":"Invalid URL: {}".format(url)},
   184             _("WAMP confiuration error:"))
   184             _("WAMP configuration error:"))
   185 
   185 
   186 def GetConfiguration():
   186 def GetConfiguration():
   187     global lastKnownConfig
   187     global lastKnownConfig
   188 
   188 
   189     if os.path.exists(_WampConf):
   189     if os.path.exists(_WampConf):