daboide Commit
Revision 878
Date: 2007-09-12 22:11:23 -0700 (Wed, 12 Sep 2007)
Author: Paul
Trac: http://svn.dabodev.com/trac/daboide/changeset/878
Changed:
U trunk/wizards/AppWizard/AppWizard.py
U trunk/wizards/AppWizard/spec-PagSelect.py.txt
U trunk/wizards/AppWizard/spec-PagSelectBase.py.txt
Log:
Modified AppWizard apps to not instantiate SortLabel in the select page,
but dabo.ui.dLabel instead. I'm deprecating SortLabel as I've never
liked the implementation of it, and it was causing the default order-by
clause set in my bizobjs to get overwritten with no sorting.
Diff:
Modified: trunk/wizards/AppWizard/AppWizard.py
===================================================================
--- trunk/wizards/AppWizard/AppWizard.py 2007-09-12 14:13:02 UTC (rev
877)
+++ trunk/wizards/AppWizard/AppWizard.py 2007-09-13 05:11:23 UTC (rev
878)
@@ -906,7 +906,7 @@
##
## Field %(table)s.%(fieldName)s
##
- lbl = SortLabel(panel)
+ lbl = dabo.ui.dLabel(panel)
lbl.Caption = "%(fieldName)s:"
lbl.relatedDataField = "%(fieldName)s"
Modified: trunk/wizards/AppWizard/spec-PagSelect.py.txt
===================================================================
--- trunk/wizards/AppWizard/spec-PagSelect.py.txt 2007-09-12 14:13:02 UTC
(rev 877)
+++ trunk/wizards/AppWizard/spec-PagSelect.py.txt 2007-09-13 05:11:23 UTC
(rev 878)
@@ -4,10 +4,10 @@
if __name__ == "__main__":
dabo.ui.loadUI("wx")
import dabo.dEvents as dEvents
-from dabo.dLocalize import _, n_
+from dabo.dLocalize import _
from PagSelectBase import PagSelectBase, IGNORE_STRING, SelectTextBox, \
SelectCheckBox, SelectLabel, SelectDateTextBox, SelectSpinner, \
- SelectionOpDropdown, SortLabel
+ SelectionOpDropdown
class PagSelect%(tableName)s(PagSelectBase):
Modified: trunk/wizards/AppWizard/spec-PagSelectBase.py.txt
===================================================================
--- trunk/wizards/AppWizard/spec-PagSelectBase.py.txt 2007-09-12 14:13:02 UTC
(rev 877)
+++ trunk/wizards/AppWizard/spec-PagSelectBase.py.txt 2007-09-13 05:11:23 UTC
(rev 878)
@@ -60,13 +60,6 @@
Target = property(_getTarget, _setTarget, None, "Holds a reference to
the edit control.")
-class SortLabel(dabo.ui.dLabel):
- def initEvents(self):
- self.super()
- self.bindEvent(dEvents.MouseRightClick,
self.Parent.Parent.onSortLabelRClick)
- # Add a property for the related field
- self.relatedDataField = ""
-
-
class PagSelectBase(datanav.SelectPage):
pass
+
_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]