Commit b916130f authored by Nicolas Dumazet's avatar Nicolas Dumazet

Solver Type has the same bootstrap issues as Base Type objects, fix them in the same manner


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39384 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 80079c49
......@@ -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
......
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