Commit 584a2cfb authored by Sebastien Robin's avatar Sebastien Robin

use instancehome for the skins path


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@478 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 58d59151
...@@ -4,13 +4,23 @@ ...@@ -4,13 +4,23 @@
# have to be patched with a manage_FTPget wich contains # have to be patched with a manage_FTPget wich contains
# a section <dtml-comment></dtml-comment> # a section <dtml-comment></dtml-comment>
#instance_home = getConfiguration().instancehome
# Zope 2.6.x does not have App.Config
try:
from App.config import getConfiguration
except ImportError:
pass
fs_skin_ids = ('erp5_trade', 'erp5_accounting', 'erp5_crm') fs_skin_ids = ('erp5_trade', 'erp5_accounting', 'erp5_crm')
fs_skin_spec = ('ERP5 Filesystem Formulator Form', fs_skin_spec = ('ERP5 Filesystem Formulator Form',
'Filesystem Formulator Form', 'Filesystem Formulator Form',
'Filesystem Page Template', 'Filesystem Page Template',
'Filesystem Script (Python)', 'Filesystem Script (Python)',
'Filesystem Z SQL Method') 'Filesystem Z SQL Method')
fs_skin_dir = '/var/lib/zope/Products/ERP5/skins' #fs_skin_dir = '/var/lib/zope/Products/ERP5/skins'
fs_skin_dir = getConfiguration().instancehome + '/Products/ERP5/skins'
zodb_skin_ids = ('local_trade', 'local_accounting', 'local_crm') zodb_skin_ids = ('local_trade', 'local_accounting', 'local_crm')
zodb_skin_spec = ('ERP5 Form', 'Page Template', 'Script', 'Script (Python)','Z SQL Method') zodb_skin_spec = ('ERP5 Form', 'Page Template', 'Script', 'Script (Python)','Z SQL Method')
......
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