Ignore:
Timestamp:
06/06/12 11:39:29 (8 years ago)
Author:
mnagni
Message:

Other improvement on how SA alchemy session is managed (infoDB)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/MolesManager/molesSessionMiddleware.py

    r8325 r8326  
    1010    MOLES3_DB_SCRIPT, EVENTS_DB, INFO_DB_CONNECTION 
    1111from libs.commons_db import DbManager 
    12 from libs.migration.InfodbEPB import InfodbEPB 
     12from libs.migration.InfodbEPB import InfodbEPBFactory 
    1313from libs.migration.MigrationEPB import MigrationEPBFactory 
    1414 
     
    2121    #_migrationThread = MigrationThread(interval = MIGRATION_INTERVAL) 
    2222    _epbInitialized = False 
     23    _infodbEPBFactory = None     
    2324    _moles3EPBFactory = None 
    2425    _migrationEPBFactory = None 
     
    2627    def _doInitialization(self): 
    2728        infoDB = DbManager(INFO_DB_CONNECTION) 
    28         InfodbEPB.overrrideDBManager(infoDB) 
     29        MolesSessionMiddleware._infodbEPBFactory = InfodbEPBFactory(infoDB) 
     30        #InfodbEPB.overrrideDBManager(infoDB) 
    2931            
    3032        migrationDB = DbManager(MIGRATION_DB_CONNECTION, MIGRATION_DB_SCRIPT) 
Note: See TracChangeset for help on using the changeset viewer.