[Erp5-report] r12698 - /erp5/trunk/products/ERP5Type/XMLObject.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Feb 14 15:31:00 CET 2007
Author: jp
Date: Wed Feb 14 15:30:59 2007
New Revision: 12698
URL: http://svn.erp5.org?rev=12698&view=rev
Log:
Added minimal support for XMLObject as a portal type.
Modified:
erp5/trunk/products/ERP5Type/XMLObject.py
Modified: erp5/trunk/products/ERP5Type/XMLObject.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/XMLObject.py?rev=12698&r1=12697&r2=12698&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLObject.py (original)
+++ erp5/trunk/products/ERP5Type/XMLObject.py Wed Feb 14 15:30:59 2007
@@ -57,6 +57,44 @@
isPortalContent = 1
isRADContent = 1
+ # The only declarative factory_type_information in ERP5
+ factory_type_information = \
+ { 'id' : portal_type
+ , 'meta_type' : meta_type
+ , 'description' : "ERP5 default document. Supports synchronisation and XML."
+ , 'icon' : 'document.gif'
+ , 'product' : 'ERP5Type'
+ , 'factory' : 'addXMLObject'
+ , 'immediate_view' : 'XMLObject_view'
+ , 'actions' :
+ ( { 'id' : 'view'
+ , 'name' : 'View'
+ , 'category' : 'object_view'
+ , 'action' : 'XMLObject_view'
+ , 'permissions' : ( Permissions.View, )
+ }
+ , { 'id' : 'history'
+ , 'name' : 'History'
+ , 'category' : 'object_view'
+ , 'action' : 'Base_viewHistory'
+ , 'permissions' : ( Permissions.View, )
+ }
+ , { 'id' : 'metadata'
+ , 'name' : 'Metadata'
+ , 'category' : 'object_view'
+ , 'action' : 'Base_viewMetadata'
+ , 'permissions' : ( Permissions.ManageProperties, )
+ }
+ )
+ }
+
+ # Declarative properties
+ property_sheets = ( PropertySheet.Base
+ , PropertySheet.XMLObject
+ , PropertySheet.SimpleItem
+ , PropertySheet.Folder
+ )
+
# Declarative security
security = ClassSecurityInfo()
More information about the Erp5-report
mailing list