dabo Commit
Revision 6617
Date: 2011-06-08 15:49:10 -0700 (Wed, 08 Jun 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6617
Changed:
U trunk/dabo/ui/uiwx/dDialog.py
Log:
Added helper getBizobj() function to dDialog so that controls in the dialog
can still find their bizobjs with 'self.Form.getBizobj()'.
Diff:
Modified: trunk/dabo/ui/uiwx/dDialog.py
===================================================================
--- trunk/dabo/ui/uiwx/dDialog.py 2011-06-06 02:15:14 UTC (rev 6616)
+++ trunk/dabo/ui/uiwx/dDialog.py 2011-06-08 22:49:10 UTC (rev 6617)
@@ -47,6 +47,13 @@
self.setFocus()
+ def getBizobj(self, *args, **kwargs):
+ ## self.Form resolves to the containing dialog, making calls to
'self.Form.getBizobj()'
+ ## fail since the dialog knows nothing about bizobjs. Let's be
helpful and pass the
+ ## request up to the form:
+ return self.Form.getBizobj(*args, **kwargs)
+
+
def EndModal(self, *args, **kwargs):
self.saveSizeAndPosition()
self.hide()
_______________________________________________
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]