From f0c4ce181a46b17c08ebaf4580c095a532633466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl> Date: Thu, 14 Sep 2006 16:58:32 +0000 Subject: [PATCH] fixed two bugs git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9931 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5OOo/Document/DMSFile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/product/ERP5OOo/Document/DMSFile.py b/product/ERP5OOo/Document/DMSFile.py index 8441196ee2..40abacfbc3 100644 --- a/product/ERP5OOo/Document/DMSFile.py +++ b/product/ERP5OOo/Document/DMSFile.py @@ -216,6 +216,8 @@ class DMSFile(XMLObject,File): 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 @@ class DMSFile(XMLObject,File): id='DMSFile_getWikiPredecessorValueList') return cached_getWikiPredecessorValueList() - security.declareProtected(Permissions.View,'getContributors') + security.declareProtected(Permissions.View,'getContributorList') def getContributorList(self): #''' #override -- 2.30.9