This is the client part of the handle warning in wizard feature.
Please review this at http://codereview.appspot.com/4252046/
Affected files:
M CHANGELOG
M tryton/wizard/main.py
Index: CHANGELOG
===================================================================
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,4 @@
+* Handle warning in wizards
* Added possibility to use server-side icons
* Added additional gtk.Entry for filename on BinaryField
* Display deleted lines in One2Many and Many2Many
Index: tryton/wizard/main.py
===================================================================
--- a/tryton/wizard/main.py
+++ b/tryton/wizard/main.py
@@ -188,11 +188,14 @@
res = rpcprogress.run()
exception = None
except Exception, exception:
- common.process_exception(exception, parent)
- # Continue by running previous result except if access to
- # wizard is denied
- if exception.args[0] == 'AccessDenied':
- break
+ warning = common.process_exception(exception, parent)
+ if warning:
+ continue
+ else:
+ # Continue by running previous result except if access
to
+ # wizard is denied
+ if exception.args[0] == 'AccessDenied':
+ break
if not res:
if dia:
res = {'type': 'form'}
--
[email protected] mailing list