Changeset 8219 for mauRepo


Ignore:
Timestamp:
10/04/12 21:58:26 (8 years ago)
Author:
mnagni
Message:

Preliminary commit for the detach/merge SQLAlchemy operation management

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

Legend:

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

    r8217 r8219  
    88from MolesManager.settings import RUN_MIGRATION, MIGRATION_INTERVAL,\ 
    99    MIGRATION_DB_CONNECTION, MIGRATION_DB_SCRIPT, MOLES3_DB_CONNECTION,\ 
    10     MOLES3_DB_SCRIPT 
     10    MOLES3_DB_SCRIPT, EVENTS_DB 
    1111from libs.commons_db import DbManager 
    1212from libs.migration.MigrationEPB import MigrationEPB 
     
    4040    def _getNewMolesSession(self): 
    4141        session = Moles3EPB.getNewMolesSession()  
    42         MOLES3_DB_SCRIPT.attachEvents(session) 
     42        EVENTS_DB.attachEvents(session) 
    4343        return session 
    4444     
  • mauRepo/MolesManager/trunk/src/MolesManager/settings.py

    r8211 r8219  
    192192#MOLES3_DB_CONNECTION = 'postgresql://user:pws@host:port/dbName' 
    193193MOLES3_DB_CONNECTION = 'PG_MOLES3_DB_CONNECTION' 
    194 from sqlTables import doTables as doMoles 
     194from sqlTables import doTables as doMoles, attachEvents 
    195195MOLES3_DB_SCRIPT = doMoles 
     196EVENTS_DB = attachEvents 
    196197 
    197198 
Note: See TracChangeset for help on using the changeset viewer.