Commit 0aebe3d3 authored by Arnaud Fontaine's avatar Arnaud Fontaine

default field of a Standard Property for ZODB Property Sheets should

have always been an instance of Expression



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39736 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e1bb3e5b
...@@ -68,7 +68,7 @@ class StandardProperty(XMLObject): ...@@ -68,7 +68,7 @@ class StandardProperty(XMLObject):
'type': self.getElementaryType(), 'type': self.getElementaryType(),
'storage_id': self.getStorageId(), 'storage_id': self.getStorageId(),
'multivalued': self.getMultivalued(), 'multivalued': self.getMultivalued(),
'default': self.getPropertyDefault(), 'default': Expression(self.getPropertyDefault()),
'range': self.getRange(), 'range': self.getRange(),
'preference': self.getPreference(), 'preference': self.getPreference(),
'read_permission': self.getReadPermission(), 'read_permission': self.getReadPermission(),
...@@ -85,12 +85,6 @@ class StandardProperty(XMLObject): ...@@ -85,12 +85,6 @@ class StandardProperty(XMLObject):
zodb_property_dict = {} zodb_property_dict = {}
for fs_property_name, value in filesystem_property_dict.iteritems(): for fs_property_name, value in filesystem_property_dict.iteritems():
# Property Sheets on the filesystem defined attributes whose
# value is None, or an empty tuple or string, or either 0, thus
# skip them
if not value:
continue
# Convert filesystem property name to ZODB if necessary # Convert filesystem property name to ZODB if necessary
zodb_property_name = \ zodb_property_name = \
fs_property_name in self._name_mapping_filesystem_to_zodb_dict and \ fs_property_name in self._name_mapping_filesystem_to_zodb_dict and \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment