##// END OF EJS Templates
zeroconf: blindly forward extra argument to the core config method...
marmoute -
r33175:a0068f49 default
parent child Browse files
Show More
@@ -167,12 +167,12 b' def getzcpaths():'
167 value.properties.get("path", "/"))
167 value.properties.get("path", "/"))
168 yield "zc-" + name, url
168 yield "zc-" + name, url
169
169
170 def config(orig, self, section, key, default=None, untrusted=False):
170 def config(orig, self, section, key, *args, **kwargs):
171 if section == "paths" and key.startswith("zc-"):
171 if section == "paths" and key.startswith("zc-"):
172 for name, path in getzcpaths():
172 for name, path in getzcpaths():
173 if name == key:
173 if name == key:
174 return path
174 return path
175 return orig(self, section, key, default, untrusted)
175 return orig(self, section, key, *args, **kwargs)
176
176
177 def configitems(orig, self, section, *args, **kwargs):
177 def configitems(orig, self, section, *args, **kwargs):
178 repos = orig(self, section, *args, **kwargs)
178 repos = orig(self, section, *args, **kwargs)
General Comments 0
You need to be logged in to leave comments. Login now