smlacombe / sageo

A rewriting of check_mk multisite web interface with the Flask web framework
GNU General Public License v3.0
16 stars 1 forks source link

Datasource disabled state result into "None" data when validating the form #4

Closed smlacombe closed 11 years ago

smlacombe commented 11 years ago

To avoid datasource changes in the view_edit page, we must disable the selectfield. But doing that resulting into a validation error because disabled fields is considerated null.

I've submited the issue here. https://bitbucket.org/simplecodes/wtforms/issue/169/selectfield-disabled-state-result-into

smlacombe commented 11 years ago

We could just hide the select field and add readonly textbox containing the datasource data.

smlacombe commented 11 years ago

It's fixed: https://github.com/smlacombe/sageo/commit/be078da51a1de423924f5177435b0907b581b5f8