~dorian-kemps/unifield-web/UW-4099

« back to all changes in this revision

Viewing changes to openobject/pooler.py

  • Committer: jf
  • Date: 2018-05-16 09:56:30 UTC
  • mfrom: (4912.2.2 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20180516095630-fedl0wmwqvsik8di
US-4537 [FIX] Autoreload disabled, service must be managed only by Windows services

lp:~jfb-tempo-consulting/unifield-web/us-4537

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 
67
67
def restart_pool():
68
68
 
69
 
    db_name = cherrypy.session['db']
 
69
    db_name = None #cherrypy.session['db']
70
70
    
71
71
    if db_name in pool_dict:
72
72
        import addons
81
81
    config = cherrypy.request.app.config
82
82
    db_name = None
83
83
 
84
 
    try:
85
 
        db_name = cherrypy.session['db']
86
 
    except Exception, e:
87
 
        pass
88
84
 
89
85
    if db_name in pool_dict:
90
86
        pool = pool_dict[db_name]