daboide Commit
Revision 594
Date: 2006-06-23 07:48:29 -0700 (Fri, 23 Jun 2006)
Author: ed
Changed:
U trunk/wizards/AppWizard/AppWizard.py
U trunk/wizards/AppWizard/spec-sampleReport.rfxml
Log:
Fixed a problem with setting the encoding of sample report.
Diff:
Modified: trunk/wizards/AppWizard/AppWizard.py
===================================================================
--- trunk/wizards/AppWizard/AppWizard.py 2006-06-21 12:31:45 UTC (rev
593)
+++ trunk/wizards/AppWizard/AppWizard.py 2006-06-23 14:48:29 UTC (rev
594)
@@ -861,8 +861,7 @@
# reports dir:
os.chdir("../reports")
- open("./sampleReport.rfxml",
"w").write(self.getSampleReport()
- % dabo.defaultEncoding)
+ open("./sampleReport.rfxml",
"w").write(self.getSampleReport())
return True
@@ -1268,6 +1267,7 @@
def getSampleReport(self):
+ enc = dabo.defaultEncoding
return open(os.path.join(self.Application.HomeDirectory,
"spec-sampleReport.rfxml")).read() % locals()
Modified: trunk/wizards/AppWizard/spec-sampleReport.rfxml
===================================================================
--- trunk/wizards/AppWizard/spec-sampleReport.rfxml 2006-06-21 12:31:45 UTC
(rev 593)
+++ trunk/wizards/AppWizard/spec-sampleReport.rfxml 2006-06-23 14:48:29 UTC
(rev 594)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="%s" standalone="yes"?>
+<?xml version="1.0" encoding="%(enc)s" standalone="yes"?>
<report>
<page>
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev