Changeset 8223


Ignore:
Timestamp:
12/04/12 13:29:22 (8 years ago)
Author:
mnagni
Message:

Incomplete - # 22385: CEDA Observation - result
 http://team.ceda.ac.uk/trac/ceda/ticket/22385

File:
1 edited

Legend:

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

    r8219 r8223  
    88from MolesManager.settings import RUN_MIGRATION, MIGRATION_INTERVAL,\ 
    99    MIGRATION_DB_CONNECTION, MIGRATION_DB_SCRIPT, MOLES3_DB_CONNECTION,\ 
    10     MOLES3_DB_SCRIPT, EVENTS_DB 
     10    MOLES3_DB_SCRIPT, EVENTS_DB, INFO_DB_CONNECTION 
    1111from libs.commons_db import DbManager 
    1212from libs.migration.MigrationEPB import MigrationEPB 
    1313from ea_model.iso_19115_2006_metadata_corrigendum.reference_system_information.md_identifier import MD_Identifier 
     14from libs.migration.InfodbEPB import InfodbEPB 
    1415 
    1516 
     
    4041    def _getNewMolesSession(self): 
    4142        session = Moles3EPB.getNewMolesSession()  
    42         EVENTS_DB.attachEvents(session) 
     43        EVENTS_DB(session) 
    4344        return session 
    4445     
    4546    def _getMolesSession(self): 
    4647        if not MolesSessionMiddleware._epbInitialized: 
     48            infoDB = DbManager(INFO_DB_CONNECTION) 
     49            InfodbEPB.overrrideDBManager(infoDB) 
     50             
    4751            migrationDB = DbManager(MIGRATION_DB_CONNECTION, MIGRATION_DB_SCRIPT) 
    4852            MigrationEPB.overrrideDBManager(migrationDB)        
Note: See TracChangeset for help on using the changeset viewer.