Cut the validation short when there is only one validator and this
validator is ‘sufficient’, which means it does not need to validate.
Removed an unnecessary call on Zope startup to the test method in chain.py.
Fix: ValidatorError was used (at least theoretically) in chain.py
but not imported.
Fixed the translated error messages to use Message objects correctly. The
mapping attribute of Messages can only contain Unicode. Added a helper
method safe_unicode to convert non-unicode string data into Unicode.
Removed tests/runalltests.py and tests/framework.py as they have
outlived their usefulness. To run tests use Zope’s testrunner:
./bin/zopectl test –nowarn -s Products.validation
note for release-managers: The version-bump to 1.5 was a bit early, but now
as we have it, i keep it and next release number in the cycle needed for
Archetypes 1.4.2 (used for Plone 2.5.2) of PortalTransforms is then the 1.5
We dont need increasing of release numbers because of Plone 3.0,
Archetypes 1.5, … if theres no change in the dependend product, like
Removed an unused import which caused a deprecation warning.
Added protocol list for isUrl validator with lot’s of additional protocols:
http, ftp, irc, news, imap, gopher, jabber, webdav, smb, fish, ldap, pop3,
smtp, sftp, ssh
The *s variants like https are included by the re.
Added isValidId validator. Thanks to Francis J. Lacoste for
his first implementation and Christian Theune for his CMF
Fixed isUnixLikeName validator
Fixed [ 1040556 ] validators type mismatch (was )
Fixed a bug in MaxSizeValidator, added some comments and made it much faster.
Fixed last failing unit tests
Removed old setup.py
Added isEmptyNoError validator to fix [ 1023153 ] isEmpty validator must
return empty string when it failed.
Don’t show error msg in chain when a validator doesn’t return StringTypes. It
was required for isEmptyNoError validator which is returning False.