[Erp5-report] r9931 - /erp5/trunk/products/ERP5OOo/Document/DMSFile.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Sep 14 18:58:34 CEST 2006
Author: bartek
Date: Thu Sep 14 18:58:32 2006
New Revision: 9931
URL: http://svn.erp5.org?rev=9931&view=rev
Log:
fixed two bugs
Modified:
erp5/trunk/products/ERP5OOo/Document/DMSFile.py
Modified: erp5/trunk/products/ERP5OOo/Document/DMSFile.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/Document/DMSFile.py?rev=9931&r1=9930&r2=9931&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/Document/DMSFile.py (original)
+++ erp5/trunk/products/ERP5OOo/Document/DMSFile.py Thu Sep 14 18:58:32 2006
@@ -216,6 +216,8 @@
find references in text_content, return matches
with this we can then find objects
'''
+ if self.getTextContent() is None:
+ return []
rx_search=re.compile(self.portal_preferences.getPreferredDmsReferenceRegexp())
try:
res=rx_search.finditer(self.getTextContent())
@@ -258,7 +260,7 @@
id='DMSFile_getWikiPredecessorValueList')
return cached_getWikiPredecessorValueList()
- security.declareProtected(Permissions.View,'getContributors')
+ security.declareProtected(Permissions.View,'getContributorList')
def getContributorList(self):
#'''
#override
More information about the Erp5-report
mailing list