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())
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
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
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
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