Commit 6aee80a7 authored by Jérome Perrin's avatar Jérome Perrin

Make FCKEditor optional



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9338 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 711220ba
...@@ -1093,10 +1093,15 @@ class ERP5Generator(PortalGenerator): ...@@ -1093,10 +1093,15 @@ class ERP5Generator(PortalGenerator):
from Products.CMFCore.DirectoryView import addDirectoryViews from Products.CMFCore.DirectoryView import addDirectoryViews
from Products.CMFDefault import cmfdefault_globals from Products.CMFDefault import cmfdefault_globals
from Products.CMFActivity import cmfactivity_globals from Products.CMFActivity import cmfactivity_globals
try:
from Products.FCKeditor import fckeditor_globals from Products.FCKeditor import fckeditor_globals
have_fckeditor = 1
except:
have_fckeditor = 0
ps = getToolByName(p, 'portal_skins') ps = getToolByName(p, 'portal_skins')
addDirectoryViews(ps, 'skins', cmfdefault_globals) addDirectoryViews(ps, 'skins', cmfdefault_globals)
addDirectoryViews(ps, 'skins', cmfactivity_globals) addDirectoryViews(ps, 'skins', cmfactivity_globals)
if have_fckeditor:
addDirectoryViews(ps, 'skins', fckeditor_globals) addDirectoryViews(ps, 'skins', fckeditor_globals)
ps.manage_addProduct['OFSP'].manage_addFolder(id='external_method') ps.manage_addProduct['OFSP'].manage_addFolder(id='external_method')
ps.manage_addProduct['OFSP'].manage_addFolder(id='custom') ps.manage_addProduct['OFSP'].manage_addFolder(id='custom')
...@@ -1104,7 +1109,6 @@ class ERP5Generator(PortalGenerator): ...@@ -1104,7 +1109,6 @@ class ERP5Generator(PortalGenerator):
# layer when installing new business templates. # layer when installing new business templates.
ps['custom'].manage_addProperty("business_template_skin_layer_priority", 100.0, "float") ps['custom'].manage_addProperty("business_template_skin_layer_priority", 100.0, "float")
skin_folder_list = [ 'custom' skin_folder_list = [ 'custom'
, 'fckeditor'
, 'external_method' , 'external_method'
, 'activity' , 'activity'
, 'zpt_content' , 'zpt_content'
...@@ -1115,6 +1119,8 @@ class ERP5Generator(PortalGenerator): ...@@ -1115,6 +1119,8 @@ class ERP5Generator(PortalGenerator):
, 'control' , 'control'
, 'Images' , 'Images'
] ]
if have_fckeditor:
skin_folder_list.insert(1, 'fckeditor')
skin_folders = ', '.join(skin_folder_list) skin_folders = ', '.join(skin_folder_list)
ps.addSkinSelection( 'View' ps.addSkinSelection( 'View'
, skin_folders , skin_folders
......
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