dabo Commit
Revision 6044
Date: 2010-10-01 06:51:13 -0700 (Fri, 01 Oct 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6044
Changed:
U trunk/ide/ReportDesigner.py
U trunk/ide/wizards/AppWizard/AppWizard.py
Log:
Converted these scripts to use dabo.getEncoding().
Diff:
Modified: trunk/ide/ReportDesigner.py
===================================================================
--- trunk/ide/ReportDesigner.py 2010-10-01 00:58:33 UTC (rev 6043)
+++ trunk/ide/ReportDesigner.py 2010-10-01 13:51:13 UTC (rev 6044)
@@ -2032,7 +2032,7 @@
return False
self._fileName = fileSpec
xml = self._rw._getXMLFromForm(self._rw.ReportForm)
- file(fileSpec, "wb").write(xml.encode(dabo.defaultEncoding))
+ file(fileSpec, "wb").write(xml.encode(dabo.getEncoding()))
self._rw._setMemento()
self.setCaption()
Modified: trunk/ide/wizards/AppWizard/AppWizard.py
===================================================================
--- trunk/ide/wizards/AppWizard/AppWizard.py 2010-10-01 00:58:33 UTC (rev
6043)
+++ trunk/ide/wizards/AppWizard/AppWizard.py 2010-10-01 13:51:13 UTC (rev
6044)
@@ -663,7 +663,7 @@
## Create the manifest file (for xp theme support):
pth = os.path.join(self.wizDir,
"spec-main.exe.manifest")
- txt = open(pth).read() % dabo.defaultEncoding
+ txt = open(pth).read() % dabo.getEncoding()
open("./%s.exe.manifest" % appName, "w").write(txt)
## Create App.py:
@@ -1147,7 +1147,7 @@
def getSampleReport(self):
- enc = dabo.defaultEncoding
+ enc = dabo.getEncoding()
return open(os.path.join(self.wizDir,
"spec-sampleReport.rfxml")).read() % locals()
_______________________________________________
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]