Hi,
I'm only using validatish and schemaish in my application.
I want to be able to display any validation errors using
custom messages stored in the schemaish structure.
I could change the default messages in validatish but
then there is no schema dependence.
Has anyone extended schemaish to support this?
I think formish supports this but I am not
using formish. I'm a new user so not quite sure.
Thanks
Burak
--
You received this message because you are subscribed to the Google Groups "ish.io" group.
To post to this group, send an email to is...@googlegroups.com.
To unsubscribe from this group, send email to ishio+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ishio?hl=en-GB.
Just quickly, I just unsuccessfully tried Matt's suggestion;
>>> validatish.is_in_range(10, min=18, messages={'greater-than': 'You must be %(min)s or older'})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/validatish/validate.py", line
286, in is_in_range
validatish.error.Invalid: must be greater than or equal to 18
I think there might be a difference in the library versions. Matt the
exception is raised
on line 281 for your version and line 286 for my version.
I used easy_install to install the library - validatish-0.6.4-py2.7.egg
After I get some sleep I'll look at both solutions properly.
Thanks
Burak
Thanks Daniel and Matt.
Just quickly, I just unsuccessfully tried Matt's suggestion;
File "build/bdist.linux-x86_64/egg/validatish/validate.py", line
>>> validatish.is_in_range(10, min=18, messages={'greater-than': 'You must be %(min)s or older'})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
286, in is_in_range
validatish.error.Invalid: must be greater than or equal to 18I think there might be a difference in the library versions. Matt the
exception is raised
on line 281 for your version and line 286 for my version.