[CMF-checkins] CVS: CMF - PortalFolder.py:1.12 __init__.py:1.6
tseaver@digicool.com
tseaver@digicool.com
Thu, 24 May 2001 16:19:00 -0400 (EDT)
Update of /cvs-repository/CMF/CMFCore
In directory korak.digicool.com:/tmp/cvs-serv17931/CMFCore
Modified Files:
PortalFolder.py __init__.py
Log Message:
- Move 'factory_type_information' records back out to content modules.
--- Updated File PortalFolder.py in package CMF --
--- PortalFolder.py 2001/05/23 22:58:05 1.11
+++ PortalFolder.py 2001/05/24 20:18:59 1.12
@@ -100,6 +100,36 @@
from DynamicType import DynamicType
from utils import getToolByName
+factory_type_information = ( { 'id' : 'Folder'
+ , 'meta_type' : 'Portal Folder'
+ , 'description' : """\
+Use folders to put content in categories."""
+ , 'icon' : 'folder_icon.gif'
+ , 'product' : 'CMFCore'
+ , 'factory' : 'manage_addPortalFolder'
+ , 'filter_content_types' : 0
+ , 'immediate_view' : 'folder_edit_form'
+ , 'actions' :
+ ( { 'name' : 'View'
+ , 'action' : ''
+ , 'permissions' : ('View',)
+ , 'category' : 'folder'
+ }
+ , { 'name' : 'Edit'
+ , 'action' : 'folder_edit_form'
+ , 'permissions' : ('Manage properties',)
+ , 'category' : 'folder'
+ }
+ , { 'name' : 'Syndication'
+ , 'action' : 'synPropertiesForm'
+ , 'permissions' : ('Modify properties',)
+ , 'category' : 'folder'
+ }
+ )
+ }
+ ,
+ )
+
#
# HACK! HACK! HACK! HACK! HACK! HACK! HACK! HACK! HACK!
#
--- Updated File __init__.py in package CMF --
--- __init__.py 2001/05/22 20:33:42 1.5
+++ __init__.py 2001/05/24 20:18:59 1.6
@@ -175,5 +175,6 @@
, permission=ADD_FOLDERS_PERMISSION
, extra_constructors=(
PortalFolder.manage_addPortalFolder, )
+ , fti=PortalFolder.factory_type_information
).initialize( context )