Commit 79b23fc0 authored by Jérome Perrin's avatar Jérome Perrin

an even is it own's explanation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20333 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a84ad2fe
......@@ -84,7 +84,7 @@ class Event(EmailDocument, Movement):
"""
return 1
security.declareProtected(Permissions.AccessContentsInformation,
security.declareProtected(Permissions.AccessContentsInformation,
'getQuantity')
def getQuantity(self):
"""
......@@ -92,3 +92,24 @@ class Event(EmailDocument, Movement):
"""
# Provide opportunity to script this
return 1.
security.declareProtected(Permissions.AccessContentsInformation,
'getExplanation')
def getExplanation(self):
"""An event is it's own explanation
"""
return self.getRelativeUrl()
security.declareProtected(Permissions.AccessContentsInformation,
'getExplanationUid')
def getExplanationUid(self):
"""An event is it's own explanation
"""
return self.getUid()
security.declareProtected(Permissions.AccessContentsInformation,
'getExplanationValue')
def getExplanationValue(self):
"""An event is it's own explanation
"""
return self
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