[Erp5-report] r13954 - /erp5/trunk/products/ERP5/Document/Document.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 5 09:30:21 CEST 2007
Author: jp
Date: Thu Apr 5 09:30:19 2007
New Revision: 13954
URL: http://svn.erp5.org?rev=13954&view=rev
Log:
Do not take into consideration raw data as input.
Modified:
erp5/trunk/products/ERP5/Document/Document.py
Modified: erp5/trunk/products/ERP5/Document/Document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Document.py?rev=13954&r1=13953&r2=13954&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py (original)
+++ erp5/trunk/products/ERP5/Document/Document.py Thu Apr 5 09:30:19 2007
@@ -911,13 +911,19 @@
"""
Get properties which were supplied explicitly to the ingestion method
(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'):
return getattr(self, '_backup_input')
kw = {}
for id in self.propertyIds():
# 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):
kw[id] = self.getProperty(id)
self._backup_input = kw # We could use volatile and pass kw in activate
More information about the Erp5-report
mailing list