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

« back to all changes in this revision

Viewing changes to openobject/addons.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:
5
5
 
6
6
import cherrypy
7
7
import openobject.tools.ast
8
 
from openobject import errors, paths
 
8
from openobject import paths
9
9
 
10
10
 
11
11
class Graph(dict):
211
211
    graph = create_graph(base_addons)
212
212
    load_module_graph(db_name, graph, config)
213
213
 
214
 
    try:
215
 
        obj = pooler.get_pool().get_controller("/openerp/modules")
216
 
        new_modules = obj.get_new_modules()
217
 
    except errors.AuthenticationError:
218
 
        new_modules = []
219
 
 
220
 
    new_modules_in_graph = upgrade_graph(graph, new_modules)
221
 
    if new_modules_in_graph:
222
 
        load_module_graph(db_name, graph, config)
223
 
 
224
214
    cherrypy.request.loading_addons = False
225
215
 
226
216
writeable = os.access(paths.addons(), os.W_OK)