Changeset 8334 for mauRepo/MolesManager


Ignore:
Timestamp:
11/06/12 13:37:03 (8 years ago)
Author:
mnagni
Message:

the infodb session was not injected in the migration process

Location:
mauRepo/MolesManager/trunk/src
Files:
3 edited

Legend:

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

    r8332 r8334  
    3030    def _doInitialization(self): 
    3131 
    32         infoDB = DbManager(INFO_DB_CONNECTION) 
     32        infoDB = DbManager(INFO_DB_CONNECTION, sql_echo=True) 
    3333        MolesSessionMiddleware._infodbEPBFactory = InfodbEPBFactory(infoDB) 
    3434        #InfodbEPB.overrrideDBManager(infoDB) 
    3535            
    36         migrationDB = DbManager(MIGRATION_DB_CONNECTION, MIGRATION_DB_SCRIPT) 
     36        migrationDB = DbManager(MIGRATION_DB_CONNECTION, MIGRATION_DB_SCRIPT, sql_echo=True) 
    3737        MolesSessionMiddleware._migrationEPBFactory = MigrationEPBFactory(migrationDB)                
    3838 
    39         molesDB = DbManager(MOLES3_DB_CONNECTION, MOLES3_DB_SCRIPT, session_event_manager=EVENTS_DB) 
     39        molesDB = DbManager(MOLES3_DB_CONNECTION, MOLES3_DB_SCRIPT, session_event_manager=EVENTS_DB, sql_echo=True) 
    4040        MolesSessionMiddleware._moles3EPBFactory = Moles3EPBFactory(molesDB) 
    4141         
     
    4343            MolesSessionMiddleware._moles3EPBFactory.createMoles3EPB(), \ 
    4444            MolesSessionMiddleware._migrationEPBFactory.createMigrationEPB(), \ 
     45            MolesSessionMiddleware._infodbEPBFactory.createEPB(), \ 
    4546            interval = MIGRATION_INTERVAL ) 
    4647        MolesSessionMiddleware._epbInitialized = True       
  • mauRepo/MolesManager/trunk/src/libs/migration/InfodbEPB.py

    r8326 r8334  
    1717        return None 
    1818         
    19     def createMigrationEPB(self): 
     19    def createEPB(self): 
    2020        return InfodbEPB(self._getSession()) 
    2121 
  • mauRepo/MolesManager/trunk/src/libs/migration/client.py

    r8325 r8334  
    2121    """ 
    2222     
    23     def __init__(self, moles3EPB, migrationEPB, interval=600): 
     23    def __init__(self, moles3EPB, migrationEPB, infodbEPB, interval=600): 
    2424        EPBRepo.moles3EPB = moles3EPB 
    2525        EPBRepo.migrationEPB = migrationEPB 
     26        EPBRepo.infodbEPB = infodbEPB 
    2627         
    2728        threading.Thread.__init__(self) 
Note: See TracChangeset for help on using the changeset viewer.