Avoids appending twice a namespace defined in the config file.
This commit is contained in:
parent
13980f8622
commit
e5cda5cc10
|
@ -657,8 +657,10 @@ def main():
|
|||
raise
|
||||
|
||||
for namespace in configuration.evaluateXpath("yep:namespace"):
|
||||
ns = namespaces.Namespace(namespace.prop("name"), namespace.prop("uri"))
|
||||
application.xpathContext.xpathRegisterNs(ns.name, ns.uri)
|
||||
name, uri = namespace.prop("name"), namespace.prop("uri")
|
||||
if not namespaces.getUri(name):
|
||||
ns = namespaces.Namespace(name, uri)
|
||||
application.xpathContext.xpathRegisterNs(name, uri)
|
||||
|
||||
allVirtualHosts = [
|
||||
virtualHost for virtualHost in configuration.getVirtualHosts()]
|
||||
|
|
Reference in New Issue