fix raise string deprecated in python 2.5

bzr revid: ced-0b69d2b3d88ebe2c98240b3ddeb6cb71c62ebace
This commit is contained in:
ced 2007-08-09 08:18:06 +00:00
parent 5c3609a570
commit f458474d50
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ def _action_open_window(self, cr, uid, data, context):
cr.execute('select default_credit_account_id from account_journal where id=%d', (form['journal_id'],))
account_id = cr.fetchone()[0]
if not account_id:
raise 'You have to define the bank account\nin the journal definition for reconciliation.'
raise Exception, 'You have to define the bank account\nin the journal definition for reconciliation.'
return {
'domain': "[('journal_id','=',%d), ('account_id','=',%d), ('state','<>','draft')]" % (form['journal_id'],account_id),
'name': 'Saisie Standard',

View File

@ -202,7 +202,7 @@ class record:
Must instanciate a fields list, field = (name,size)
and update a local_values dict.
"""
raise "not implemented"
raise Exception, "not implemented"
def generate(self):
res=''

View File

@ -307,7 +307,7 @@ class stock_tracking(osv.osv):
return res
def unlink(self, cr ,uid, ids):
raise 'You can not remove a lot line !'
raise Exception, 'You can not remove a lot line !'
stock_tracking()
#----------------------------------------------------------