Author: tiran
Date: Fri Sep 17 06:42:52 2004
New Revision: 3039
Modified:
Archetypes/branches/release-1_3-branch/Field.py
Archetypes/branches/release-1_3-branch/HISTORY.txt
Log:
Fixed [ 1023153 ] isEmpty validator must return empty string by using the new
isEmptyNoError validator.
Modified: Archetypes/branches/release-1_3-branch/Field.py
==============================================================================
--- Archetypes/branches/release-1_3-branch/Field.py (original)
+++ Archetypes/branches/release-1_3-branch/Field.py Fri Sep 17 06:42:52 2004
@@ -257,8 +257,9 @@
if len(validators):
# insert isEmpty validator at position 0 if first validator
# is not isEmpty
- if not validators[0][0].name == 'isEmpty':
- validators.insertSufficient('isEmpty')
+ if not validators[0][0].name.startswith('isEmpty'):
+ validators.insertSufficient('isEmptyNoError')
+ #validators.insertSufficient('isEmpty')
else:
validators.insertSufficient('isEmpty')
Modified: Archetypes/branches/release-1_3-branch/HISTORY.txt
==============================================================================
--- Archetypes/branches/release-1_3-branch/HISTORY.txt (original)
+++ Archetypes/branches/release-1_3-branch/HISTORY.txt Fri Sep 17 06:42:52 2004
@@ -1,6 +1,9 @@
1.3.0-rc3 -
======================
+ * Fixed [ 1023153 ] isEmpty validator must return empty string by using the
new
+ isEmptyNoError validator.
+
* Fixed [ 1029231 ] base_metadata doesn't use jsscripts properly, also cleaned
up the base_metadata and added support for helper css.
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
|