[Erp5-report] r20333 - /erp5/trunk/products/ERP5/Document/Event.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Apr 8 10:24:04 CEST 2008
Author: jerome
Date: Tue Apr 8 10:24:03 2008
New Revision: 20333
URL: http://svn.erp5.org?rev=20333&view=rev
Log:
an even is it own's explanation
Modified:
erp5/trunk/products/ERP5/Document/Event.py
Modified: erp5/trunk/products/ERP5/Document/Event.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Event.py?rev=20333&r1=20332&r2=20333&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Event.py (original)
+++ erp5/trunk/products/ERP5/Document/Event.py Tue Apr 8 10:24:03 2008
@@ -84,7 +84,7 @@
"""
return 1
- security.declareProtected(Permissions.AccessContentsInformation,
+ security.declareProtected(Permissions.AccessContentsInformation,
'getQuantity')
def getQuantity(self):
"""
@@ -92,3 +92,24 @@
"""
# 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
More information about the Erp5-report
mailing list