dabo Commit
Revision 6672
Date: 2011-07-07 14:54:37 -0700 (Thu, 07 Jul 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6672
Changed:
U trunk/ide/wizards/AppWizard/AppWizard.py
U trunk/ide/wizards/AppWizard/spec-App.py.txt
U trunk/ide/wizards/AppWizard/spec-Biz.py.txt
U trunk/ide/wizards/AppWizard/spec-BizBase.py.txt
U trunk/ide/wizards/AppWizard/spec-Frm.py.txt
U trunk/ide/wizards/AppWizard/spec-FrmBase.py.txt
U trunk/ide/wizards/AppWizard/spec-FrmMain.py.txt
U trunk/ide/wizards/AppWizard/spec-FrmReportBase.py.txt
U trunk/ide/wizards/AppWizard/spec-FrmReportSample.py.txt
U trunk/ide/wizards/AppWizard/spec-Grd.py.txt
U trunk/ide/wizards/AppWizard/spec-MenFileOpen.py.txt
U trunk/ide/wizards/AppWizard/spec-MenReports.py.txt
U trunk/ide/wizards/AppWizard/spec-PagEdit.py.txt
U trunk/ide/wizards/AppWizard/spec-PagSelectBase.py.txt
Log:
Change references from autosuper module to the super built-in function because
of SysemError exceptions under Python 2.7.
Diff:
Modified: trunk/ide/wizards/AppWizard/AppWizard.py
===================================================================
--- trunk/ide/wizards/AppWizard/AppWizard.py 2011-07-07 10:47:02 UTC (rev
6671)
+++ trunk/ide/wizards/AppWizard/AppWizard.py 2011-07-07 21:54:37 UTC (rev
6672)
@@ -428,7 +428,7 @@
class PageOutput(AppWizardPage):
def __init__(self, parent, Caption=_("Output Options")):
- self.super(parent=parent, Caption=Caption)
+ super(PageOutput, self).__init__(parent=parent, Caption=Caption)
def createBody(self):
Modified: trunk/ide/wizards/AppWizard/spec-App.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-App.py.txt 2011-07-07 10:47:02 UTC (rev
6671)
+++ trunk/ide/wizards/AppWizard/spec-App.py.txt 2011-07-07 21:54:37 UTC (rev
6672)
@@ -38,4 +38,4 @@
else:
# no need for main form in SDI mode:
self.MainFormClass = None
- self.super()
+ super(App, self).setup()
Modified: trunk/ide/wizards/AppWizard/spec-Biz.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-Biz.py.txt 2011-07-07 10:47:02 UTC (rev
6671)
+++ trunk/ide/wizards/AppWizard/spec-Biz.py.txt 2011-07-07 21:54:37 UTC (rev
6672)
@@ -7,7 +7,7 @@
class %(tableName)s(Base):
def initProperties(self):
- self.super()
+ super(%(tableName)s, self).initProperties()
self.Caption = "%(tableName)s"
self.DataSource = "%(table)s"
self.KeyField = %(pkField)s
@@ -40,7 +40,7 @@
def afterInit(self):
- self.super()
+ super(%(tableName)s, self).afterInit()
def setBaseSQL(self):
Modified: trunk/ide/wizards/AppWizard/spec-BizBase.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-BizBase.py.txt 2011-07-07 10:47:02 UTC
(rev 6671)
+++ trunk/ide/wizards/AppWizard/spec-BizBase.py.txt 2011-07-07 21:54:37 UTC
(rev 6672)
@@ -5,7 +5,7 @@
class Base(datanav.Bizobj):
def afterInit(self):
- self.super()
+ super(Base, self).afterInit()
self.setBaseSQL()
Modified: trunk/ide/wizards/AppWizard/spec-Frm.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-Frm.py.txt 2011-07-07 10:47:02 UTC (rev
6671)
+++ trunk/ide/wizards/AppWizard/spec-Frm.py.txt 2011-07-07 21:54:37 UTC (rev
6672)
@@ -13,7 +13,7 @@
class Frm%(tableName)s(FrmBase):
def initProperties(self):
- self.super()
+ super(Frm%(tableName)s, self).initProperties()
self.NameBase = "frm%(tableName)s"
self.Caption = "%(tableName)s"
self.SelectPageClass = PagSelect%(tableName)s
@@ -28,7 +28,7 @@
app = self.Application
biz%(tableName)s =
app.biz.%(tableName)s(app.dbConnection)
self.addBizobj(biz%(tableName)s)
- self.super()
+ super(Frm%(tableName)s, self).afterInit()
if __name__ == "__main__":
Modified: trunk/ide/wizards/AppWizard/spec-FrmBase.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-FrmBase.py.txt 2011-07-07 10:47:02 UTC
(rev 6671)
+++ trunk/ide/wizards/AppWizard/spec-FrmBase.py.txt 2011-07-07 21:54:37 UTC
(rev 6672)
@@ -9,7 +9,7 @@
class FrmBase(datanav.Form):
def initProperties(self):
- self.super()
+ super(FrmBase, self).initProperties()
# Setting RequeryOnLoad to True will result in an automatic
requery upon
# form load, which may be appropriate for your app (if it is
reasonably
# certain that the dataset will be small no matter what).
@@ -18,7 +18,7 @@
def setupMenu(self):
- self.super()
+ super(FrmBase, self).setupMenu()
self.fillFileOpenMenu()
self.fillReportsMenu()
Modified: trunk/ide/wizards/AppWizard/spec-FrmMain.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-FrmMain.py.txt 2011-07-07 10:47:02 UTC
(rev 6671)
+++ trunk/ide/wizards/AppWizard/spec-FrmMain.py.txt 2011-07-07 21:54:37 UTC
(rev 6672)
@@ -7,12 +7,12 @@
class FrmMain(dabo.ui.dFormMain):
def afterInit(self):
- self.super()
+ super(FrmMain, self).afterInit()
self.fillFileOpenMenu()
def initProperties(self):
- self.super()
+ super(FrmMain, self).initProperties()
self.Icon = "daboIcon.ico"
Modified: trunk/ide/wizards/AppWizard/spec-FrmReportBase.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-FrmReportBase.py.txt 2011-07-07
10:47:02 UTC (rev 6671)
+++ trunk/ide/wizards/AppWizard/spec-FrmReportBase.py.txt 2011-07-07
21:54:37 UTC (rev 6672)
@@ -9,7 +9,7 @@
class FrmReportBase(dabo.ui.dDialog):
def initProperties(self):
- self.super()
+ super(FrmReportBase, self).initProperties()
## Do this import here: in case prerequisites aren't installed,
the app
## will still start.
from dabo.dReportWriter import dReportWriter
Modified: trunk/ide/wizards/AppWizard/spec-FrmReportSample.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-FrmReportSample.py.txt 2011-07-07
10:47:02 UTC (rev 6671)
+++ trunk/ide/wizards/AppWizard/spec-FrmReportSample.py.txt 2011-07-07
21:54:37 UTC (rev 6672)
@@ -17,14 +17,14 @@
def initProperties(self):
app = self.Application
self.ReportName = _("Sample Report")
- self.super()
+ super(FrmReportSample, self).initProperties()
self.ReportForm = os.path.join(app.HomeDirectory,
"reports/sampleReport.rfxml")
self.DataSetFunction = app.db.getSampleDataSet
def addControls(self):
"""Add any controls here, such as record selection choices."""
- self.super()
+ super(FrmReportSample, self).addControls()
def requery(self):
Modified: trunk/ide/wizards/AppWizard/spec-Grd.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-Grd.py.txt 2011-07-07 10:47:02 UTC (rev
6671)
+++ trunk/ide/wizards/AppWizard/spec-Grd.py.txt 2011-07-07 21:54:37 UTC (rev
6672)
@@ -9,7 +9,7 @@
class Grd%(tableName)s(GrdBase):
def afterInitAll(self):
- self.super()
+ super(Grd%(tableName)s, self).afterInitAll()
biz = self.Form.getBizobj("%(datasource)s")
if not biz:
Modified: trunk/ide/wizards/AppWizard/spec-MenFileOpen.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-MenFileOpen.py.txt 2011-07-07 10:47:02 UTC
(rev 6671)
+++ trunk/ide/wizards/AppWizard/spec-MenFileOpen.py.txt 2011-07-07 21:54:37 UTC
(rev 6672)
@@ -7,7 +7,7 @@
class MenFileOpen(dabo.ui.dMenu):
def initProperties(self):
- self.super()
+ super(MenFileOpen, self).initProperties()
self.Caption = "&Open"
self.HelpText = "Open a module"
Modified: trunk/ide/wizards/AppWizard/spec-MenReports.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-MenReports.py.txt 2011-07-07 10:47:02 UTC
(rev 6671)
+++ trunk/ide/wizards/AppWizard/spec-MenReports.py.txt 2011-07-07 21:54:37 UTC
(rev 6672)
@@ -7,7 +7,7 @@
class MenReports(dabo.ui.dMenu):
def initProperties(self):
- self.super()
+ super(MenReports, self).initProperties()
self.Caption = "Re&ports"
self.HelpText = "Run a report to screen or printer"
self.MenuID = "reports"
Modified: trunk/ide/wizards/AppWizard/spec-PagEdit.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-PagEdit.py.txt 2011-07-07 10:47:02 UTC
(rev 6671)
+++ trunk/ide/wizards/AppWizard/spec-PagEdit.py.txt 2011-07-07 21:54:37 UTC
(rev 6672)
@@ -24,7 +24,7 @@
biz = Biz()
%(createItems)s
- self.super()
+ super(PagEdit%(tableName)s, self).createItems()
if __name__ == "__main__":
Modified: trunk/ide/wizards/AppWizard/spec-PagSelectBase.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-PagSelectBase.py.txt 2011-07-07
10:47:02 UTC (rev 6671)
+++ trunk/ide/wizards/AppWizard/spec-PagSelectBase.py.txt 2011-07-07
21:54:37 UTC (rev 6672)
@@ -11,7 +11,7 @@
# Controls for the select page:
class SelectControlMixin(dObject):
def initProperties(self):
- self.super()
+ super(SelectControlMixin, self).initProperties()
self.SaveRestoreValue = True
class SelectTextBox(SelectControlMixin, dabo.ui.dTextBox): pass
@@ -26,11 +26,11 @@
class SelectionOpDropdown(dabo.ui.dDropdownList):
def initProperties(self):
- self.super()
+ super(SelectionOpDropdown, self).initProperties()
self.SaveRestoreValue = True
def initEvents(self):
- self.super()
+ super(SelectionOpDropdown, self).initEvents()
self.bindEvent(dEvents.Hit, self.onChoiceMade)
self.bindEvent(dEvents.ValueChanged, self.onValueChanged)
@@ -62,7 +62,7 @@
class SortLabel(dabo.ui.dLabel):
def initEvents(self):
- self.super()
+ super(SortLabel, self).initEvents()
self.bindEvent(dEvents.MouseRightClick,
self.Parent.Parent.onSortLabelRClick)
# Add a property for the related field
self.relatedDataField = ""
_______________________________________________
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]