[Erp5-report] r13321 - /erp5/trunk/products/ERP5/Document/Person.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Mar 12 09:23:41 CET 2007
Author: jp
Date: Mon Mar 12 09:23:39 2007
New Revision: 13321
URL: http://svn.erp5.org?rev=13321&view=rev
Log:
Added notification API. Added request for better doc.
Modified:
erp5/trunk/products/ERP5/Document/Person.py
Modified: erp5/trunk/products/ERP5/Document/Person.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Person.py?rev=13321&r1=13320&r2=13321&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Person.py (original)
+++ erp5/trunk/products/ERP5/Document/Person.py Mon Mar 12 09:23:39 2007
@@ -197,6 +197,9 @@
def getAvailableTime(self, *args, **kw):
"""
Calculate available time for a person
+
+ XXX What are the parameters - documentation needed
+ What is the result ?
"""
assignment_list = self.contentValues(portal_type='Assignment')
calendar_uid_list = []
@@ -212,6 +215,9 @@
def getAvailableTimeSequence(self, *args, **kw):
"""
Calculate available time for a person in a sequence
+
+ XXX What are the parameters - documentation needed
+ What is the result ?
"""
assignment_list = self.contentValues(portal_type='Assignment')
calendar_uid_list = []
@@ -222,3 +228,20 @@
# Call getSequence
portal_simulation = getToolByName(self, 'portal_simulation')
return portal_simulation.getAvailableTimeSequence(*args, **kw)
+
+ # Notifiation API
+ security.declareProtected(Permissions.AccessContentsInformation,
+ 'notifyMessage')
+ def notifyMessage(self, message):
+ """
+ This method can only be called with proxy roles.
+
+ A per user preference allows for deciding how to be notified.
+ - by email
+ - by SMS (if meaningful)
+ - daily
+ - weekly
+ - instantly
+
+ notification is handled as an activity
+ """
More information about the Erp5-report
mailing list