Update of /cvsroot/archetypes/Archetypes
In directory sc8-pr-cvs1:/tmp/cvs-serv1901
Modified Files:
BaseObject.py
Log Message:
fixed the problem that empty strings were not updated into field
Index: BaseObject.py
===================================================================
RCS file: /cvsroot/archetypes/Archetypes/BaseObject.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** BaseObject.py 7 May 2003 18:18:52 -0000 1.23
--- BaseObject.py 23 May 2003 21:16:07 -0000 1.24
***************
*** 326,330 ****
#Set things by calling the mutator
! if not value: continue
mutator = getattr(self, field.mutator)
__traceback_info__ = (self, field, mutator)
--- 326,330 ----
#Set things by calling the mutator
! if value is None: continue
mutator = getattr(self, field.mutator)
__traceback_info__ = (self, field, mutator)
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
|