dabo Commit
Revision 4098
Date: 2008-05-27 15:35:12 -0700 (Tue, 27 May 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4098

Changed:
U   trunk/dabo/ui/uiwx/__init__.py

Log:
Added defensive code around a wx.Yield() call in the busyInfo() function.
This is in response to the following traceback I received from a 
customer in the field which I'm unable to reproduce, and which the 
customer hasn't reproduced either:

Traceback (most recent call last):
  File "wx\_core.pyo", line 14368, in <lambda>
  File "dabo\lib\datanav2\Form.pyo", line 494, in requery
  File "dabo\lib\datanav2\Page.pyo", line 369, in requery
  File "dabo\lib\datanav2\Form.pyo", line 497, in requery
  File "dabo\lib\autosuper\autosuper.pyo", line 176, in __call__
  File "dabo\ui\uiwx\dForm.pyo", line 450, in requery
  File "dabo\ui\uiwx\__init__.pyo", line 289, in busyInfo
  File "wx\_core.pyo", line 7576, in Yield
<class 'wx._core.PyAssertionError'>: C++ assertion "wxAssertFailure" failed at 
..\..\src\msw\app.cpp(680) in wxApp::Yield(): wxYield called recursively



Diff:
Modified: trunk/dabo/ui/uiwx/__init__.py
===================================================================
--- trunk/dabo/ui/uiwx/__init__.py      2008-05-25 21:06:05 UTC (rev 4097)
+++ trunk/dabo/ui/uiwx/__init__.py      2008-05-27 22:35:12 UTC (rev 4098)
@@ -286,7 +286,12 @@
        bi = None
        """
        bi = wx.BusyInfo(msg, *args, **kwargs)
-       wx.Yield()
+       try:
+               wx.Yield()
+       except wx._core.PyAssertionError:
+               # pkm: I got a message 'wxYield called recursively' which
+               #      I'm unable to reproduce.
+               pass 
        return bi
 
 




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to