diff -r 044dc196ec8a -r d3668ecd9137 src/ztfy/utils/timezone/utility.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/ztfy/utils/timezone/utility.py Wed Jun 20 16:29:53 2012 +0200 @@ -0,0 +1,38 @@ +### -*- coding: utf-8 -*- #################################################### +############################################################################## +# +# Copyright (c) 2008-2010 Thierry Florac +# All Rights Reserved. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE. +# +############################################################################## + +__docformat__ = "restructuredtext" + +# import standard packages +from persistent import Persistent + +# import Zope3 interfaces + +# import local interfaces +from ztfy.utils.timezone.interfaces import IServerTimezone + +# import Zope3 packages +from zope.container.contained import Contained +from zope.interface import implements +from zope.schema.fieldproperty import FieldProperty + +# import local packages + + +class ServerTimezoneUtility(Persistent, Contained): + + implements(IServerTimezone) + + timezone = FieldProperty(IServerTimezone['timezone'])