コード例 #1
0
ファイル: ir_http.py プロジェクト: Antiun/odoo
 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())
コード例 #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())
コード例 #3
0
ファイル: ir_http.py プロジェクト: vmlf01/odoo
    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
コード例 #4
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))
            mods = ['', "web"] + sorted(installed)
            self._routing_map = http.routing_map(mods, False, converters=self._get_converters())

        return self._routing_map
コード例 #5
0
ファイル: ir_http.py プロジェクト: 3iData/odoo8
    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
コード例 #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
コード例 #7
0
ファイル: ir_http.py プロジェクト: xiaoyun102/odoo
    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
コード例 #8
0
ファイル: ir_http.py プロジェクト: hanllc/odoo
    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