[MERGE] forward port of branch saas-3 up to 310d3fe
authorChristophe Simonis <chs@odoo.com>
Wed, 30 Jul 2014 17:09:33 +0000 (19:09 +0200)
committerChristophe Simonis <chs@odoo.com>
Wed, 30 Jul 2014 17:09:33 +0000 (19:09 +0200)
1  2 
addons/mail/mail_message.py
addons/project_long_term/project_long_term.py
addons/sale/sale.py
addons/website/controllers/main.py
addons/website/models/ir_http.py
openerp/tools/translate.py

Simple merge
Simple merge
Simple merge
Simple merge
@@@ -788,16 -812,9 +788,16 @@@ def trans_generate(lang, modules, cr)
      for bin_path in ['osv', 'report' ]:
          path_list.append(os.path.join(config.config['root_path'], bin_path))
  
-     _logger.debug("Scanning modules at paths: ", path_list)
+     _logger.debug("Scanning modules at paths: %s", path_list)
  
 -    mod_paths = []
 +    mod_paths = list(path_list)
 +
 +    def get_module_from_path(path):
 +        for mp in mod_paths:
 +            if path.startswith(mp) and (os.path.dirname(path) != mp):
 +                path = path[len(mp)+1:]
 +                return path.split(os.path.sep)[0]
 +        return 'base'   # files that are not in a module are considered as being in 'base' module
  
      def verified_module_filepaths(fname, path, root):
          fabsolutepath = join(root, fname)