Commit 5575028a authored by Julien Muchembled's avatar Julien Muchembled

Ignore properties without any reference

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43575 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 48e29f80
...@@ -128,18 +128,20 @@ class StandardProperty(IdAsReferenceMixin('_property'), XMLObject): ...@@ -128,18 +128,20 @@ class StandardProperty(IdAsReferenceMixin('_property'), XMLObject):
""" """
property_default_value = self._getExpressionFromString(self.getPropertyDefault()) property_default_value = self._getExpressionFromString(self.getPropertyDefault())
return {'id': self.getReference(), reference = self.getReference()
'description': self.getDescription(), if reference:
'type': self.getElementaryType(), return {'id': reference,
'storage_id': self.getStorageId(), 'description': self.getDescription(),
'multivalued': self.getMultivalued(), 'type': self.getElementaryType(),
'default': property_default_value, 'storage_id': self.getStorageId(),
'range': self.getRange(), 'multivalued': self.getMultivalued(),
'preference': self.getPreference(), 'default': property_default_value,
'read_permission': self.getReadPermission(), 'range': self.getRange(),
'write_permission': self.getWritePermission(), 'preference': self.getPreference(),
'translatable': self.getTranslatable(), 'read_permission': self.getReadPermission(),
'translation_domain': self.getTranslationDomain()} 'write_permission': self.getWritePermission(),
'translatable': self.getTranslatable(),
'translation_domain': self.getTranslationDomain()}
@classmethod @classmethod
def _convertFromFilesystemPropertyDict(cls, filesystem_property_dict): def _convertFromFilesystemPropertyDict(cls, filesystem_property_dict):
......
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