daboide Commit
Revision 220
Date: 2005-10-31 21:06:25 -0800 (Mon, 31 Oct 2005)
Author: paul
Changed:
U trunk/wizards/AppWizardX/spec-Biz.py
Log:
Added comments to the base bizobj discussing the possible need to change the
Encoding, along with a commented-out sample of what to do.
Diff:
Modified: trunk/wizards/AppWizardX/spec-Biz.py
===================================================================
--- trunk/wizards/AppWizardX/spec-Biz.py 2005-11-01 01:16:55 UTC (rev
219)
+++ trunk/wizards/AppWizardX/spec-Biz.py 2005-11-01 05:06:25 UTC (rev
220)
@@ -8,8 +8,16 @@
self.Caption = "%(tableName)s"
self.DataSource = "%(table)s"
self.KeyField = %(pkField)s
+
# Set the default values for new records added:
self.DefaultValues = {}
+
+ # Default encoding is set to utf8, but if your backend db
encodes in
+ # something else, you need to set that encoding here (or in
each
+ # bizobj individually. A very common encoding for the Americas
and
+ # Western Europe is "latin-1", so if you are getting errors but
are
+ # unsure what encoding to pick, try uncommenting the following
line:
+ #self.Encoding = "latin-1"
def afterInit(self):
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev