[Zope-Checkins] SVN: Zope/trunk/lib/python/DateTime/DateTime.py -
Make it work standalone, in the absence of App.config
Sidnei da Silva
sidnei at awkly.org
Mon May 2 14:42:21 EDT 2005
Log message for revision 30230:
- Make it work standalone, in the absence of App.config
Changed:
U Zope/trunk/lib/python/DateTime/DateTime.py
-=-
Modified: Zope/trunk/lib/python/DateTime/DateTime.py
===================================================================
--- Zope/trunk/lib/python/DateTime/DateTime.py 2005-05-02 15:34:06 UTC (rev 30229)
+++ Zope/trunk/lib/python/DateTime/DateTime.py 2005-05-02 18:42:20 UTC (rev 30230)
@@ -19,14 +19,13 @@
from time import time, gmtime, localtime
from time import daylight, timezone, altzone, strftime
-from App.config import getConfiguration
-
default_datefmt = None
def getDefaultDateFormat():
global default_datefmt
if default_datefmt is None:
try:
+ from App.config import getConfiguration
default_datefmt = getConfiguration().datetime_format
return default_datefmt
except:
More information about the Zope-Checkins
mailing list