#86 : fix for dateinput #90

Merged
merged 0 commits into from Jul 13, 2012

Conversation

Projects
None yet
1 participant
Contributor

tonthon commented Apr 29, 2012

The commit providess a solution to #86 (for dateinputs only), it contains :

template modifications :
a javascript function has been added to parse the yy-mm-dd format (maybe it should be moved to deform's javascript lib)
a mapping has beend added to allow the use of two input tags (one for display, one for submission : since colander expects an isoformat : yy-mm-dd, user can now change the display format without interfering with the validation process)

widget.py modifications :
get the field value from the appropriate input (date)
enforce the altFormat regarding colander validator (maybe it's not usefull)

tonthon merged commit e5bd27e into Pylons:master Jul 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment