[Erp5-report] r39384 nicolas.dumazet - /erp5/trunk/products/ERP5Type/Dynamic/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 20 11:47:17 CEST 2010
Author: nicolas.dumazet
Date: Wed Oct 20 11:47:16 2010
New Revision: 39384
URL: http://svn.erp5.org?rev=39384&view=rev
Log:
Solver Type has the same bootstrap issues as Base Type objects, fix them in the same manner
Modified:
erp5/trunk/products/ERP5Type/Dynamic/portaltypeclass.py
Modified: erp5/trunk/products/ERP5Type/Dynamic/portaltypeclass.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Dynamic/portaltypeclass.py?rev=39384&r1=39383&r2=39384&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Dynamic/portaltypeclass.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Dynamic/portaltypeclass.py [utf8] Wed Oct 20 11:47:16 2010
@@ -122,6 +122,8 @@ def portal_type_factory(portal_type_name
# loaded Base Type class, but you cant load
# Base Type class without accessing portal_types/Base Type
type_class = "ERP5TypeInformation"
+ elif portal_type_name == "Solver Type":
+ type_class = "SolverTypeInformation"
elif portal_type_name == "Business Template":
# When installing a BT, Business Templates are loaded
# before creating any Base Type object
@@ -160,7 +162,7 @@ def portal_type_factory(portal_type_name
# log loudly the error, but it's not _critical_
LOG("ERP5Type.Dynamic", ERROR,
"Could not load interfaces or Mixins for portal type %s" \
- % portal_type)
+ % portal_type_name)
import erp5
More information about the Erp5-report
mailing list