deform

Which one is the correct approach for form validation ? Colander's Schema validation or Deform's form validation?

梦想与她 提交于 2019-12-01 11:20:26
I have just started using Pyramid for one of my projects and I have a case where in I need to validate a form field input, by taking that form field value and making a web-service call to assert the value's correctness. Like for example there is a field called your bank's CUSTOMER-ID. I need to take that(alone) as input and validate at the server level by making a web-service call (like http://someotherdomain/validate_customer_id/?customer_id=<input_value> )lets say. I am using Colander for form schema management and Deform for all form validation logic. I am confused about where I need to

Which one is the correct approach for form validation ? Colander's Schema validation or Deform's form validation?

孤街醉人 提交于 2019-12-01 09:16:51
问题 I have just started using Pyramid for one of my projects and I have a case where in I need to validate a form field input, by taking that form field value and making a web-service call to assert the value's correctness. Like for example there is a field called your bank's CUSTOMER-ID. I need to take that(alone) as input and validate at the server level by making a web-service call (like http://someotherdomain/validate_customer_id/?customer_id=<input_value> )lets say. I am using Colander for