Commit f0c4ce18 authored by Bartek Górny's avatar Bartek Górny

fixed two bugs

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9931 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a74b3f3b
......@@ -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
......
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