Commit b457d174 authored by Aurel's avatar Aurel

redefine getTitle method as we do not want document to display

reference instead if title does not exist


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45258 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f9fea561
......@@ -28,6 +28,7 @@
import ExtensionClass
from AccessControl import ClassSecurityInfo
from Acquisition import aq_base
from Products.ERP5Type import Permissions
from Products.ERP5Type.Accessor.Base import Method, func_code
from Products.ERP5Type.Utils import convertToMixedCase, convertToUpperCase
......@@ -108,6 +109,11 @@ class BaobabMixin(ExtensionClass.Base):
"""
security = ClassSecurityInfo()
security.declareProtected(Permissions.AccessContentsInformation,
"getTitle")
def getTitle(self, default=''):
return getattr(aq_base(self), 'title', default)
for category in ('source', 'destination',
'source_section', 'destination_section',
'source_payment', 'destination_payment',
......
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