dabo Commit
Revision 5099
Date: 2009-03-01 18:38:18 -0800 (Sun, 01 Mar 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5099
Changed:
U trunk/dabo/biz/dBizobj.py
Log:
Replaced several lines that used the str() function with string formatting, so
that unicode encoding errors would not be raised with non-ASCII values.
Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py 2009-03-02 02:37:05 UTC (rev 5098)
+++ trunk/dabo/biz/dBizobj.py 2009-03-02 02:38:18 UTC (rev 5099)
@@ -1937,7 +1937,7 @@
return self.DataSource
def _setCaption(self, val):
- self._caption = str(val)
+ self._caption = u"%s" % val
def _getChildCacheInterval(self):
@@ -1978,7 +1978,7 @@
return ""
def _setDataSource(self, val):
- self._dataSource = str(val)
+ self._dataSource = u"%s" % val
self._syncWithCursors()
@@ -2077,7 +2077,7 @@
return ""
def _setLinkField(self, val):
- self._linkField = str(val)
+ self._linkField = u"%s" % val
def _getNewChildOnNew(self):
@@ -2130,7 +2130,7 @@
return ""
def _setParentLinkField(self, val):
- self._parentLinkField = str(val)
+ self._parentLinkField = u"%s" % val
def _getRecord(self):
_______________________________________________
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]