dabo Commit
Revision 6251
Date: 2010-12-17 11:27:16 -0800 (Fri, 17 Dec 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6251
Changed:
U trunk/dabo/__init__.py
Log:
Need to initialize localization services *after* the logging system is in
place, or dLocalize will cause a traceback when trying to log problems.
Diff:
Modified: trunk/dabo/__init__.py
===================================================================
--- trunk/dabo/__init__.py 2010-12-16 23:13:17 UTC (rev 6250)
+++ trunk/dabo/__init__.py 2010-12-17 19:27:16 UTC (rev 6251)
@@ -142,17 +142,7 @@
return ret
-# Install localization service for dabo. dApp will install localization service
-# for the user application separately.
-import dLocalize
-dLocalize.install("dabo")
-# On some platforms getfilesystemencoding() and even getdefaultlocale()
-# can return None, so we make sure we always set a reasonable encoding:
-# NOTE: 'defaultEncoding' is imported from 'from settings import *' line above.
-fileSystemEncoding = (sys.getfilesystemencoding()
- or locale.getdefaultlocale()[1] or defaultEncoding)
-
# These are the various standard log handlers.
consoleLogHandler = fileLogHandler = None
dbConsoleLogHandler = dbFileLogHandler = None
@@ -281,7 +271,17 @@
dabo.dbFileLogHandler.setFormatter(dabo.dbFileFormatter)
dabo.dbActivityLog.addHandler(dabo.dbFileLogHandler)
+# Install localization service for dabo. dApp will install localization service
+# for the user application separately.
+import dLocalize
+dLocalize.install("dabo")
+# On some platforms getfilesystemencoding() and even getdefaultlocale()
+# can return None, so we make sure we always set a reasonable encoding:
+# NOTE: 'defaultEncoding' is imported from 'from settings import *' line above.
+fileSystemEncoding = (sys.getfilesystemencoding()
+ or locale.getdefaultlocale()[1] or defaultEncoding)
+
from __version__ import version
import dColors
import dEvents
_______________________________________________
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]