[Erp5-report] r20427 - /erp5/trunk/products/ERP5Form/Extensions/
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 10 17:32:59 CEST 2008
Author: fabien
Date: Thu Apr 10 17:32:56 2008
New Revision: 20427
URL: http://svn.erp5.org?rev=20427&view=rev
Log:
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.
Modified:
erp5/trunk/products/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py
Modified: erp5/trunk/products/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py?rev=20427&r1=20426&r2=20427&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py (original)
+++ erp5/trunk/products/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py Thu Apr 10 17:32:56 2008
@@ -79,10 +79,11 @@
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,
More information about the Erp5-report
mailing list