[imp] improve deprecation warning message

bzr revid: xmo@tinyerp.com-20091217141935-f6rdzkkjsmcu234s
This commit is contained in:
Xavier Morel 2009-12-17 15:19:35 +01:00
parent 2151d2808a
commit bbb9d6bab1
1 changed files with 6 additions and 3 deletions

View File

@ -109,6 +109,10 @@ class res_config_configurable(osv.osv_memory):
return self.next(cr, uid, ids, context=context)
res_config_configurable()
DEPRECATION_MESSAGE = 'You are using an addon using old-style configuration '\
'wizards (ir.actions.configuration.wizard). Old-style configuration '\
'wizards have been deprecated.\n'\
'The addon should be migrated to res.config objects.'
class ir_actions_configuration_wizard(osv.osv_memory):
''' Compatibility configuration wizard
@ -138,9 +142,8 @@ class ir_actions_configuration_wizard(osv.osv_memory):
def execute(self, cr, uid, ids, context=None):
self.logger.notifyChannel(
'configuration', netsvc.LOG_WARNING,
'Addon using old-style configuration wizard, please migrate to '\
'res.config objects')
'configuration', netsvc.LOG_WARNING, DEPRECATION_MESSAGE)
ir_actions_configuration_wizard()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: