Esempio n. 1
0
 def routing_map(self):
     _logger.info("Generating routing map")
     installed = request.registry._init_modules - {'web'}
     if openerp.tools.config['test_enable']:
         installed.add(openerp.modules.module.current_test)
     mods = [''] + openerp.conf.server_wide_modules + sorted(installed)
     return http.routing_map(mods, False, converters=self._get_converters())
Esempio n. 2
0
 def routing_map(self):
     _logger.info("Generating routing map")
     installed = request.registry._init_modules - {'web'}
     if openerp.tools.config['test_enable']:
         installed.add(openerp.modules.module.current_test)
     mods = [''] + openerp.conf.server_wide_modules + sorted(installed)
     return http.routing_map(mods, False, converters=self._get_converters())
Esempio n. 3
0
    def routing_map(self):
        if not hasattr(self, "_routing_map"):
            _logger.info("Generating routing map")
            installed = request.registry._init_modules - {"web"}
            if openerp.tools.config["test_enable"]:
                installed.add(openerp.modules.module.current_test)
            mods = [""] + openerp.conf.server_wide_modules + sorted(installed)
            self._routing_map = http.routing_map(mods, False, converters=self._get_converters())

        return self._routing_map
    def routing_map(self):
        if not hasattr(self, '_routing_map'):
            _logger.info("Generating routing map")
            cr = request.cr
            m = request.registry.get('ir.module.module')
            ids = m.search(cr, openerp.SUPERUSER_ID, [('state', '=', 'installed'), ('name', '!=', 'web')], context=request.context)
            installed = set(x['name'] for x in m.read(cr, 1, ids, ['name'], context=request.context))
            mods = ['', "web"] + sorted(installed)
            self._routing_map = http.routing_map(mods, False, converters=self._get_converters())

        return self._routing_map
Esempio n. 5
0
    def routing_map(self):
        if not hasattr(self, '_routing_map'):
            _logger.info("Generating routing map")
            cr = request.cr
            m = request.registry.get('ir.module.module')
            ids = m.search(cr, openerp.SUPERUSER_ID, [('state', '=', 'installed'), ('name', '!=', 'web')], context=request.context)
            installed = set(x['name'] for x in m.read(cr, 1, ids, ['name'], context=request.context))
            if openerp.tools.config['test_enable']:
                installed.add(openerp.modules.module.current_test)
            mods = [''] + openerp.conf.server_wide_modules + sorted(installed)
            self._routing_map = http.routing_map(mods, False, converters=self._get_converters())

        return self._routing_map
Esempio n. 6
0
    def routing_map(self):
        if not hasattr(self, '_routing_map'):
            _logger.info("Generating routing map")
            cr = request.cr
            m = request.registry.get('ir.module.module')
            ids = m.search(cr, openerp.SUPERUSER_ID, [('state', '=', 'installed'), ('name', '!=', 'web')], context=request.context)
            installed = set(x['name'] for x in m.read(cr, 1, ids, ['name'], context=request.context))
            if openerp.tools.config['test_enable']:
                installed.add(openerp.modules.module.current_test)
            mods = [''] + openerp.conf.server_wide_modules + sorted(installed)
            self._routing_map = http.routing_map(mods, False, converters=self._get_converters())

        return self._routing_map
Esempio n. 7
0
    def routing_map(self):
        if not hasattr(self, '_routing_map'):
            _logger.info("Generating routing map")
            Modules = request.env['ir.module.module'].sudo()
            installed = {
                module.name
                for module in Modules.search([(
                    'state', '=', 'installed'), ('name', '!=', 'web')])
            }
            if openerp.tools.config['test_enable']:
                installed.add(openerp.modules.module.current_test)
            mods = [''] + openerp.conf.server_wide_modules + sorted(installed)
            self._routing_map = http.routing_map(
                mods, False, converters=self._get_converters())

        return self._routing_map
Esempio n. 8
0
    def routing_map(self):
        if not hasattr(self, '_routing_map'):
            _logger.info("Generating routing map")
            Modules = request.env['ir.module.module'].sudo()
            installed = {
                module.name
                for module in Modules.search([
                    ('state', '=', 'installed'),
                    ('name', '!=', 'web')
                ])
            }
            if openerp.tools.config['test_enable']:
                installed.add(openerp.modules.module.current_test)
            mods = [''] + openerp.conf.server_wide_modules + sorted(installed)
            self._routing_map = http.routing_map(mods, False, converters=self._get_converters())

        return self._routing_map