[Erp5-report] r27398 - /erp5/trunk/products/ERP5/Tool/ContributionRegistryTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jun 5 18:45:40 CEST 2009
Author: nicolas
Date: Fri Jun 5 18:45:40 2009
New Revision: 27398
URL: http://svn.erp5.org?rev=27398&view=rev
Log:
discard also empty strings, happens when Contribution Predicate is just empty
Modified:
erp5/trunk/products/ERP5/Tool/ContributionRegistryTool.py
Modified: erp5/trunk/products/ERP5/Tool/ContributionRegistryTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/ContributionRegistryTool.py?rev=27398&r1=27397&r2=27398&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/ContributionRegistryTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/ContributionRegistryTool.py [utf8] Fri Jun 5 18:45:40 2009
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
#############################################################################
#
# Copyright (c) 2008 Nexedi SA and Contributors. All Rights Reserved.
@@ -48,7 +49,7 @@
for predicate in self.objectValues(sort_on='int_index'):
result = predicate.test(ingestion_file)
- if not result in (None, False):
+ if result:
return result
InitializeClass(ContributionRegistryTool)
More information about the Erp5-report
mailing list