hunk.code_window:     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 convert_exception_to(to_type, with_message=False):
       """ Should only be called from an exception handler. Fetches the current
       exception data from sys.exc_info() and creates a new exception of type
  
hunk.labels: keep replace replace replace replace replace replace keep keep keep keep
hunk.after_edit:         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
  
hunk.file_path: openerp/addons/base/ir/ir_http.py
hunk.type: replace
file: # coding: utf-8
  
  {
      'name': 'Saudi Arabia - Accounting',
      'version': '1.1',
      'author': 'DVIT.ME',
      'category': 'Localization/Account Charts',
      'description': """
  Odoo Arabic localization for most arabic countries and Saudi Arabia.
  
  This initially includes chart of accounts of USA translated to Arabic.
  
  In future this module will include some payroll rules for ME .
  """,
      'website': 'http://www.dvit.me',
      'depends': ['account', 'l10n_multilang'],
      'data': [
          'account.chart.template.xml',
          'account.account.template.csv',
          'account_chart_template_after.xml',
          'account_chart_template.yml',
      ],
      'demo': [],
      'test': [],
      'installable': True,
      'auto_install': False,
      'post_init_hook': 'load_translations',
  }
  