moved the locals restoring logic, thanks ozancag

This commit is contained in:
mdipierro
2013-07-14 15:50:23 -05:00
parent af2ae42fdf
commit 5c3d2edf3b
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.07.14.06.05.02
Version 2.6.0-development+timestamp.2013.07.14.15.49.31
+5 -2
View File
@@ -29,8 +29,6 @@ import tempfile
import random
import string
import urllib2
import locale
locale.setlocale(locale.LC_CTYPE, "C") # IMPORTANT, web2py requires locale "C"
try:
import simplejson as sj #external installed library
@@ -74,8 +72,13 @@ import logging.config
# This needed to prevent exception on Python 2.5:
# NameError: name 'gluon' is not defined
# See http://bugs.python.org/issue1436
# attention!, the import Tkinter in messageboxhandler, changes locale ...
import gluon.messageboxhandler
logging.gluon = gluon
# so we must restore it! Thanks ozancag
import locale
locale.setlocale(locale.LC_CTYPE, "C") # IMPORTANT, web2py requires locale "C"
exists = os.path.exists
pjoin = os.path.join