##// END OF EJS Templates
authn: Only lookup settings from DB if they are really used....
Martin Bornhold -
r285:f9e2ba9b default
parent child Browse files
Show More
@@ -59,9 +59,9 b' class AuthnPluginViewBase(object):'
59 59 # Compute default values for the form. Priority is:
60 60 # 1. Passed to this method 2. DB value 3. Schema default
61 61 for node in schema:
62 value = self.plugin.get_setting_by_name(
63 node.name, node.default)
64 defaults.setdefault(node.name, value)
62 if node.name not in defaults:
63 defaults[node.name] = self.plugin.get_setting_by_name(
64 node.name, node.default)
65 65
66 66 template_context = {
67 67 'defaults': defaults,
General Comments 0
You need to be logged in to leave comments. Login now