[Rest2web-develop] More work on validate.py
Brought to you by:
mjfoord
From: Nicola L. <ni...@te...> - 2005-07-18 08:06:25
|
Done three commits about validate.py . First I committed the version you emailed me last week. Then I moved (again ;-) ) the tests to the doctest format, and made some refactoring and more code cleanup. Finally I strengthened the value checks, introducing more ValidationError subclasses, and adding many more tests, plus more refactoring and cleanup. See the changelog for more details, only two external changes: renamed the "date" value type to "timestamp" (no implementation yet), and the "bool" one to "boolean". Easy to change them back, if you don't like them. :-) I didn't yet add *all* the tests I would like to, wanted to leave some of the fun to you too. ;-) -- Nicola Larosa - ni...@te... Learning C after learning Python can be done via Pyrex. [...] Learning Java after learning Python can be done via Jython. [...] Learning Perl after learning Python can ... never mind. ;-) -- André Roberge, May 2005 |