[Erp5-report] r12140 - in /erp5/trunk/products/ERP5Type/Accessor: Base.py TypeDefinition.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jan 18 18:48:30 CET 2007
Author: romain
Date: Thu Jan 18 18:48:29 2007
New Revision: 12140
URL: http://svn.erp5.org?rev=12140&view=rev
Log:
By JPS.
Fix typo error.
Modified:
erp5/trunk/products/ERP5Type/Accessor/Base.py
erp5/trunk/products/ERP5Type/Accessor/TypeDefinition.py
Modified: erp5/trunk/products/ERP5Type/Accessor/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Accessor/Base.py?rev=12140&r1=12139&r2=12140&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Accessor/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Accessor/Base.py Thu Jan 18 18:48:29 2007
@@ -71,7 +71,7 @@
# Modify the property
if value in self._null:
setattr(instance, self._storage_id, None)
- elif self._property_type is 'content':
+ elif self._property_type == 'content':
# A file object should be provided
file_upload = args[0]
if isinstance(file_upload, FileUpload):
Modified: erp5/trunk/products/ERP5Type/Accessor/TypeDefinition.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Accessor/TypeDefinition.py?rev=12140&r1=12139&r2=12140&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Accessor/TypeDefinition.py (original)
+++ erp5/trunk/products/ERP5Type/Accessor/TypeDefinition.py Thu Jan 18 18:48:29 2007
@@ -143,7 +143,7 @@
'isList' : 1,
},
# Content are subdocuments (ex. default_career)
- 'content' : { 'cast' : identity,
+ 'content' : { 'cast' : identity,
'null' : ('', 'None', None,),
'default' : None,
'isList' : 0,
More information about the Erp5-report
mailing list