[Erp5-report] r41356 luke - /erp5/trunk/products/ERP5/Document/ComputerPartition.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Dec 10 19:03:51 CET 2010


Author: luke
Date: Fri Dec 10 19:03:50 2010
New Revision: 41356

URL: http://svn.erp5.org?rev=41356&view=rev
Log:
 - as Computer Partition shares a lot of logic from Computer, make
   similar Property Sheet for both

Modified:
    erp5/trunk/products/ERP5/Document/ComputerPartition.py

Modified: erp5/trunk/products/ERP5/Document/ComputerPartition.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/ComputerPartition.py?rev=41356&r1=41355&r2=41356&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/ComputerPartition.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/ComputerPartition.py [utf8] Fri Dec 10 19:03:50 2010
@@ -27,7 +27,7 @@
 ##############################################################################
 
 from AccessControl import ClassSecurityInfo
-from Products.ERP5Type import Permissions
+from Products.ERP5Type import Permissions, PropertySheet
 from Products.ERP5.Document.Item import Item
 
 class ComputerPartition(Item):
@@ -38,3 +38,15 @@ class ComputerPartition(Item):
 
   # Declarative security
   security = ClassSecurityInfo()
+  # Declarative properties
+  property_sheets = ( PropertySheet.Base
+                      , PropertySheet.XMLObject
+                      , PropertySheet.CategoryCore
+                      , PropertySheet.DublinCore
+                      , PropertySheet.Item
+                      , PropertySheet.Amount
+                      , PropertySheet.Computer
+                      , PropertySheet.Mapping
+                      , PropertySheet.Task
+                      , PropertySheet.Reference
+                      )



More information about the Erp5-report mailing list