Commit 2659d192 authored by Fabien Morin's avatar Fabien Morin

replace spaces by '_' in object portal_type to search the view in the portal

skins folder. This is what ERP5Site_createModuleScribus.py does to create a
module using scribus file.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20427 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b23dd2f0
......@@ -79,10 +79,11 @@ def ERP5Site_updateModuleScribus(self,
option_html = option_html
# get object_title and portal_skin object using the object_portal_type
# to search the view in portal_skins folder
# (without any spaces) to search the view in portal_skins folder
temp_portal_type = object_portal_type.replace(' ', '')
search_param = {
'obj_metatypes': 'ERP5 Form',
'obj_searchterm': '%s_view' % object_portal_type,
'obj_searchterm': '%s_view' % temp_portal_type,
'search_sub': 1
}
result = portal.portal_skins.PrincipiaFind( portal.portal_skins,
......
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