# HG changeset patch # User Thierry Florac # Date 1323700370 -3600 # Node ID 824f49d5488e197d8b094c274b3db1a321bc163c # Parent 35dc4fc94bcc2b83fa604cc3ab42d851472d60a5# Parent 6f0fb6086bf396ea9083db6edd5d468612f85be0 Merge with 6f0fb6086bf396ea9083db6edd5d468612f85be0 diff -r 6f0fb6086bf3 -r 824f49d5488e .hgtags --- a/.hgtags Mon Dec 12 15:31:23 2011 +0100 +++ b/.hgtags Mon Dec 12 15:32:50 2011 +0100 @@ -4,3 +4,8 @@ 35d95d221249504767e536df4aca0c012be147ad 0.3.0 a8072195e0c6b9a9da43c1ec4239f08cdd0617cb 0.3.1 96e344fe61666bcf26f9f0529f6efd761ab11b28 0.3.2 +165f37f89e5a3f5763cc59125d47e4cd7fc38ae6 0.3.3 +a5fb6eed0a5db4e41df94bb0ce773def9f07fe23 0.3.4 +a5fb6eed0a5db4e41df94bb0ce773def9f07fe23 0.3.4 +b3da56845f2a348d6884381d19ed3215727d18f1 0.3.4 +6c12e94bb5c78fbfa9b31180ddc4990097cde3a5 0.3.5 diff -r 6f0fb6086bf3 -r 824f49d5488e .pydevproject --- a/.pydevproject Mon Dec 12 15:31:23 2011 +0100 +++ b/.pydevproject Mon Dec 12 15:32:50 2011 +0100 @@ -2,10 +2,42 @@ -python 2.5 +python 2.6 -/ZTFY.utils (hg)/ztfy +/ZTFY.utils (hg) -Python 2.5 +Python 2.6 (BB) + +/var/local/eggs/zope.testing-3.10.2-py2.6.egg +/var/local/eggs/zope.tales-3.5.1-py2.6.egg +/var/local/eggs/zope.interface-3.6.1-py2.6-linux-x86_64.egg +/var/local/eggs/zope.datetime-3.4.0-py2.6.egg +/var/local/eggs/zope.i18n-3.7.4-py2.6.egg +/var/local/eggs/z3c.form-2.4.3-py2.6.egg +/var/local/eggs/zope.app.file-3.6.1-py2.6.egg +/var/local/eggs/zope.schema-3.7.1-py2.6.egg +/var/local/eggs/zope.component-3.10.0-py2.6.egg +/var/local/eggs/zope.annotation-3.5.0-py2.6.egg +/var/local/eggs/zope.catalog-3.8.1-py2.6.egg +/var/local/eggs/zope.container-3.12.0-py2.6-linux-x86_64.egg +/var/local/eggs/zope.intid-3.7.2-py2.6.egg +/var/local/eggs/zope.publisher-3.12.6-py2.6.egg +/var/local/eggs/zope.security-3.8.0-py2.6-linux-x86_64.egg +/var/local/eggs/ZODB3-3.10.2-py2.6-linux-x86_64.egg +/var/local/eggs/zc.set-0.1dev_r75642-py2.6.egg +/var/local/eggs/zope.session-3.9.3-py2.6.egg +/var/local/eggs/zope.location-3.9.0-py2.6.egg +/var/local/eggs/zope.index-3.6.1-py2.6-linux-x86_64.egg +/var/local/eggs/zopyx.txng3.core-3.5.3-py2.6.egg +/var/local/eggs/zopyx.txng3.ext-3.3.2-py2.6-linux-x86_64.egg +/var/local/eggs/hurry.query-1.1.0-py2.6.egg +/var/local/eggs/pytz-2010l-py2.6.egg +/var/local/eggs/zope.authentication-3.7.1-py2.6.egg +/var/local/eggs/zc.set-0.1dev_r75642-py2.6.egg +/var/local/eggs/zope.pluggableauth-1.2-py2.6.egg +/var/local/eggs/zc.set-0.1dev_r75642-py2.6.egg +/var/local/eggs/zope.deprecation-3.4.1-py2.6.egg +/var/local/eggs/fanstatic-0.11.3-py2.6.egg + diff -r 6f0fb6086bf3 -r 824f49d5488e .settings/org.eclipse.core.resources.prefs --- a/.settings/org.eclipse.core.resources.prefs Mon Dec 12 15:31:23 2011 +0100 +++ b/.settings/org.eclipse.core.resources.prefs Mon Dec 12 15:32:50 2011 +0100 @@ -1,4 +1,4 @@ -#Tue Oct 18 08:26:00 CEST 2011 +#Sun Nov 20 00:28:15 CET 2011 eclipse.preferences.version=1 encoding//build/lib/ztfy/utils/site.py=utf-8 encoding//build/lib/ztfy/utils/tal/html.py=utf-8 @@ -18,6 +18,7 @@ encoding//ztfy/utils/security.py=utf-8 encoding//ztfy/utils/session.py=utf-8 encoding//ztfy/utils/site.py=utf-8 +encoding//ztfy/utils/tal/fanstatic.py=utf-8 encoding//ztfy/utils/tal/html.py=utf-8 encoding//ztfy/utils/tal/interfaces.py=utf-8 encoding//ztfy/utils/tal/request.py=utf-8 diff -r 6f0fb6086bf3 -r 824f49d5488e bin/i18ncompile --- a/bin/i18ncompile Mon Dec 12 15:31:23 2011 +0100 +++ b/bin/i18ncompile Mon Dec 12 15:32:50 2011 +0100 @@ -2,13 +2,13 @@ import sys sys.path[0:0] = [ - '/var/local/src/ztfy-bb/ztfy.utils', + '/var/local/eggs/ztfy.utils-0.3.4-py2.6.egg', '/var/local/eggs/z3c.recipe.i18n-0.6.0-py2.6.egg', '/var/local/eggs/zope.app.locales-3.6.2-py2.6.egg', '/var/local/eggs/zope.app.appsetup-3.15.0-py2.6.egg', '/var/local/eggs/zope.app.applicationcontrol-3.5.9-py2.6.egg', '/var/local/eggs/zope.tal-3.5.2-py2.6.egg', - '/var/local/eggs/zope.interface-3.6.3-py2.6-linux-x86_64.egg', + '/var/local/eggs/zope.interface-3.7.0-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.i18nmessageid-3.5.3-py2.6-linux-x86_64.egg', '/var/local/env/bb-2.6/lib/python2.6/site-packages/distribute-0.6.19-py2.6.egg', '/var/local/eggs/zope.configuration-3.7.4-py2.6.egg', @@ -16,7 +16,7 @@ '/var/local/eggs/zc.buildout-1.5.2-py2.6.egg', '/var/local/eggs/zopyx.txng3.core-3.5.3-py2.6.egg', '/var/local/eggs/zope.tales-3.5.1-py2.6.egg', - '/var/local/eggs/zope.session-3.9.4-py2.6.egg', + '/var/local/eggs/zope.session-3.9.5-py2.6.egg', '/var/local/eggs/zope.security-3.8.3-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.schema-3.7.1-py2.6.egg', '/var/local/eggs/zope.publisher-3.12.6-py2.6.egg', @@ -35,10 +35,11 @@ '/var/local/eggs/z3c.form-2.4.3-py2.6.egg', '/var/local/eggs/pytz-2011g-py2.6.egg', '/var/local/eggs/hurry.query-1.1.0-py2.6.egg', + '/var/local/eggs/fanstatic-0.11.3-py2.6.egg', '/var/local/eggs/zope.traversing-3.14.0-py2.6.egg', '/var/local/eggs/zope.site-3.9.2-py2.6.egg', '/var/local/eggs/zope.processlifetime-1.0-py2.6.egg', - '/var/local/eggs/zope.event-3.5.0_1-py2.6.egg', + '/var/local/eggs/zope.event-3.5.1-py2.6.egg', '/var/local/eggs/zope.error-3.7.2-py2.6.egg', '/var/local/eggs/zope.app.publication-3.12.0-py2.6.egg', '/var/local/eggs/ZODB3-3.10.3-py2.6-linux-x86_64.egg', @@ -48,7 +49,7 @@ '/var/local/eggs/zope.minmax-1.1.2-py2.6.egg', '/var/local/eggs/zope.proxy-3.6.1-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.exceptions-3.6.1-py2.6.egg', - '/var/local/eggs/zope.contenttype-3.5.3-py2.6.egg', + '/var/local/eggs/zope.contenttype-3.5.5-py2.6.egg', '/var/local/eggs/zope.browser-1.3-py2.6.egg', '/var/local/eggs/zope.keyreference-3.6.2-py2.6.egg', '/var/local/eggs/zope.lifecycleevent-3.6.2-py2.6.egg', @@ -57,22 +58,23 @@ '/var/local/eggs/zope.dottedname-3.4.6-py2.6.egg', '/var/local/eggs/zope.dublincore-3.8.2-py2.6.egg', '/var/local/eggs/transaction-1.1.1-py2.6.egg', - '/var/local/eggs/zope.app.component-3.9.2-py2.6.egg', + '/var/local/eggs/zope.app.component-3.9.3-py2.6.egg', '/var/local/eggs/zope.app.container-3.9.1-py2.6.egg', '/var/local/eggs/zope.pluggableauth-1.2-py2.6.egg', '/var/local/eggs/zope.password-3.6.1-py2.6.egg', - '/var/local/eggs/zope.formlib-4.0.5-py2.6.egg', + '/var/local/eggs/zope.formlib-4.0.6-py2.6.egg', '/var/local/eggs/zope.authentication-3.7.1-py2.6.egg', '/var/local/eggs/zope.app.folder-3.5.2-py2.6.egg', '/var/local/eggs/zope.pagetemplate-3.5.2-py2.6.egg', '/var/local/eggs/zope.contentprovider-3.7.2-py2.6.egg', '/var/local/eggs/zc.catalog-1.5-py2.6.egg', + '/var/local/eggs/WebOb-1.2b2-py2.6.egg', + '/var/local/env/bb-2.6/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg', '/var/local/eggs/zdaemon-2.0.4-py2.6.egg', '/var/local/eggs/ZConfig-2.8.0-py2.6.egg', '/var/local/eggs/zc.lockfile-1.0.0-py2.6.egg', '/var/local/eggs/zope.componentvocabulary-1.0.1-py2.6.egg', '/var/local/eggs/zope.deprecation-3.4.1-py2.6.egg', - '/var/local/eggs/zope.cachedescriptors-3.5.1-py2.6.egg', '/var/local/eggs/zope.app.pagetemplate-3.11.2-py2.6.egg', '/var/local/eggs/zope.app.publisher-3.10.2-py2.6.egg', '/var/local/eggs/zope.copypastemove-3.8.0-py2.6.egg', diff -r 6f0fb6086bf3 -r 824f49d5488e bin/i18nextract --- a/bin/i18nextract Mon Dec 12 15:31:23 2011 +0100 +++ b/bin/i18nextract Mon Dec 12 15:32:50 2011 +0100 @@ -2,13 +2,13 @@ import sys sys.path[0:0] = [ - '/var/local/src/ztfy-bb/ztfy.utils', + '/var/local/eggs/ztfy.utils-0.3.4-py2.6.egg', '/var/local/eggs/z3c.recipe.i18n-0.6.0-py2.6.egg', '/var/local/eggs/zope.app.locales-3.6.2-py2.6.egg', '/var/local/eggs/zope.app.appsetup-3.15.0-py2.6.egg', '/var/local/eggs/zope.app.applicationcontrol-3.5.9-py2.6.egg', '/var/local/eggs/zope.tal-3.5.2-py2.6.egg', - '/var/local/eggs/zope.interface-3.6.3-py2.6-linux-x86_64.egg', + '/var/local/eggs/zope.interface-3.7.0-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.i18nmessageid-3.5.3-py2.6-linux-x86_64.egg', '/var/local/env/bb-2.6/lib/python2.6/site-packages/distribute-0.6.19-py2.6.egg', '/var/local/eggs/zope.configuration-3.7.4-py2.6.egg', @@ -16,7 +16,7 @@ '/var/local/eggs/zc.buildout-1.5.2-py2.6.egg', '/var/local/eggs/zopyx.txng3.core-3.5.3-py2.6.egg', '/var/local/eggs/zope.tales-3.5.1-py2.6.egg', - '/var/local/eggs/zope.session-3.9.4-py2.6.egg', + '/var/local/eggs/zope.session-3.9.5-py2.6.egg', '/var/local/eggs/zope.security-3.8.3-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.schema-3.7.1-py2.6.egg', '/var/local/eggs/zope.publisher-3.12.6-py2.6.egg', @@ -35,10 +35,11 @@ '/var/local/eggs/z3c.form-2.4.3-py2.6.egg', '/var/local/eggs/pytz-2011g-py2.6.egg', '/var/local/eggs/hurry.query-1.1.0-py2.6.egg', + '/var/local/eggs/fanstatic-0.11.3-py2.6.egg', '/var/local/eggs/zope.traversing-3.14.0-py2.6.egg', '/var/local/eggs/zope.site-3.9.2-py2.6.egg', '/var/local/eggs/zope.processlifetime-1.0-py2.6.egg', - '/var/local/eggs/zope.event-3.5.0_1-py2.6.egg', + '/var/local/eggs/zope.event-3.5.1-py2.6.egg', '/var/local/eggs/zope.error-3.7.2-py2.6.egg', '/var/local/eggs/zope.app.publication-3.12.0-py2.6.egg', '/var/local/eggs/ZODB3-3.10.3-py2.6-linux-x86_64.egg', @@ -48,7 +49,7 @@ '/var/local/eggs/zope.minmax-1.1.2-py2.6.egg', '/var/local/eggs/zope.proxy-3.6.1-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.exceptions-3.6.1-py2.6.egg', - '/var/local/eggs/zope.contenttype-3.5.3-py2.6.egg', + '/var/local/eggs/zope.contenttype-3.5.5-py2.6.egg', '/var/local/eggs/zope.browser-1.3-py2.6.egg', '/var/local/eggs/zope.keyreference-3.6.2-py2.6.egg', '/var/local/eggs/zope.lifecycleevent-3.6.2-py2.6.egg', @@ -57,22 +58,23 @@ '/var/local/eggs/zope.dottedname-3.4.6-py2.6.egg', '/var/local/eggs/zope.dublincore-3.8.2-py2.6.egg', '/var/local/eggs/transaction-1.1.1-py2.6.egg', - '/var/local/eggs/zope.app.component-3.9.2-py2.6.egg', + '/var/local/eggs/zope.app.component-3.9.3-py2.6.egg', '/var/local/eggs/zope.app.container-3.9.1-py2.6.egg', '/var/local/eggs/zope.pluggableauth-1.2-py2.6.egg', '/var/local/eggs/zope.password-3.6.1-py2.6.egg', - '/var/local/eggs/zope.formlib-4.0.5-py2.6.egg', + '/var/local/eggs/zope.formlib-4.0.6-py2.6.egg', '/var/local/eggs/zope.authentication-3.7.1-py2.6.egg', '/var/local/eggs/zope.app.folder-3.5.2-py2.6.egg', '/var/local/eggs/zope.pagetemplate-3.5.2-py2.6.egg', '/var/local/eggs/zope.contentprovider-3.7.2-py2.6.egg', '/var/local/eggs/zc.catalog-1.5-py2.6.egg', + '/var/local/eggs/WebOb-1.2b2-py2.6.egg', + '/var/local/env/bb-2.6/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg', '/var/local/eggs/zdaemon-2.0.4-py2.6.egg', '/var/local/eggs/ZConfig-2.8.0-py2.6.egg', '/var/local/eggs/zc.lockfile-1.0.0-py2.6.egg', '/var/local/eggs/zope.componentvocabulary-1.0.1-py2.6.egg', '/var/local/eggs/zope.deprecation-3.4.1-py2.6.egg', - '/var/local/eggs/zope.cachedescriptors-3.5.1-py2.6.egg', '/var/local/eggs/zope.app.pagetemplate-3.11.2-py2.6.egg', '/var/local/eggs/zope.app.publisher-3.10.2-py2.6.egg', '/var/local/eggs/zope.copypastemove-3.8.0-py2.6.egg', diff -r 6f0fb6086bf3 -r 824f49d5488e bin/i18nmergeall --- a/bin/i18nmergeall Mon Dec 12 15:31:23 2011 +0100 +++ b/bin/i18nmergeall Mon Dec 12 15:32:50 2011 +0100 @@ -2,13 +2,13 @@ import sys sys.path[0:0] = [ - '/var/local/src/ztfy-bb/ztfy.utils', + '/var/local/eggs/ztfy.utils-0.3.4-py2.6.egg', '/var/local/eggs/z3c.recipe.i18n-0.6.0-py2.6.egg', '/var/local/eggs/zope.app.locales-3.6.2-py2.6.egg', '/var/local/eggs/zope.app.appsetup-3.15.0-py2.6.egg', '/var/local/eggs/zope.app.applicationcontrol-3.5.9-py2.6.egg', '/var/local/eggs/zope.tal-3.5.2-py2.6.egg', - '/var/local/eggs/zope.interface-3.6.3-py2.6-linux-x86_64.egg', + '/var/local/eggs/zope.interface-3.7.0-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.i18nmessageid-3.5.3-py2.6-linux-x86_64.egg', '/var/local/env/bb-2.6/lib/python2.6/site-packages/distribute-0.6.19-py2.6.egg', '/var/local/eggs/zope.configuration-3.7.4-py2.6.egg', @@ -16,7 +16,7 @@ '/var/local/eggs/zc.buildout-1.5.2-py2.6.egg', '/var/local/eggs/zopyx.txng3.core-3.5.3-py2.6.egg', '/var/local/eggs/zope.tales-3.5.1-py2.6.egg', - '/var/local/eggs/zope.session-3.9.4-py2.6.egg', + '/var/local/eggs/zope.session-3.9.5-py2.6.egg', '/var/local/eggs/zope.security-3.8.3-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.schema-3.7.1-py2.6.egg', '/var/local/eggs/zope.publisher-3.12.6-py2.6.egg', @@ -35,10 +35,11 @@ '/var/local/eggs/z3c.form-2.4.3-py2.6.egg', '/var/local/eggs/pytz-2011g-py2.6.egg', '/var/local/eggs/hurry.query-1.1.0-py2.6.egg', + '/var/local/eggs/fanstatic-0.11.3-py2.6.egg', '/var/local/eggs/zope.traversing-3.14.0-py2.6.egg', '/var/local/eggs/zope.site-3.9.2-py2.6.egg', '/var/local/eggs/zope.processlifetime-1.0-py2.6.egg', - '/var/local/eggs/zope.event-3.5.0_1-py2.6.egg', + '/var/local/eggs/zope.event-3.5.1-py2.6.egg', '/var/local/eggs/zope.error-3.7.2-py2.6.egg', '/var/local/eggs/zope.app.publication-3.12.0-py2.6.egg', '/var/local/eggs/ZODB3-3.10.3-py2.6-linux-x86_64.egg', @@ -48,7 +49,7 @@ '/var/local/eggs/zope.minmax-1.1.2-py2.6.egg', '/var/local/eggs/zope.proxy-3.6.1-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.exceptions-3.6.1-py2.6.egg', - '/var/local/eggs/zope.contenttype-3.5.3-py2.6.egg', + '/var/local/eggs/zope.contenttype-3.5.5-py2.6.egg', '/var/local/eggs/zope.browser-1.3-py2.6.egg', '/var/local/eggs/zope.keyreference-3.6.2-py2.6.egg', '/var/local/eggs/zope.lifecycleevent-3.6.2-py2.6.egg', @@ -57,22 +58,23 @@ '/var/local/eggs/zope.dottedname-3.4.6-py2.6.egg', '/var/local/eggs/zope.dublincore-3.8.2-py2.6.egg', '/var/local/eggs/transaction-1.1.1-py2.6.egg', - '/var/local/eggs/zope.app.component-3.9.2-py2.6.egg', + '/var/local/eggs/zope.app.component-3.9.3-py2.6.egg', '/var/local/eggs/zope.app.container-3.9.1-py2.6.egg', '/var/local/eggs/zope.pluggableauth-1.2-py2.6.egg', '/var/local/eggs/zope.password-3.6.1-py2.6.egg', - '/var/local/eggs/zope.formlib-4.0.5-py2.6.egg', + '/var/local/eggs/zope.formlib-4.0.6-py2.6.egg', '/var/local/eggs/zope.authentication-3.7.1-py2.6.egg', '/var/local/eggs/zope.app.folder-3.5.2-py2.6.egg', '/var/local/eggs/zope.pagetemplate-3.5.2-py2.6.egg', '/var/local/eggs/zope.contentprovider-3.7.2-py2.6.egg', '/var/local/eggs/zc.catalog-1.5-py2.6.egg', + '/var/local/eggs/WebOb-1.2b2-py2.6.egg', + '/var/local/env/bb-2.6/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg', '/var/local/eggs/zdaemon-2.0.4-py2.6.egg', '/var/local/eggs/ZConfig-2.8.0-py2.6.egg', '/var/local/eggs/zc.lockfile-1.0.0-py2.6.egg', '/var/local/eggs/zope.componentvocabulary-1.0.1-py2.6.egg', '/var/local/eggs/zope.deprecation-3.4.1-py2.6.egg', - '/var/local/eggs/zope.cachedescriptors-3.5.1-py2.6.egg', '/var/local/eggs/zope.app.pagetemplate-3.11.2-py2.6.egg', '/var/local/eggs/zope.app.publisher-3.10.2-py2.6.egg', '/var/local/eggs/zope.copypastemove-3.8.0-py2.6.egg', diff -r 6f0fb6086bf3 -r 824f49d5488e bin/i18nstats --- a/bin/i18nstats Mon Dec 12 15:31:23 2011 +0100 +++ b/bin/i18nstats Mon Dec 12 15:32:50 2011 +0100 @@ -2,13 +2,13 @@ import sys sys.path[0:0] = [ - '/var/local/src/ztfy-bb/ztfy.utils', + '/var/local/eggs/ztfy.utils-0.3.4-py2.6.egg', '/var/local/eggs/z3c.recipe.i18n-0.6.0-py2.6.egg', '/var/local/eggs/zope.app.locales-3.6.2-py2.6.egg', '/var/local/eggs/zope.app.appsetup-3.15.0-py2.6.egg', '/var/local/eggs/zope.app.applicationcontrol-3.5.9-py2.6.egg', '/var/local/eggs/zope.tal-3.5.2-py2.6.egg', - '/var/local/eggs/zope.interface-3.6.3-py2.6-linux-x86_64.egg', + '/var/local/eggs/zope.interface-3.7.0-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.i18nmessageid-3.5.3-py2.6-linux-x86_64.egg', '/var/local/env/bb-2.6/lib/python2.6/site-packages/distribute-0.6.19-py2.6.egg', '/var/local/eggs/zope.configuration-3.7.4-py2.6.egg', @@ -16,7 +16,7 @@ '/var/local/eggs/zc.buildout-1.5.2-py2.6.egg', '/var/local/eggs/zopyx.txng3.core-3.5.3-py2.6.egg', '/var/local/eggs/zope.tales-3.5.1-py2.6.egg', - '/var/local/eggs/zope.session-3.9.4-py2.6.egg', + '/var/local/eggs/zope.session-3.9.5-py2.6.egg', '/var/local/eggs/zope.security-3.8.3-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.schema-3.7.1-py2.6.egg', '/var/local/eggs/zope.publisher-3.12.6-py2.6.egg', @@ -35,10 +35,11 @@ '/var/local/eggs/z3c.form-2.4.3-py2.6.egg', '/var/local/eggs/pytz-2011g-py2.6.egg', '/var/local/eggs/hurry.query-1.1.0-py2.6.egg', + '/var/local/eggs/fanstatic-0.11.3-py2.6.egg', '/var/local/eggs/zope.traversing-3.14.0-py2.6.egg', '/var/local/eggs/zope.site-3.9.2-py2.6.egg', '/var/local/eggs/zope.processlifetime-1.0-py2.6.egg', - '/var/local/eggs/zope.event-3.5.0_1-py2.6.egg', + '/var/local/eggs/zope.event-3.5.1-py2.6.egg', '/var/local/eggs/zope.error-3.7.2-py2.6.egg', '/var/local/eggs/zope.app.publication-3.12.0-py2.6.egg', '/var/local/eggs/ZODB3-3.10.3-py2.6-linux-x86_64.egg', @@ -48,7 +49,7 @@ '/var/local/eggs/zope.minmax-1.1.2-py2.6.egg', '/var/local/eggs/zope.proxy-3.6.1-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.exceptions-3.6.1-py2.6.egg', - '/var/local/eggs/zope.contenttype-3.5.3-py2.6.egg', + '/var/local/eggs/zope.contenttype-3.5.5-py2.6.egg', '/var/local/eggs/zope.browser-1.3-py2.6.egg', '/var/local/eggs/zope.keyreference-3.6.2-py2.6.egg', '/var/local/eggs/zope.lifecycleevent-3.6.2-py2.6.egg', @@ -57,22 +58,23 @@ '/var/local/eggs/zope.dottedname-3.4.6-py2.6.egg', '/var/local/eggs/zope.dublincore-3.8.2-py2.6.egg', '/var/local/eggs/transaction-1.1.1-py2.6.egg', - '/var/local/eggs/zope.app.component-3.9.2-py2.6.egg', + '/var/local/eggs/zope.app.component-3.9.3-py2.6.egg', '/var/local/eggs/zope.app.container-3.9.1-py2.6.egg', '/var/local/eggs/zope.pluggableauth-1.2-py2.6.egg', '/var/local/eggs/zope.password-3.6.1-py2.6.egg', - '/var/local/eggs/zope.formlib-4.0.5-py2.6.egg', + '/var/local/eggs/zope.formlib-4.0.6-py2.6.egg', '/var/local/eggs/zope.authentication-3.7.1-py2.6.egg', '/var/local/eggs/zope.app.folder-3.5.2-py2.6.egg', '/var/local/eggs/zope.pagetemplate-3.5.2-py2.6.egg', '/var/local/eggs/zope.contentprovider-3.7.2-py2.6.egg', '/var/local/eggs/zc.catalog-1.5-py2.6.egg', + '/var/local/eggs/WebOb-1.2b2-py2.6.egg', + '/var/local/env/bb-2.6/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg', '/var/local/eggs/zdaemon-2.0.4-py2.6.egg', '/var/local/eggs/ZConfig-2.8.0-py2.6.egg', '/var/local/eggs/zc.lockfile-1.0.0-py2.6.egg', '/var/local/eggs/zope.componentvocabulary-1.0.1-py2.6.egg', '/var/local/eggs/zope.deprecation-3.4.1-py2.6.egg', - '/var/local/eggs/zope.cachedescriptors-3.5.1-py2.6.egg', '/var/local/eggs/zope.app.pagetemplate-3.11.2-py2.6.egg', '/var/local/eggs/zope.app.publisher-3.10.2-py2.6.egg', '/var/local/eggs/zope.copypastemove-3.8.0-py2.6.egg', diff -r 6f0fb6086bf3 -r 824f49d5488e bin/test --- a/bin/test Mon Dec 12 15:31:23 2011 +0100 +++ b/bin/test Mon Dec 12 15:32:50 2011 +0100 @@ -2,15 +2,15 @@ import sys sys.path[0:0] = [ - '/var/local/src/ztfy-bb/ztfy.utils', - '/var/local/eggs/zope.testrunner-4.0.3-py2.6.egg', - '/var/local/eggs/zope.interface-3.6.3-py2.6-linux-x86_64.egg', + '/var/local/eggs/ztfy.utils-0.3.4-py2.6.egg', + '/var/local/eggs/zope.testrunner-4.0.4-py2.6.egg', + '/var/local/eggs/zope.interface-3.7.0-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.exceptions-3.6.1-py2.6.egg', '/var/local/env/bb-2.6/lib/python2.6/site-packages/distribute-0.6.19-py2.6.egg', - '/var/local/eggs/zope.testing-3.10.2-py2.6.egg', + '/var/local/eggs/zope.testing-3.10.3-py2.6.egg', '/var/local/eggs/zopyx.txng3.core-3.5.3-py2.6.egg', '/var/local/eggs/zope.tales-3.5.1-py2.6.egg', - '/var/local/eggs/zope.session-3.9.4-py2.6.egg', + '/var/local/eggs/zope.session-3.9.5-py2.6.egg', '/var/local/eggs/zope.security-3.8.3-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.schema-3.7.1-py2.6.egg', '/var/local/eggs/zope.publisher-3.12.6-py2.6.egg', @@ -29,14 +29,15 @@ '/var/local/eggs/z3c.form-2.4.3-py2.6.egg', '/var/local/eggs/pytz-2011g-py2.6.egg', '/var/local/eggs/hurry.query-1.1.0-py2.6.egg', + '/var/local/eggs/fanstatic-0.11.3-py2.6.egg', '/var/local/eggs/zopyx.txng3.ext-3.3.2-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.tal-3.5.2-py2.6.egg', '/var/local/eggs/zope.minmax-1.1.2-py2.6.egg', '/var/local/eggs/zope.i18nmessageid-3.5.3-py2.6-linux-x86_64.egg', '/var/local/eggs/ZODB3-3.10.3-py2.6-linux-x86_64.egg', '/var/local/eggs/zope.proxy-3.6.1-py2.6-linux-x86_64.egg', - '/var/local/eggs/zope.event-3.5.0_1-py2.6.egg', - '/var/local/eggs/zope.contenttype-3.5.3-py2.6.egg', + '/var/local/eggs/zope.event-3.5.1-py2.6.egg', + '/var/local/eggs/zope.contenttype-3.5.5-py2.6.egg', '/var/local/eggs/zope.configuration-3.7.4-py2.6.egg', '/var/local/eggs/zope.browser-1.3-py2.6.egg', '/var/local/eggs/zope.keyreference-3.6.2-py2.6.egg', @@ -50,23 +51,24 @@ '/var/local/eggs/zope.dublincore-3.8.2-py2.6.egg', '/var/local/eggs/zope.app.publication-3.12.0-py2.6.egg', '/var/local/eggs/transaction-1.1.1-py2.6.egg', - '/var/local/eggs/zope.app.component-3.9.2-py2.6.egg', + '/var/local/eggs/zope.app.component-3.9.3-py2.6.egg', '/var/local/eggs/zope.app.container-3.9.1-py2.6.egg', '/var/local/eggs/zope.pluggableauth-1.2-py2.6.egg', '/var/local/eggs/zope.password-3.6.1-py2.6.egg', - '/var/local/eggs/zope.formlib-4.0.5-py2.6.egg', + '/var/local/eggs/zope.formlib-4.0.6-py2.6.egg', '/var/local/eggs/zope.authentication-3.7.1-py2.6.egg', '/var/local/eggs/zope.app.folder-3.5.2-py2.6.egg', '/var/local/eggs/zope.pagetemplate-3.5.2-py2.6.egg', '/var/local/eggs/zope.contentprovider-3.7.2-py2.6.egg', '/var/local/eggs/zc.catalog-1.5-py2.6.egg', + '/var/local/eggs/WebOb-1.2b2-py2.6.egg', + '/var/local/env/bb-2.6/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg', '/var/local/eggs/zdaemon-2.0.4-py2.6.egg', '/var/local/eggs/ZConfig-2.8.0-py2.6.egg', '/var/local/eggs/zc.lockfile-1.0.0-py2.6.egg', '/var/local/eggs/zope.error-3.7.2-py2.6.egg', '/var/local/eggs/zope.componentvocabulary-1.0.1-py2.6.egg', '/var/local/eggs/zope.deprecation-3.4.1-py2.6.egg', - '/var/local/eggs/zope.cachedescriptors-3.5.1-py2.6.egg', '/var/local/eggs/zope.app.pagetemplate-3.11.2-py2.6.egg', '/var/local/eggs/zope.app.publisher-3.10.2-py2.6.egg', '/var/local/eggs/zope.copypastemove-3.8.0-py2.6.egg', @@ -85,5 +87,5 @@ if __name__ == '__main__': zope.testrunner.run([ - '--test-path', '/var/local/src/ztfy-bb/ztfy.utils', + '--test-path', '/var/local/eggs/ztfy.utils-0.3.4-py2.6.egg', ]) diff -r 6f0fb6086bf3 -r 824f49d5488e setup.py --- a/setup.py Mon Dec 12 15:31:23 2011 +0100 +++ b/setup.py Mon Dec 12 15:32:50 2011 +0100 @@ -25,7 +25,7 @@ README = os.path.join(DOCS, 'README.txt') HISTORY = os.path.join(DOCS, 'HISTORY.txt') -version = '0.3.2' +version = '0.3.5' long_description = open(README).read() + '\n\n' + open(HISTORY).read() tests_require = [ @@ -46,7 +46,7 @@ keywords='ZTFY utilities for Zope3', author='Thierry Florac', author_email='tflorac@ulthar.net', - url='http://trac.ztfy.org/ztfy.utils', + url='http://www.ztfy.org', license='ZPL', packages=find_packages(exclude=['ez_setup']), namespace_packages=['ztfy'], @@ -60,6 +60,7 @@ install_requires=[ 'setuptools', # -*- Extra requirements: -*- + 'fanstatic', 'hurry.query', 'pytz', 'z3c.form', diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy.utils.egg-info/PKG-INFO --- a/ztfy.utils.egg-info/PKG-INFO Mon Dec 12 15:31:23 2011 +0100 +++ b/ztfy.utils.egg-info/PKG-INFO Mon Dec 12 15:32:50 2011 +0100 @@ -1,8 +1,8 @@ Metadata-Version: 1.0 Name: ztfy.utils -Version: 0.3.2 +Version: 0.3.5 Summary: ZTFY utility functions and classes for Zope3 -Home-page: http://trac.ztfy.org/ztfy.utils +Home-page: http://www.ztfy.org Author: Thierry Florac Author-email: tflorac@ulthar.net License: ZPL @@ -41,33 +41,45 @@ Changelog ========= + 0.3.5 + ----- + - re-add IList and IDict interfaces forgotten from bad merge :-( + + 0.3.4 + ----- + - better check for missing requests + + 0.3.3 + ----- + - Added "fanstatic:" TALES expression + 0.3.2 ----- - - Mark ztfy.utils.security functions and classes as deprecated + - Mark ztfy.utils.security functions and classes as deprecated 0.3.1 ----- - - Updated signature in ztfy.utils.catalog.index to match last hurry.query release + - Updated signature in ztfy.utils.catalog.index to match last hurry.query release 0.3 --- - - Switched to ZTK-1.1.2 - - Added "getAge" function in date module - - Added session module and TALES adapter to get/set session values - - Check None value in catalog.getObjectId(...) and catalog.getObject(...) methods + - Switched to ZTK-1.1.2 and Python 2.6 + - Added "getAge" function in date module + - Added session module and TALES adapter to get/set session values + - Check None value in catalog.getObjectId(...) and catalog.getObject(...) methods 0.2.1 ----- - - Added 'site.locateAndRegister' facility function - - Update ServerTimezoneUtility parent classes + - Added 'site.locateAndRegister' facility function + - Update ServerTimezoneUtility parent classes 0.2 --- - - Added 'data' namespace to access request data + - Added 'data' namespace to access request data 0.1 --- - - Initial release + - Initial release Keywords: ZTFY utilities for Zope3 Platform: UNKNOWN diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy.utils.egg-info/SOURCES.txt --- a/ztfy.utils.egg-info/SOURCES.txt Mon Dec 12 15:31:23 2011 +0100 +++ b/ztfy.utils.egg-info/SOURCES.txt Mon Dec 12 15:32:50 2011 +0100 @@ -54,6 +54,7 @@ ztfy/utils/protocol/xmlrpc.py ztfy/utils/tal/__init__.py ztfy/utils/tal/configure.zcml +ztfy/utils/tal/fanstatic.py ztfy/utils/tal/html.py ztfy/utils/tal/interfaces.py ztfy/utils/tal/request.py diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy.utils.egg-info/requires.txt --- a/ztfy.utils.egg-info/requires.txt Mon Dec 12 15:31:23 2011 +0100 +++ b/ztfy.utils.egg-info/requires.txt Mon Dec 12 15:32:50 2011 +0100 @@ -1,4 +1,5 @@ setuptools +fanstatic hurry.query pytz z3c.form diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy/utils/catalog/__init__.py --- a/ztfy/utils/catalog/__init__.py Mon Dec 12 15:31:23 2011 +0100 +++ b/ztfy/utils/catalog/__init__.py Mon Dec 12 15:32:50 2011 +0100 @@ -42,11 +42,11 @@ def getIntIdUtility(name='', request=None, context=None): """Look for a named IIntIds utility""" if request is None: - request = request_utils.getRequest() + request = request_utils.queryRequest() intids = request_utils.getRequestData('IntIdsUtility::' + name, request) if intids is None: intids = queryUtility(IIntIds, name, context=context) - if intids is not None: + if (request is not None) and (intids is not None): request_utils.setRequestData('IntIdsUtility::' + name, intids, request) return intids @@ -56,7 +56,7 @@ if object is None: return None if request is None: - request = request_utils.getRequest() + request = request_utils.queryRequest() intids = getIntIdUtility(intids_name, request, context) if intids is not None: return intids.queryId(object) diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy/utils/docs/HISTORY.txt --- a/ztfy/utils/docs/HISTORY.txt Mon Dec 12 15:31:23 2011 +0100 +++ b/ztfy/utils/docs/HISTORY.txt Mon Dec 12 15:32:50 2011 +0100 @@ -1,30 +1,42 @@ Changelog ========= +0.3.5 +----- + - re-add IList and IDict interfaces forgotten from bad merge :-( + +0.3.4 +----- + - better check for missing requests + +0.3.3 +----- + - Added "fanstatic:" TALES expression + 0.3.2 ----- -- Mark ztfy.utils.security functions and classes as deprecated + - Mark ztfy.utils.security functions and classes as deprecated 0.3.1 ----- -- Updated signature in ztfy.utils.catalog.index to match last hurry.query release + - Updated signature in ztfy.utils.catalog.index to match last hurry.query release 0.3 --- -- Switched to ZTK-1.1.2 -- Added "getAge" function in date module -- Added session module and TALES adapter to get/set session values -- Check None value in catalog.getObjectId(...) and catalog.getObject(...) methods + - Switched to ZTK-1.1.2 and Python 2.6 + - Added "getAge" function in date module + - Added session module and TALES adapter to get/set session values + - Check None value in catalog.getObjectId(...) and catalog.getObject(...) methods 0.2.1 ----- -- Added 'site.locateAndRegister' facility function -- Update ServerTimezoneUtility parent classes + - Added 'site.locateAndRegister' facility function + - Update ServerTimezoneUtility parent classes 0.2 --- -- Added 'data' namespace to access request data + - Added 'data' namespace to access request data 0.1 --- -- Initial release + - Initial release diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy/utils/locales/en/LC_MESSAGES/ztfy.utils.mo Binary file ztfy/utils/locales/en/LC_MESSAGES/ztfy.utils.mo has changed diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy/utils/locales/en/LC_MESSAGES/ztfy.utils.po --- a/ztfy/utils/locales/en/LC_MESSAGES/ztfy.utils.po Mon Dec 12 15:31:23 2011 +0100 +++ b/ztfy/utils/locales/en/LC_MESSAGES/ztfy.utils.po Mon Dec 12 15:32:50 2011 +0100 @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: ZTFY.utils\n" -"POT-Creation-Date: Sun Oct 30 02:43:20 2011\n" +"POT-Creation-Date: Fri Dec 16 13:08:37 2011\n" "PO-Revision-Date: 2009-08-14 18:14+0200\n" "Last-Translator: Thierry Florac \n" "Language-Team: French \n" diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy/utils/locales/fr/LC_MESSAGES/ztfy.utils.mo Binary file ztfy/utils/locales/fr/LC_MESSAGES/ztfy.utils.mo has changed diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy/utils/locales/fr/LC_MESSAGES/ztfy.utils.po --- a/ztfy/utils/locales/fr/LC_MESSAGES/ztfy.utils.po Mon Dec 12 15:31:23 2011 +0100 +++ b/ztfy/utils/locales/fr/LC_MESSAGES/ztfy.utils.po Mon Dec 12 15:32:50 2011 +0100 @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: ZTFY.utils\n" -"POT-Creation-Date: Sun Oct 30 02:43:20 2011\n" +"POT-Creation-Date: Fri Dec 16 13:08:37 2011\n" "PO-Revision-Date: 2009-08-14 18:14+0200\n" "Last-Translator: Thierry Florac \n" "Language-Team: French \n" @@ -57,15 +57,15 @@ msgid "yesterday" msgstr "hier" -#: ztfy/utils/request.py:39 +#: ztfy/utils/request.py:40 msgid "No Request in interaction !" msgstr "Pas de requête en cours !" -#: ztfy/utils/security.py:64 +#: ztfy/utils/security.py:66 msgid "< missing principal %s>" msgstr "< utilisateur inconnu %s >" -#: ztfy/utils/security.py:68 +#: ztfy/utils/security.py:70 msgid "This principal can't be found in any authentication utility..." msgstr "Cet utilisateur ne peut pas être trouvé" diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy/utils/locales/ztfy.utils.pot --- a/ztfy/utils/locales/ztfy.utils.pot Mon Dec 12 15:31:23 2011 +0100 +++ b/ztfy/utils/locales/ztfy.utils.pot Mon Dec 12 15:32:50 2011 +0100 @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: Meaningless\n" -"POT-Creation-Date: Sun Oct 30 02:43:20 2011\n" +"POT-Creation-Date: Fri Dec 16 13:08:37 2011\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: Zope 3 Developers \n" @@ -55,15 +55,15 @@ msgid "yesterday" msgstr "" -#: ztfy/utils/request.py:39 +#: ztfy/utils/request.py:40 msgid "No Request in interaction !" msgstr "" -#: ztfy/utils/security.py:64 +#: ztfy/utils/security.py:66 msgid "< missing principal %s>" msgstr "" -#: ztfy/utils/security.py:68 +#: ztfy/utils/security.py:70 msgid "This principal can't be found in any authentication utility..." msgstr "" diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy/utils/request.py --- a/ztfy/utils/request.py Mon Dec 12 15:31:23 2011 +0100 +++ b/ztfy/utils/request.py Mon Dec 12 15:32:50 2011 +0100 @@ -28,6 +28,7 @@ # import local packages from ztfy.utils import _ +from zope.security.interfaces import NoInteraction def getRequest(): @@ -39,6 +40,13 @@ raise RuntimeError, _("No Request in interaction !") +def queryRequest(): + try: + return getRequest() + except NoInteraction: + return None + + def getRequestPrincipal(request=None): """Get principal from given request""" if request is None: diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy/utils/tal/configure.zcml --- a/ztfy/utils/tal/configure.zcml Mon Dec 12 15:31:23 2011 +0100 +++ b/ztfy/utils/tal/configure.zcml Mon Dec 12 15:32:50 2011 +0100 @@ -1,5 +1,6 @@ + + \ No newline at end of file diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy/utils/tal/fanstatic.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ztfy/utils/tal/fanstatic.py Mon Dec 12 15:32:50 2011 +0100 @@ -0,0 +1,38 @@ +### -*- coding: utf-8 -*- #################################################### +############################################################################## +# +# Copyright (c) 2008-2011 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 + +# import Zope3 interfaces + +# import local interfaces + +# import Zope3 packages +from zope.tales.expressions import StringExpr + +# import local packages +from ztfy.utils.traversing import resolve + + +class FanstaticTalesExpression(StringExpr): + + def __call__(self, econtext): + lib, res = self._expr.split('#') + module = resolve(lib) + resource = getattr(module, res) + resource.need() + return '' diff -r 6f0fb6086bf3 -r 824f49d5488e ztfy/utils/traversing.py --- a/ztfy/utils/traversing.py Mon Dec 12 15:31:23 2011 +0100 +++ b/ztfy/utils/traversing.py Mon Dec 12 15:32:50 2011 +0100 @@ -37,3 +37,29 @@ return interface(parent) parent = getattr(parent, '__parent__', None) return None + + +# copied from fanstatic (which copied it from zope.dottedname !) +def resolve(name, module=None): + name = name.split('.') + if not name[0]: + if module is None: + raise ValueError("relative name without base module") + module = module.split('.') + name.pop(0) + while not name[0]: + module.pop() + name.pop(0) + name = module + name + + used = name.pop(0) + found = __import__(used) + for n in name: + used += '.' + n + try: + found = getattr(found, n) + except AttributeError: + __import__(used) + found = getattr(found, n) + + return found