Commit 739b3c49 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Do not take into consideration raw data as input.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13954 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b3882e3b
...@@ -911,13 +911,19 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin): ...@@ -911,13 +911,19 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
""" """
Get properties which were supplied explicitly to the ingestion method Get properties which were supplied explicitly to the ingestion method
(discovered or supplied before the document was created). (discovered or supplied before the document was created).
The implementation consists in saving document properties
into _backup_input by supposing that original input parameters were
set on the document by ContributionTool.newContent as soon
as the document was created.
""" """
if hasattr(self, '_backup_input'): if hasattr(self, '_backup_input'):
return getattr(self, '_backup_input') return getattr(self, '_backup_input')
kw = {} kw = {}
for id in self.propertyIds(): for id in self.propertyIds():
# We should not consider file data # We should not consider file data
if id not in ('data', 'categories_list', 'uid', 'id', 'text_content', ) \ if id not in ('data', 'categories_list', 'uid', 'id',
'text_content', 'base_data',) \
and self.hasProperty(id): and self.hasProperty(id):
kw[id] = self.getProperty(id) kw[id] = self.getProperty(id)
self._backup_input = kw # We could use volatile and pass kw in activate self._backup_input = kw # We could use volatile and pass kw in activate
......
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