Show More
@@ -56,10 +56,13 b' class AuthnPluginViewBase(object):' | |||
|
56 | 56 | errors = errors or {} |
|
57 | 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 | 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 | 64 | defaults.setdefault(node.name, db_value) |
|
65 | defaults = schema.serialize(defaults) | |
|
63 | 66 | |
|
64 | 67 | template_context = { |
|
65 | 68 | 'defaults': defaults, |
General Comments 0
You need to be logged in to leave comments.
Login now