[Checkins] SVN: z3ext.formatter/tags/1.2.3/ release tag
Nikolay Kim
fafhrd at datacom.kz
Mon Oct 20 12:59:14 EDT 2008
Log message for revision 92408:
release tag
Changed:
A z3ext.formatter/tags/1.2.3/
D z3ext.formatter/tags/1.2.3/CHANGES.txt
A z3ext.formatter/tags/1.2.3/CHANGES.txt
D z3ext.formatter/tags/1.2.3/buildout.cfg
A z3ext.formatter/tags/1.2.3/buildout.cfg
D z3ext.formatter/tags/1.2.3/i18ncheck.in
A z3ext.formatter/tags/1.2.3/scripts/
U z3ext.formatter/tags/1.2.3/setup.py
D z3ext.formatter/tags/1.2.3/src/z3ext/formatter/fancydatetime.py
A z3ext.formatter/tags/1.2.3/src/z3ext/formatter/fancydatetime.py
A z3ext.formatter/tags/1.2.3/src/z3ext/formatter/locales/en/
A z3ext.formatter/tags/1.2.3/src/z3ext/formatter/locales/nl/
A z3ext.formatter/tags/1.2.3/src/z3ext/formatter/locales/ru/
D z3ext.formatter/tags/1.2.3/src/z3ext/formatter/locales/z3ext.formatter.pot
A z3ext.formatter/tags/1.2.3/src/z3ext/formatter/locales/z3ext.formatter.pot
-=-
Copied: z3ext.formatter/tags/1.2.3 (from rev 92404, z3ext.formatter/trunk)
Deleted: z3ext.formatter/tags/1.2.3/CHANGES.txt
===================================================================
--- z3ext.formatter/trunk/CHANGES.txt 2008-10-20 13:32:46 UTC (rev 92404)
+++ z3ext.formatter/tags/1.2.3/CHANGES.txt 2008-10-20 16:59:13 UTC (rev 92408)
@@ -1,48 +0,0 @@
-=======
-CHANGES
-=======
-
-1.2.2 (2008-10-10)
-------------------
-
-- Use new i18n domain z3ext.formatter
-
-
-1.2.1 (2008-05-16)
-------------------
-
-- Replace 'autoinclude' with 'includeDependendcies'
-
-
-1.2.0 (2008-03-25)
-------------------
-
-- Use z3c.autoinclude
-
-- Code moved to svn.zope.org
-
-
-1.1.2 (2008-03-06)
-------------------
-
-- Fixed bug in fancyDatetime formatter
-
-
-1.1.1 (2008-02-05)
-------------------
-
-- Added 'Timezones' vocabulary
-
-- Cleanup code
-
-
-1.1.0 (2007-12-21)
-------------------
-
-- Added controlpanel configlet
-
-
-1.0.0 (2007-12-07)
-------------------
-
-- Initial release.
Copied: z3ext.formatter/tags/1.2.3/CHANGES.txt (from rev 92407, z3ext.formatter/trunk/CHANGES.txt)
===================================================================
--- z3ext.formatter/tags/1.2.3/CHANGES.txt (rev 0)
+++ z3ext.formatter/tags/1.2.3/CHANGES.txt 2008-10-20 16:59:13 UTC (rev 92408)
@@ -0,0 +1,54 @@
+=======
+CHANGES
+=======
+
+1.2.3 (2008-10-20)
+------------------
+
+- Added translations: nl, ru
+
+
+1.2.2 (2008-10-10)
+------------------
+
+- Use new i18n domain z3ext.formatter
+
+
+1.2.1 (2008-05-16)
+------------------
+
+- Replace 'autoinclude' with 'includeDependendcies'
+
+
+1.2.0 (2008-03-25)
+------------------
+
+- Use z3c.autoinclude
+
+- Code moved to svn.zope.org
+
+
+1.1.2 (2008-03-06)
+------------------
+
+- Fixed bug in fancyDatetime formatter
+
+
+1.1.1 (2008-02-05)
+------------------
+
+- Added 'Timezones' vocabulary
+
+- Cleanup code
+
+
+1.1.0 (2007-12-21)
+------------------
+
+- Added controlpanel configlet
+
+
+1.0.0 (2007-12-07)
+------------------
+
+- Initial release.
Deleted: z3ext.formatter/tags/1.2.3/buildout.cfg
===================================================================
--- z3ext.formatter/trunk/buildout.cfg 2008-10-20 13:32:46 UTC (rev 92404)
+++ z3ext.formatter/tags/1.2.3/buildout.cfg 2008-10-20 16:59:13 UTC (rev 92408)
@@ -1,55 +0,0 @@
-[buildout]
-develop = .
-parts = test coverage-test coverage-report i18n i18ncheck i18ndude
-
-[test]
-recipe = zc.recipe.testrunner
-eggs = z3ext.formatter [test]
-
-
-[coverage-test]
-recipe = zc.recipe.testrunner
-eggs = z3ext.formatter [test]
-defaults = ['--coverage', '../../coverage']
-
-
-[coverage-report]
-recipe = zc.recipe.egg
-eggs = z3c.coverage
-scripts = coverage=coverage-report
-arguments = ('coverage', 'coverage/report')
-
-[i18n]
-recipe = z3c.recipe.i18n:i18n
-packages = z3ext.formatter
-domain = z3ext.formatter
-output = ${buildout:directory}/src/z3ext/formatter/locales
-eggs = z3ext.formatter [test]
-zcml =
- <configure i18n_domain="zope"
- xmlns:zcml="http://namespaces.zope.org/zcml"
- xmlns:browser="http://namespaces.zope.org/browser">
- <include package="zope.component" file="meta.zcml" />
- <include package="zope.securitypolicy" file="meta.zcml" />
- <include package="zope.app.component" file="meta.zcml" />
- <include package="zope.app.security" file="meta.zcml" />
- <include package="zope.app.pagetemplate" file="meta.zcml" />
-
- <include package="zope.securitypolicy" />
- <include package="zope.app.security" />
- <include package="zope.app.zcmlfiles" />
- <include package="zope.app.authentication" />
-
- <include package="z3c.autoinclude" file="meta.zcml" />
- <include package="z3ext.formatter" />
- </configure>
-
-[i18ncheck]
-recipe = buildout_script
-template_dir = ${buildout:directory}/
-template = i18ncheck.in
-
-[i18ndude]
-unzip = true
-recipe = zc.recipe.egg
-eggs = i18ndude
Copied: z3ext.formatter/tags/1.2.3/buildout.cfg (from rev 92407, z3ext.formatter/trunk/buildout.cfg)
===================================================================
--- z3ext.formatter/tags/1.2.3/buildout.cfg (rev 0)
+++ z3ext.formatter/tags/1.2.3/buildout.cfg 2008-10-20 16:59:13 UTC (rev 92408)
@@ -0,0 +1,60 @@
+[buildout]
+develop = .
+parts = test coverage-test coverage-report i18n i18nall i18ncheck i18ndude
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = z3ext.formatter [test]
+
+
+[coverage-test]
+recipe = zc.recipe.testrunner
+eggs = z3ext.formatter [test]
+defaults = ['--coverage', '../../coverage']
+
+
+[coverage-report]
+recipe = zc.recipe.egg
+eggs = z3c.coverage
+scripts = coverage=coverage-report
+arguments = ('coverage', 'coverage/report')
+
+[i18n]
+recipe = z3c.recipe.i18n:i18n
+packages = z3ext.formatter
+domain = z3ext.formatter
+output = ${buildout:directory}/src/z3ext/formatter/locales
+eggs = z3ext.formatter [test]
+zcml =
+ <configure i18n_domain="zope"
+ xmlns:zcml="http://namespaces.zope.org/zcml"
+ xmlns:browser="http://namespaces.zope.org/browser">
+ <include package="zope.component" file="meta.zcml" />
+ <include package="zope.securitypolicy" file="meta.zcml" />
+ <include package="zope.app.component" file="meta.zcml" />
+ <include package="zope.app.security" file="meta.zcml" />
+ <include package="zope.app.pagetemplate" file="meta.zcml" />
+
+ <include package="zope.securitypolicy" />
+ <include package="zope.app.security" />
+ <include package="zope.app.zcmlfiles" />
+ <include package="zope.app.authentication" />
+
+ <include package="z3c.autoinclude" file="meta.zcml" />
+ <include package="z3ext.formatter" />
+ </configure>
+
+[i18nall]
+recipe = buildout_script
+template_dir = ${buildout:directory}/scripts/
+template = i18nall.in
+
+[i18ncheck]
+recipe = buildout_script
+template_dir = ${buildout:directory}/scripts/
+template = i18ncheck.in
+
+[i18ndude]
+unzip = true
+recipe = zc.recipe.egg
+eggs = i18ndude
Deleted: z3ext.formatter/tags/1.2.3/i18ncheck.in
===================================================================
--- z3ext.formatter/trunk/i18ncheck.in 2008-10-20 13:32:46 UTC (rev 92404)
+++ z3ext.formatter/tags/1.2.3/i18ncheck.in 2008-10-20 16:59:13 UTC (rev 92408)
@@ -1,4 +0,0 @@
-#!/bin/sh
-# Startup or shutdown buildbot
-
-bin/i18ndude find-untranslated ./ | grep z3ext.persistentlayout | less
Copied: z3ext.formatter/tags/1.2.3/scripts (from rev 92407, z3ext.formatter/trunk/scripts)
Modified: z3ext.formatter/tags/1.2.3/setup.py
===================================================================
--- z3ext.formatter/trunk/setup.py 2008-10-20 13:32:46 UTC (rev 92404)
+++ z3ext.formatter/tags/1.2.3/setup.py 2008-10-20 16:59:13 UTC (rev 92408)
@@ -21,7 +21,7 @@
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
-version = '1.2.3dev'
+version = '1.2.3'
setup(name='z3ext.formatter',
Deleted: z3ext.formatter/tags/1.2.3/src/z3ext/formatter/fancydatetime.py
===================================================================
--- z3ext.formatter/trunk/src/z3ext/formatter/fancydatetime.py 2008-10-20 13:32:46 UTC (rev 92404)
+++ z3ext.formatter/tags/1.2.3/src/z3ext/formatter/fancydatetime.py 2008-10-20 16:59:13 UTC (rev 92408)
@@ -1,99 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2007 Zope Corporation and Contributors.
-# 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.
-#
-##############################################################################
-""" ``fancyDatetime`` formatter implementation
-
-$Id$
-"""
-
-from pytz import utc, timezone
-from datetime import datetime
-from zope import interface, component
-from zope.component import getUtility
-from zope.interface.common.idatetime import ITZInfo
-from zope.publisher.interfaces.http import IHTTPRequest
-
-from interfaces import _, IFormatter, IFormatterFactory, IFormatterConfiglet
-
-
-class FancyDatetimeFormatter(object):
- interface.implements(IFormatter)
-
- def __init__(self, request, *args):
- try:
- self.tp = args[0]
- except:
- self.tp = 'medium'
-
- self.request = request
- self.formatter = request.locale.dates.getFormatter('dateTime', self.tp)
-
- def format(self, value):
- formatter = self.formatter
-
- configlet = getUtility(IFormatterConfiglet)
- tz = None
- if configlet.principalTimezone:
- tz = ITZInfo(self.request.principal, None)
-
- if tz is None:
- tz = timezone(configlet.timezone)
-
- if value.tzinfo is None:
- value = datetime(value.year, value.month, value.day, value.hour,
- value.minute, value.second, value.microsecond, utc)
-
- value = value.astimezone(tz)
-
- timezoneFormat = configlet.timezoneFormat
-
- d1 = datetime.now(utc).date()
- d2 = value.astimezone(utc).date()
-
- delta = d1 - d2
-
- if delta.days == 0:
- pattern = formatter.getPattern()
- pos = pattern.find('h')
- if pos < 0:
- pos = pattern.find('H')
-
- formatter.setPattern("'%s '"%_(u'Today at') + pattern[pos:])
-
- if delta.days == 1:
- pattern = formatter.getPattern()
- pos = pattern.find('h')
- if pos < 0:
- pos = pattern.find('H')
-
- formatter.setPattern("'%s '"%_(u'Yesterday at') + pattern[pos:])
-
- if timezoneFormat == 3:
- if self.tp in ('full',):
- formatter.setPattern(
- formatter.getPattern().replace('z', '').strip())
- formatted = formatter.format(value)
- return u'%s %s'%(formatted, tz.zone)
-
- return formatter.format(value)
-
-
-class FancyDatetimeFormatterFactory(object):
- component.adapts(IHTTPRequest)
- interface.implements(IFormatterFactory)
-
- def __init__(self, request):
- self.request = request
-
- def __call__(self, *args, **kw):
- return FancyDatetimeFormatter(self.request, *args)
Copied: z3ext.formatter/tags/1.2.3/src/z3ext/formatter/fancydatetime.py (from rev 92407, z3ext.formatter/trunk/src/z3ext/formatter/fancydatetime.py)
===================================================================
--- z3ext.formatter/tags/1.2.3/src/z3ext/formatter/fancydatetime.py (rev 0)
+++ z3ext.formatter/tags/1.2.3/src/z3ext/formatter/fancydatetime.py 2008-10-20 16:59:13 UTC (rev 92408)
@@ -0,0 +1,103 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Corporation and Contributors.
+# 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.
+#
+##############################################################################
+""" ``fancyDatetime`` formatter implementation
+
+$Id$
+"""
+
+from pytz import utc, timezone
+from datetime import datetime
+from zope import interface, component
+from zope.component import getUtility
+from zope.interface.common.idatetime import ITZInfo
+from zope.publisher.interfaces.http import IHTTPRequest
+
+from interfaces import _, IFormatter, IFormatterFactory, IFormatterConfiglet
+
+
+class FancyDatetimeFormatter(object):
+ interface.implements(IFormatter)
+
+ def __init__(self, request, *args):
+ try:
+ self.tp = args[0]
+ except:
+ self.tp = 'medium'
+
+ self.request = request
+ self.formatter = request.locale.dates.getFormatter('dateTime', self.tp)
+
+ def format(self, value):
+ formatter = self.formatter
+
+ configlet = getUtility(IFormatterConfiglet)
+ tz = None
+ if configlet.principalTimezone:
+ tz = ITZInfo(self.request.principal, None)
+
+ if tz is None:
+ tz = timezone(configlet.timezone)
+
+ if value.tzinfo is None:
+ value = datetime(value.year, value.month, value.day, value.hour,
+ value.minute, value.second, value.microsecond, utc)
+
+ value = value.astimezone(tz)
+
+ timezoneFormat = configlet.timezoneFormat
+
+ d1 = datetime.now(utc).date()
+ d2 = value.astimezone(utc).date()
+
+ delta = d1 - d2
+
+ if delta.days == 0:
+ pattern = formatter.getPattern()
+ pos = pattern.find('h')
+ if pos < 0:
+ pos = pattern.find('H')
+
+ formatter.setPattern(pattern[pos:])
+ return _(u'Today at ${value}',
+ mapping={'value': formatter.format(value)})
+
+ if delta.days == 1:
+ pattern = formatter.getPattern()
+ pos = pattern.find('h')
+ if pos < 0:
+ pos = pattern.find('H')
+
+ formatter.setPattern(pattern[pos:])
+ return _(u'Yesterday at ${value}',
+ mapping={'value': formatter.format(value)})
+
+ if timezoneFormat == 3:
+ if self.tp in ('full',):
+ formatter.setPattern(
+ formatter.getPattern().replace('z', '').strip())
+ formatted = formatter.format(value)
+ return u'%s %s'%(formatted, tz.zone)
+
+ return formatter.format(value)
+
+
+class FancyDatetimeFormatterFactory(object):
+ component.adapts(IHTTPRequest)
+ interface.implements(IFormatterFactory)
+
+ def __init__(self, request):
+ self.request = request
+
+ def __call__(self, *args, **kw):
+ return FancyDatetimeFormatter(self.request, *args)
Copied: z3ext.formatter/tags/1.2.3/src/z3ext/formatter/locales/en (from rev 92407, z3ext.formatter/trunk/src/z3ext/formatter/locales/en)
Copied: z3ext.formatter/tags/1.2.3/src/z3ext/formatter/locales/nl (from rev 92407, z3ext.formatter/trunk/src/z3ext/formatter/locales/nl)
Copied: z3ext.formatter/tags/1.2.3/src/z3ext/formatter/locales/ru (from rev 92407, z3ext.formatter/trunk/src/z3ext/formatter/locales/ru)
Deleted: z3ext.formatter/tags/1.2.3/src/z3ext/formatter/locales/z3ext.formatter.pot
===================================================================
--- z3ext.formatter/trunk/src/z3ext/formatter/locales/z3ext.formatter.pot 2008-10-20 13:32:46 UTC (rev 92404)
+++ z3ext.formatter/tags/1.2.3/src/z3ext/formatter/locales/z3ext.formatter.pot 2008-10-20 16:59:13 UTC (rev 92408)
@@ -1,74 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2003-2004 Zope Corporation and Contributors.
-# 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.
-#
-##############################################################################
-msgid ""
-msgstr ""
-"Project-Id-Version: Development/Unknown\n"
-"POT-Creation-Date: Fri Oct 10 15:00:54 2008\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: zope/app/locales/extract.py\n"
-
-#: src/z3ext/formatter/configure.zcml:26
-msgid "Configure portal formatters."
-msgstr ""
-
-#: src/z3ext/formatter/configure.zcml:26
-msgid "Portal formatters"
-msgstr ""
-
-#: src/z3ext/formatter/fancydatetime.py:71
-msgid "Today at"
-msgstr ""
-
-#: src/z3ext/formatter/fancydatetime.py:79
-msgid "Yesterday at"
-msgstr ""
-
-#: src/z3ext/formatter/interfaces.py:36
-msgid "Timezone"
-msgstr ""
-
-#: src/z3ext/formatter/interfaces.py:37
-msgid "Portal timezone."
-msgstr ""
-
-#: src/z3ext/formatter/interfaces.py:43
-#: src/z3ext/formatter/interfaces.py:44
-msgid "Timezone format"
-msgstr ""
-
-#: src/z3ext/formatter/interfaces.py:50
-msgid "Use principal timezone"
-msgstr ""
-
-#: src/z3ext/formatter/interfaces.py:51
-msgid "Render datetime with user selected timezone."
-msgstr ""
-
-#: src/z3ext/formatter/vocabulary.py:28
-msgid "No timezone"
-msgstr ""
-
-#: src/z3ext/formatter/vocabulary.py:29
-msgid "Number of hours"
-msgstr ""
-
-#: src/z3ext/formatter/vocabulary.py:30
-msgid "Timezone name"
-msgstr ""
-
Copied: z3ext.formatter/tags/1.2.3/src/z3ext/formatter/locales/z3ext.formatter.pot (from rev 92407, z3ext.formatter/trunk/src/z3ext/formatter/locales/z3ext.formatter.pot)
===================================================================
--- z3ext.formatter/tags/1.2.3/src/z3ext/formatter/locales/z3ext.formatter.pot (rev 0)
+++ z3ext.formatter/tags/1.2.3/src/z3ext/formatter/locales/z3ext.formatter.pot 2008-10-20 16:59:13 UTC (rev 92408)
@@ -0,0 +1,76 @@
+##############################################################################
+#
+# Copyright (c) 2003-2004 Zope Corporation and Contributors.
+# 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.
+#
+##############################################################################
+msgid ""
+msgstr ""
+"Project-Id-Version: Development/Unknown\n"
+"POT-Creation-Date: Mon Oct 20 22:53:40 2008\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: zope/app/locales/extract.py\n"
+
+#: src/z3ext/formatter/configure.zcml:26
+msgid "Configure portal formatters."
+msgstr ""
+
+#: src/z3ext/formatter/configure.zcml:26
+msgid "Portal formatters"
+msgstr ""
+
+#: src/z3ext/formatter/fancydatetime.py:72
+#. Default: ""
+msgid "Today at ${value}"
+msgstr ""
+
+#: src/z3ext/formatter/fancydatetime.py:82
+#. Default: ""
+msgid "Yesterday at ${value}"
+msgstr ""
+
+#: src/z3ext/formatter/interfaces.py:35
+msgid "Timezone"
+msgstr ""
+
+#: src/z3ext/formatter/interfaces.py:36
+msgid "Portal timezone."
+msgstr ""
+
+#: src/z3ext/formatter/interfaces.py:42
+#: src/z3ext/formatter/interfaces.py:43
+msgid "Timezone format"
+msgstr ""
+
+#: src/z3ext/formatter/interfaces.py:49
+msgid "Use principal timezone"
+msgstr ""
+
+#: src/z3ext/formatter/interfaces.py:50
+msgid "Render datetime with user selected timezone."
+msgstr ""
+
+#: src/z3ext/formatter/vocabulary.py:28
+msgid "No timezone"
+msgstr ""
+
+#: src/z3ext/formatter/vocabulary.py:29
+msgid "Number of hours"
+msgstr ""
+
+#: src/z3ext/formatter/vocabulary.py:30
+msgid "Timezone name"
+msgstr ""
+
More information about the Checkins
mailing list