~openerp-dev/openobject-server/trunk-res_bank_remove_footer-mdi

« back to all changes in this revision

Viewing changes to openerp/wizard/__init__.py

  • Committer: Olivier Dony
  • Date: 2011-09-27 16:51:33 UTC
  • mfrom: (3663 trunk)
  • mto: This revision was merged to the branch mainline in revision 3665.
  • Revision ID: odo@openerp.com-20110927165133-uwl7px6bxl6eu7us
[MERGE] sync with latest trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    def __init__(self, name):
45
45
        assert not self.exists('wizard.'+name), 'The wizard "%s" already exists!' % (name,)
46
46
        super(interface, self).__init__('wizard.'+name)
47
 
        self.exportMethod(self.execute)
48
47
        self.wiz_name = name
49
48
 
50
49
    def translate_view(self, cr, node, state, lang):
156
155
            if isinstance(e, except_wizard) \
157
156
                or isinstance(e, except_osv) \
158
157
                or isinstance(e, except_orm):
159
 
                self.abortResponse(2, e.name, 'warning', e.value)
 
158
                netsvc.abort_response(2, e.name, 'warning', e.value)
160
159
            else:
161
160
                import traceback
162
161
                tb_s = reduce(lambda x, y: x+y, traceback.format_exception(