[Erp5-report] r17621 - in /erp5/trunk/products/ERP5Type: Utils.py __init__.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Nov 15 12:38:38 CET 2007
Author: ivan
Date: Thu Nov 15 12:38:38 2007
New Revision: 17621
URL: http://svn.erp5.org?rev=17621&view=rev
Log:
Initial implementation of timezone support for ERP5.
Modified:
erp5/trunk/products/ERP5Type/Utils.py
erp5/trunk/products/ERP5Type/__init__.py
Modified: erp5/trunk/products/ERP5Type/Utils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Utils.py?rev=17621&r1=17620&r2=17621&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py (original)
+++ erp5/trunk/products/ERP5Type/Utils.py Thu Nov 15 12:38:38 2007
@@ -2494,3 +2494,13 @@
Wait for a given time
"""
time.sleep(t)
+
+
+#####################################################
+# Timezones
+#####################################################
+
+def getCommonTimeZoneList():
+ """ Get common (country/capital(major cities) format) timezones list """
+ from pytz import common_timezones
+ return common_timezones
Modified: erp5/trunk/products/ERP5Type/__init__.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/__init__.py?rev=17621&r1=17620&r2=17621&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/__init__.py (original)
+++ erp5/trunk/products/ERP5Type/__init__.py Thu Nov 15 12:38:38 2007
@@ -95,7 +95,7 @@
allow_module('Products.ERP5Type.Cache')
ModuleSecurityInfo('Products.ERP5Type.Utils').declarePublic(
'sortValueList', 'convertToUpperCase', 'UpperCase',
- 'convertToMixedCase', 'cartesianProduct', 'sleep')
+ 'convertToMixedCase', 'cartesianProduct', 'sleep', 'getCommonTimeZoneList')
allow_module('Products.ERP5Type.Message')
allow_module('Products.ERP5Type.Error')
More information about the Erp5-report
mailing list