dabo Commit
Revision 6493
Date: 2011-03-08 06:29:07 -0800 (Tue, 08 Mar 2011)
Author: Werner
Trac: http://trac.dabodev.com/changeset/6493
Changed:
U trunk/ide/wizards/AppWizard/AppWizard.py
U trunk/ide/wizards/AppWizard/spec-Grd.py.txt
U trunk/ide/wizards/AppWizard/spec-PagEdit.py.txt
Log:
- testing of individual forms works again, by "faking" a minimal bizobj
Diff:
Modified: trunk/ide/wizards/AppWizard/AppWizard.py
===================================================================
--- trunk/ide/wizards/AppWizard/AppWizard.py 2011-03-05 15:47:56 UTC (rev
6492)
+++ trunk/ide/wizards/AppWizard/AppWizard.py 2011-03-08 14:29:07 UTC (rev
6493)
@@ -918,6 +918,17 @@
"""Return the panel to contain all the select options."""
biz = self.Form.getBizobj()
+ if not biz:
+ # needed for tsting
+ class Biz(object):
+ def getColCaption(self, caption):
+ return caption
+ def getColToolTip(self, tip):
+ return tip
+ def getColHelpText(self, txt):
+ return txt
+ biz = Biz()
+
panel = dabo.ui.dPanel(self)
gsz = dabo.ui.dGridSizer(VGap=5, HGap=10)
gsz.MaxCols = 3
Modified: trunk/ide/wizards/AppWizard/spec-Grd.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-Grd.py.txt 2011-03-05 15:47:56 UTC (rev
6492)
+++ trunk/ide/wizards/AppWizard/spec-Grd.py.txt 2011-03-08 14:29:07 UTC (rev
6493)
@@ -12,6 +12,14 @@
self.super()
biz = self.Form.getBizobj("%(datasource)s")
+ if not biz:
+ # needed for testing
+ class Biz(object):
+ def getColCaption(self, caption):
+ return caption
+ biz = Biz()
+
+
%(colDefs)s
Modified: trunk/ide/wizards/AppWizard/spec-PagEdit.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-PagEdit.py.txt 2011-03-05 15:47:56 UTC
(rev 6492)
+++ trunk/ide/wizards/AppWizard/spec-PagEdit.py.txt 2011-03-08 14:29:07 UTC
(rev 6493)
@@ -12,6 +12,17 @@
"""Called by the datanav framework, when it is time to create
the controls."""
biz = self.Form.getBizobj("%(datasource)s")
+ if not biz:
+ # needed for tsting
+ class Biz(object):
+ def getColCaption(self, caption):
+ return caption
+ def getColToolTip(self, tip):
+ return tip
+ def getColHelpText(self, txt):
+ return txt
+ biz = Biz()
+
%(createItems)s
self.super()
_______________________________________________
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]