Fix DB engine config references
This commit is contained in:
parent
149f5be052
commit
35cdebbf18
|
@ -122,11 +122,11 @@ class CoreOfficeMasterView(CoreMasterView):
|
|||
|
||||
def get_db_engines(self):
|
||||
engines = OrderedDict()
|
||||
if self.rattail_config.core_office_engine:
|
||||
engines['default'] = self.rattail_config.core_office_engine
|
||||
for dbkey in self.rattail_config.core_office_engines:
|
||||
if self.rattail_config.core_office_op_engine:
|
||||
engines['default'] = self.rattail_config.core_office_op_engine
|
||||
for dbkey in self.rattail_config.core_office_op_engines:
|
||||
if dbkey != 'default':
|
||||
engines[dbkey] = self.rattail_config.core_office_engines[dbkey]
|
||||
engines[dbkey] = self.rattail_config.core_office_op_engines[dbkey]
|
||||
return engines
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in a new issue