[Erp5-report] r15835 - /erp5/trunk/products/ERP5/Document/Event.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Aug 27 15:02:55 CEST 2007


Author: jp
Date: Mon Aug 27 15:02:55 2007
New Revision: 15835

URL: http://svn.erp5.org?rev=15835&view=rev
Log:
New inheritance and more property sheets.

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=15835&r1=15834&r2=15835&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Event.py (original)
+++ erp5/trunk/products/ERP5/Document/Event.py Mon Aug 27 15:02:55 2007
@@ -29,11 +29,11 @@
 from AccessControl import ClassSecurityInfo
 
 from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
-from Products.ERP5Type.XMLObject import XMLObject
 from Products.ERP5.Document.Movement import Movement
+from Products.ERP5.Document.EmailDocument import EmailDocument
 from Products.CMFCore.utils import getToolByName
 
-class Event(XMLObject, Movement):
+class Event(EmailDocument, Movement):
     """
       Event is the base class for all events in ERP5.
 
@@ -61,13 +61,20 @@
     property_sheets = ( PropertySheet.Base
                       , PropertySheet.XMLObject
                       , PropertySheet.CategoryCore
+                      , PropertySheet.Document
                       , PropertySheet.DublinCore
+                      , PropertySheet.Snapshot
                       , PropertySheet.Task
+                      , PropertySheet.Url
+                      , PropertySheet.TextDocument
                       , PropertySheet.Arrow
                       , PropertySheet.Movement
                       , PropertySheet.Event
-                      )
+                      , PropertySheet.ItemAggregation
+                     )
 
+    security.declareProtected(Permissions.AccessContentsInformation,
+                              'isAccountable')
     def isAccountable(self):
       """
         Returns 1 if this needs to be accounted
@@ -75,3 +82,11 @@
         Whenever delivery is there, delivery has priority
       """
       return 1
+
+    security.declareProtected(Permissions.AccessContentsInformation, 'defQuantity')
+    def defQuantity(self):
+      """
+        Quantity is set automatically on Events.
+      """
+      return 1 # Provide opportunity to script this
+




More information about the Erp5-report mailing list