##// END OF EJS Templates
authn: Remove usage of colander.serialize to generate form defaults.
Martin Bornhold -
r284:f65fe1f1 default
parent child Browse files
Show More
@@ -59,10 +59,9 b' class AuthnPluginViewBase(object):'
59 # Compute default values for the form. Priority is:
59 # Compute default values for the form. Priority is:
60 # 1. Passed to this method 2. DB value 3. Schema default
60 # 1. Passed to this method 2. DB value 3. Schema default
61 for node in schema:
61 for node in schema:
62 db_value = self.plugin.get_setting_by_name(
62 value = self.plugin.get_setting_by_name(
63 node.name, colander.null)
63 node.name, node.default)
64 defaults.setdefault(node.name, db_value)
64 defaults.setdefault(node.name, value)
65 defaults = schema.serialize(defaults)
66
65
67 template_context = {
66 template_context = {
68 'defaults': defaults,
67 'defaults': defaults,
General Comments 0
You need to be logged in to leave comments. Login now