Commit b1ca87ef authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added minimal support for XMLObject as a portal type.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12698 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e2f1aff1
......@@ -57,6 +57,44 @@ class XMLObject( Folder ):
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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment