Commit 18546ee4 authored by Kevin Deldycke's avatar Kevin Deldycke

Install fckeditor automaticcaly.

Auto-delete trailing spaces.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9320 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e7ea6231
......@@ -1093,27 +1093,41 @@ class ERP5Generator(PortalGenerator):
from Products.CMFCore.DirectoryView import addDirectoryViews
from Products.CMFDefault import cmfdefault_globals
from Products.CMFActivity import cmfactivity_globals
from Products.FCKeditor import fckeditor_globals
ps = getToolByName(p, 'portal_skins')
addDirectoryViews(ps, 'skins', cmfdefault_globals)
addDirectoryViews(ps, 'skins', cmfactivity_globals)
addDirectoryViews(ps, 'skins', fckeditor_globals)
ps.manage_addProduct['OFSP'].manage_addFolder(id='external_method')
ps.manage_addProduct['OFSP'].manage_addFolder(id='custom')
# Set the 'custom' layer a high priority, so it remains the first
# layer when installing new business templates
ps['custom'].manage_addProperty(
"business_template_skin_layer_priority", 100.0, "float")
ps.addSkinSelection('View', 'custom, external_method, activity, '
+ 'zpt_content, zpt_generic,'
+ 'zpt_control, content, generic, control, Images',
make_default=1)
ps.addSkinSelection('Print', 'custom, external_method, activity, '
+ 'zpt_content, zpt_generic,'
+ 'zpt_control, content, generic, control, Images',
make_default=0)
ps.addSkinSelection('CSV', 'custom, external_method, activity, '
+ 'zpt_content, zpt_generic,'
+ 'zpt_control, content, generic, control, Images',
make_default=0)
# layer when installing new business templates.
ps['custom'].manage_addProperty("business_template_skin_layer_priority", 100.0, "float")
skin_folder_list = [ 'custom'
, 'fckeditor'
, 'external_method'
, 'activity'
, 'zpt_content'
, 'zpt_generic'
, 'zpt_control'
, 'content'
, 'generic'
, 'control'
, 'Images'
]
skin_folders = ', '.join(skin_folder_list)
ps.addSkinSelection( 'View'
, skin_folders
, make_default = 1
)
ps.addSkinSelection( 'Print'
, skin_folders
, make_default = 0
)
ps.addSkinSelection( 'CSV'
, skin_folders
, make_default = 0
)
p.setupCurrentSkin()
def setupWorkflow(self, p):
......
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