dabo Commit
Revision 6287
Date: 2010-12-25 06:09:33 -0800 (Sat, 25 Dec 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6287
Changed:
U trunk/dabo/__init__.py
U trunk/dabo/db/dCursorMixin.py
Log:
Fixed incorrect string formatting in dCursorMixin. Localization requires that
all multiply-replaced strings be formatted with dicts, not positional tuples.
Removed extra blank line from __init__.py
Diff:
Modified: trunk/dabo/__init__.py
===================================================================
--- trunk/dabo/__init__.py 2010-12-25 08:59:34 UTC (rev 6286)
+++ trunk/dabo/__init__.py 2010-12-25 14:09:33 UTC (rev 6287)
@@ -142,7 +142,6 @@
return ret
-
# These are the various standard log handlers.
consoleLogHandler = fileLogHandler = None
dbConsoleLogHandler = dbFileLogHandler = None
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py 2010-12-25 08:59:34 UTC (rev 6286)
+++ trunk/dabo/db/dCursorMixin.py 2010-12-25 14:09:33 UTC (rev 6287)
@@ -1846,8 +1846,10 @@
and an exception is raised.
"""
if (rownum >= self.RowCount) or (rownum < 0):
+ rc = self.RowCount
+ tbl = self.Table
raise dException.dException(
- _("Invalid row specified: %s.
RowCount=%s Table='%s'") % (rownum, self.RowCount, self.Table))
+ _("Invalid row specified: %(rownum)s.
RowCount=%(rc)s Table='%(tbl)s") % locals())
self.RowNumber = rownum
_______________________________________________
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]