Show More
@@ -56,10 +56,13 b' class AuthnPluginViewBase(object):' | |||||
56 | errors = errors or {} |
|
56 | errors = errors or {} | |
57 | schema = self.plugin.get_settings_schema() |
|
57 | schema = self.plugin.get_settings_schema() | |
58 |
|
58 | |||
59 |
# |
|
59 | # Compute default values for the form. Priority is: | |
|
60 | # 1. Passed to this method 2. DB value 3. Schema default | |||
60 | for node in schema: |
|
61 | for node in schema: | |
61 |
db_value = self.plugin.get_setting_by_name( |
|
62 | db_value = self.plugin.get_setting_by_name( | |
|
63 | node.name, colander.null) | |||
62 | defaults.setdefault(node.name, db_value) |
|
64 | defaults.setdefault(node.name, db_value) | |
|
65 | defaults = schema.serialize(defaults) | |||
63 |
|
66 | |||
64 | template_context = { |
|
67 | template_context = { | |
65 | 'defaults': defaults, |
|
68 | 'defaults': defaults, |
General Comments 0
You need to be logged in to leave comments.
Login now