[Zope-Checkins] SVN: Zope/trunk/alltests.cfg zLOG got integrated back in - no need to download and test the extra distribution
Log message for revision 102380: zLOG got integrated back in - no need to download and test the extra distribution Changed: U Zope/trunk/alltests.cfg -=- Modified: Zope/trunk/alltests.cfg === --- Zope/trunk/alltests.cfg 2009-07-30 16:41:59 UTC (rev 102379) +++ Zope/trunk/alltests.cfg 2009-07-30 18:19:19 UTC (rev 102380) @@ -15,7 +15,6 @@ Persistence RestrictedPython tempstorage -zLOG zope.annotation zope.authentication zope.broken ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/trunk/ Removed no longer maintained ``configure, make, make install`` related installation files. Zope2 can only be installed via its setup.py.
Log message for revision 102382: Removed no longer maintained ``configure, make, make install`` related installation files. Zope2 can only be installed via its setup.py. Changed: D Zope/trunk/configure U Zope/trunk/doc/CHANGES.rst D Zope/trunk/inst/Makefile.in D Zope/trunk/inst/Makefile.win.in D Zope/trunk/inst/WinBuilders/ D Zope/trunk/inst/compilezpy.py D Zope/trunk/inst/configure.py D Zope/trunk/inst/file_from_infile.py D Zope/trunk/inst/install.py D Zope/trunk/inst/make_resource.py D Zope/trunk/inst/tar.py D Zope/trunk/inst/versions.py D Zope/trunk/inst/walkandscrub.py -=- Deleted: Zope/trunk/configure === --- Zope/trunk/configure2009-07-30 18:30:52 UTC (rev 102381) +++ Zope/trunk/configure2009-07-30 18:31:36 UTC (rev 102382) @@ -1,206 +0,0 @@ -#!/bin/sh - -# Zope configure script -# $Id$ - -# -#BEGIN EDITABLE PARAMETERS # -# - -# Place the optimal target version number for Zope (as returned by sys.version) -# below -TARGET=2.5.4 - -# Order a list of acceptable python version numbers (as returned by -# sys.version) below in best to worst order, not including the -# target version. Up to six acceptable python versions are allowed. -# Do not include the target version number in this list! -ACCEPTABLE=2.6.1 - -# provide the executable names for all the acceptable versions -# (and the target version) below -EXENAMES=python python2 python2.5 python2.6 - -# -#END EDITABLE PARAMETERS# -# - -# where are we? -HERE=`dirname $0` - -# should we be quiet? -QUIET= - -usage() -{ -echo -echo configure [--help] [--quiet] [--with-python=path] [--prefix=path] -echo [--build-base=path] [--ignore-largefile] [--ignore-zlib] -echo [--optimize] -echo -echo Creates a Makefile suitable for building and installing Zope -echo -echo Options: -echo --help shows usage and quits -echo --quiet suppress nonessential output -echo --with-python specify a path to a Python interpreter to use -echo --prefixspecify an installation path for binary data -echo --build-basespecify a temporary path for build files -echo --ignore-largefile ignore large file support warnings -echo --ignore-expat ignore warnings about expat/pyexpat -echo --ignore-zlib ignore warnings about zlib -echo --optimize optimize compiled Python bytecode -echo --no-compileDont compile Python bytecode -echo -echo Given no options, configure will search your PATH for a suitable -echo Python interpreter and will use '/opt/Zope-ZOPE_MAJOR_VERSION' -echo as a prefix. -echo -} - -# bootstrap ourselves by finding a Python interpreter if necessary -get_python() { -OLDIFS=$IFS -IFS=: -FOUND= -VERSION= -FOUNDLIST= -out Testing for an acceptable Python interpreter... -out -for DIR in $PATH; do -IFS=$OLDIFS -for EXECUTABLE in $EXENAMES; do -FULL=$DIR/$EXECUTABLE -if [ -x $FULL -a ! -d $FULL ]; then -CMD=import string,sys;a=string.split(sys.version)[0] - # Strip trailing + from version number - CMD=$CMD;a=(a[-1]=='+')and(a[:-1])or(a);print a -VERSION=`$FULL -c $CMD` -out Python version $VERSION found at $FULL -if [ $VERSION = $TARGET ]; then -FOUND=$FULL -FOUNDVERSION=$VERSION -break 2 -else -i=1; -for ACC in $ACCEPTABLE; do -i=`expr $i + 1` - for SLOT in $FOUNDLIST; do -if [ $SLOT -eq $i ]; then -# slot i already populated. This means we've -# already found this particular version of -# python. Continue the for ACC in -# $ACCEPTABLE loop and don't overwrite the -# one we already found (interpreters first -# on the path win). -continue 2 -fi -done -if [ $VERSION = $ACC ]; then -FOUNDLIST=$FOUNDLIST $i -eval FOUND$i=$FULL -eval FOUNDVERSION$i=$VERSION -
[Zope-Checkins] SVN: Zope/trunk/setup.py Acquisition is omnipresent, but there's still a difference to the Zope2 egg ; )
Log message for revision 102383: Acquisition is omnipresent, but there's still a difference to the Zope2 egg ;) Changed: U Zope/trunk/setup.py -=- Modified: Zope/trunk/setup.py === --- Zope/trunk/setup.py 2009-07-30 18:31:36 UTC (rev 102382) +++ Zope/trunk/setup.py 2009-07-30 18:41:54 UTC (rev 102383) @@ -11,7 +11,7 @@ # FOR A PARTICULAR PURPOSE. # ## -Setup for the Acquisition egg package +Setup for the Zope2 package import os from setuptools import setup, find_packages, Extension ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/trunk/src/ Removed no longer used setup and distribution files
Log message for revision 102385: Removed no longer used setup and distribution files Changed: D Zope/trunk/src/AccessControl/DEPENDENCIES.cfg D Zope/trunk/src/AccessControl/SETUP.cfg D Zope/trunk/src/DocumentTemplate/DEPENDENCIES.cfg D Zope/trunk/src/DocumentTemplate/SETUP.cfg D Zope/trunk/src/DocumentTemplate/release.fl D Zope/trunk/src/DocumentTemplate/release.sh D Zope/trunk/src/Missing/DEPENDENCIES.cfg D Zope/trunk/src/Missing/SETUP.cfg D Zope/trunk/src/Missing/setup.py D Zope/trunk/src/MultiMapping/DEPENDENCIES.cfg D Zope/trunk/src/MultiMapping/SETUP.cfg D Zope/trunk/src/MultiMapping/setup.py D Zope/trunk/src/Record/DEPENDENCIES.cfg D Zope/trunk/src/Record/SETUP.cfg D Zope/trunk/src/Record/setup.py D Zope/trunk/src/ThreadLock/SETUP.cfg D Zope/trunk/src/ThreadLock/setup.py D Zope/trunk/src/initgroups/SETUP.cfg -=- Deleted: Zope/trunk/src/AccessControl/DEPENDENCIES.cfg === --- Zope/trunk/src/AccessControl/DEPENDENCIES.cfg 2009-07-30 18:50:30 UTC (rev 102384) +++ Zope/trunk/src/AccessControl/DEPENDENCIES.cfg 2009-07-30 18:57:22 UTC (rev 102385) @@ -1,2 +0,0 @@ -ExtensionClass -Acquisition Deleted: Zope/trunk/src/AccessControl/SETUP.cfg === --- Zope/trunk/src/AccessControl/SETUP.cfg 2009-07-30 18:50:30 UTC (rev 102384) +++ Zope/trunk/src/AccessControl/SETUP.cfg 2009-07-30 18:57:22 UTC (rev 102385) @@ -1,3 +0,0 @@ -extension cAccessControl - source cAccessControl.c -/extension Deleted: Zope/trunk/src/DocumentTemplate/DEPENDENCIES.cfg === --- Zope/trunk/src/DocumentTemplate/DEPENDENCIES.cfg2009-07-30 18:50:30 UTC (rev 102384) +++ Zope/trunk/src/DocumentTemplate/DEPENDENCIES.cfg2009-07-30 18:57:22 UTC (rev 102385) @@ -1 +0,0 @@ -ExtensionClass Deleted: Zope/trunk/src/DocumentTemplate/SETUP.cfg === --- Zope/trunk/src/DocumentTemplate/SETUP.cfg 2009-07-30 18:50:30 UTC (rev 102384) +++ Zope/trunk/src/DocumentTemplate/SETUP.cfg 2009-07-30 18:57:22 UTC (rev 102385) @@ -1,3 +0,0 @@ -extension cDocumentTemplate - source cDocumentTemplate.c -/extension Deleted: Zope/trunk/src/DocumentTemplate/release.fl === --- Zope/trunk/src/DocumentTemplate/release.fl 2009-07-30 18:50:30 UTC (rev 102384) +++ Zope/trunk/src/DocumentTemplate/release.fl 2009-07-30 18:57:22 UTC (rev 102385) @@ -1,20 +0,0 @@ -DT_HTML.py -DT_If.py -DT_In.py -DT_String.py -DT_UI.py -DT_Util.py -DT_Var.py -DT_Raise.py -DTtest.py -DTtestExpr.py -DTtest_basicIn.py -DocumentTemplate.py -VSEval.py -__init__.py -pDocumentTemplate.py -release_notes -gparse.py -DT_With.py -DT_InSV.py -ts_regex.py Deleted: Zope/trunk/src/DocumentTemplate/release.sh === --- Zope/trunk/src/DocumentTemplate/release.sh 2009-07-30 18:50:30 UTC (rev 102384) +++ Zope/trunk/src/DocumentTemplate/release.sh 2009-07-30 18:57:22 UTC (rev 102385) @@ -1,20 +0,0 @@ -#!/bin/sh - -R=$1 -M=DocumentTemplate - -# StructuredText $M.stx $M.html -StructuredText -t release_notes DocumentTemplate-rn.html -cp DocumentTemplate-rn.html .. -rm -rf $M-$R -mkdir $M-$R $M-$R/$M -echo -for f in `cat pyfiles`; do - python1.5 -c import sys; sys.path.append('..'); from tabnanny import *; f='$f'; check(f) -done -echo -tar -c -T release.fl -f - | (cd $M-$R/$M; tar xvf -) -cp INSTALL $M-$R/ -tar cvf $M-$R.tar $M-$R -rm -f $M-$R.tar.gz -gzip $M-$R.tar Deleted: Zope/trunk/src/Missing/DEPENDENCIES.cfg === --- Zope/trunk/src/Missing/DEPENDENCIES.cfg 2009-07-30 18:50:30 UTC (rev 102384) +++ Zope/trunk/src/Missing/DEPENDENCIES.cfg 2009-07-30 18:57:22 UTC (rev 102385) @@ -1 +0,0 @@ -ExtensionClass Deleted: Zope/trunk/src/Missing/SETUP.cfg === --- Zope/trunk/src/Missing/SETUP.cfg2009-07-30 18:50:30 UTC (rev 102384) +++ Zope/trunk/src/Missing/SETUP.cfg2009-07-30 18:57:22 UTC (rev 102385) @@ -1,3 +0,0 @@ -extension _Missing - source _Missing.c -/extension Deleted: Zope/trunk/src/Missing/setup.py === --- Zope/trunk/src/Missing/setup.py 2009-07-30 18:50:30 UTC (rev 102384) +++ Zope/trunk/src/Missing/setup.py 2009-07-30 18:57:22 UTC (rev 102385) @@ -1,22 +0,0 @@ -## -# -# Copyright (c) 2003 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
[Zope-Checkins] SVN: Zope/trunk/src/Products/ZReST/ Found two more stray build files
Log message for revision 102386: Found two more stray build files Changed: D Zope/trunk/src/Products/ZReST/Makefile D Zope/trunk/src/Products/ZReST/refresh.txt -=- Deleted: Zope/trunk/src/Products/ZReST/Makefile === --- Zope/trunk/src/Products/ZReST/Makefile 2009-07-30 18:57:22 UTC (rev 102385) +++ Zope/trunk/src/Products/ZReST/Makefile 2009-07-30 19:02:26 UTC (rev 102386) @@ -1,15 +0,0 @@ -FILES = ZReST.py __init__.py refresh.txt version.txt TODO.txt README.txt -DTML = dtml/manage_addZReSTForm.dtml dtml/manage_editForm.dtml -VERSION := $(shell cat version.txt) - -all: ${FILES} ${DTML} - rm -rf dist - mkdir dist - mkdir dist/ZReST - mkdir dist/ZReST/dtml - cp ${FILES} dist/ZReST - cp ${DTML} dist/ZReST/dtml - (cd dist; tar zcf ZReST-${VERSION}.tgz ZReST) - mv dist/ZReST-${VERSION}.tgz . - rm -rf dist - Deleted: Zope/trunk/src/Products/ZReST/refresh.txt === --- Zope/trunk/src/Products/ZReST/refresh.txt 2009-07-30 18:57:22 UTC (rev 102385) +++ Zope/trunk/src/Products/ZReST/refresh.txt 2009-07-30 19:02:26 UTC (rev 102386) @@ -1 +0,0 @@ -This is a flag that tells Zope that the product may be auto-refreshed. ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/trunk/ Moved ``Products/Five/publisher.zcml`` into the ZPublisher package.
Log message for revision 102391: Moved ``Products/Five/publisher.zcml`` into the ZPublisher package. Changed: U Zope/trunk/doc/CHANGES.rst U Zope/trunk/src/Products/Five/configure.zcml U Zope/trunk/src/Products/Five/publisher.zcml A Zope/trunk/src/ZPublisher/configure.zcml A Zope/trunk/src/ZPublisher/publisher.zcml -=- Modified: Zope/trunk/doc/CHANGES.rst === --- Zope/trunk/doc/CHANGES.rst 2009-07-30 19:19:53 UTC (rev 102390) +++ Zope/trunk/doc/CHANGES.rst 2009-07-30 19:29:29 UTC (rev 102391) @@ -11,6 +11,8 @@ Restructuring + +- Moved ``Products/Five/publisher.zcml`` into the ZPublisher package. + - Moved ``Products/Five/event.zcml`` into the OFS package. - Removed no longer maintained ``configure, make, make install`` related Modified: Zope/trunk/src/Products/Five/configure.zcml === --- Zope/trunk/src/Products/Five/configure.zcml 2009-07-30 19:19:53 UTC (rev 102390) +++ Zope/trunk/src/Products/Five/configure.zcml 2009-07-30 19:29:29 UTC (rev 102391) @@ -5,10 +5,10 @@ include file=permissions.zcml / include file=i18n.zcml / include file=deprecated.zcml/ - include file=publisher.zcml/ include file=traversing.zcml/ include package=OFS / + include package=ZPublisher / include package=.component / include package=.browser / Modified: Zope/trunk/src/Products/Five/publisher.zcml === --- Zope/trunk/src/Products/Five/publisher.zcml 2009-07-30 19:19:53 UTC (rev 102390) +++ Zope/trunk/src/Products/Five/publisher.zcml 2009-07-30 19:29:29 UTC (rev 102391) @@ -1,23 +1,5 @@ configure xmlns=http://namespaces.zope.org/zope; - interface interface=zope.publisher.interfaces.browser.IBrowserSkinType / + include package=ZPublisher file=publisher.zcml/ - interface - interface=zope.publisher.interfaces.browser.IDefaultBrowserLayer - type=zope.publisher.interfaces.browser.IBrowserSkinType - / - - class class=ZPublisher.HTTPRequest.HTTPRequest -implements -interface=zope.annotation.interfaces.IAttributeAnnotatable -/ - /class - - adapter - name=default - factory=zope.publisher.browser.getDefaultSkin - for=zope.publisher.interfaces.browser.IBrowserRequest - provides=zope.publisher.interfaces.IDefaultSkin - / - /configure Added: Zope/trunk/src/ZPublisher/configure.zcml === --- Zope/trunk/src/ZPublisher/configure.zcml(rev 0) +++ Zope/trunk/src/ZPublisher/configure.zcml2009-07-30 19:29:29 UTC (rev 102391) @@ -0,0 +1,5 @@ +configure xmlns=http://namespaces.zope.org/zope; + + include file=publisher.zcml/ + +/configure Property changes on: Zope/trunk/src/ZPublisher/configure.zcml ___ Added: svn:eol-style + native Copied: Zope/trunk/src/ZPublisher/publisher.zcml (from rev 102379, Zope/trunk/src/Products/Five/publisher.zcml) === --- Zope/trunk/src/ZPublisher/publisher.zcml(rev 0) +++ Zope/trunk/src/ZPublisher/publisher.zcml2009-07-30 19:29:29 UTC (rev 102391) @@ -0,0 +1,23 @@ +configure xmlns=http://namespaces.zope.org/zope; + + interface interface=zope.publisher.interfaces.browser.IBrowserSkinType / + + interface + interface=zope.publisher.interfaces.browser.IDefaultBrowserLayer + type=zope.publisher.interfaces.browser.IBrowserSkinType + / + + class class=ZPublisher.HTTPRequest.HTTPRequest +implements +interface=zope.annotation.interfaces.IAttributeAnnotatable +/ + /class + + adapter + name=default + factory=zope.publisher.browser.getDefaultSkin + for=zope.publisher.interfaces.browser.IBrowserRequest + provides=zope.publisher.interfaces.IDefaultSkin + / + +/configure ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/trunk/ Moved zope.security-style permission registrations from Products.Five into the AccessControl package.
Log message for revision 102392: Moved zope.security-style permission registrations from Products.Five into the AccessControl package. Changed: U Zope/trunk/doc/CHANGES.rst U Zope/trunk/src/AccessControl/Permissions.py A Zope/trunk/src/AccessControl/configure.zcml A Zope/trunk/src/AccessControl/permissions.zcml U Zope/trunk/src/Products/Five/browser/tests/test_defaultview.py U Zope/trunk/src/Products/Five/browser/tests/test_menu.py U Zope/trunk/src/Products/Five/permissions.zcml U Zope/trunk/src/Products/Five/utilities/browser/tests/test_marker.py U Zope/trunk/src/Testing/ZopeTestCase/testPlaceless.py -=- Modified: Zope/trunk/doc/CHANGES.rst === --- Zope/trunk/doc/CHANGES.rst 2009-07-30 19:29:29 UTC (rev 102391) +++ Zope/trunk/doc/CHANGES.rst 2009-07-30 19:40:57 UTC (rev 102392) @@ -11,6 +11,9 @@ Restructuring + +- Moved zope.security-style permission registrations from Products.Five into + the AccessControl package. + - Moved ``Products/Five/publisher.zcml`` into the ZPublisher package. - Moved ``Products/Five/event.zcml`` into the OFS package. Modified: Zope/trunk/src/AccessControl/Permissions.py === --- Zope/trunk/src/AccessControl/Permissions.py 2009-07-30 19:29:29 UTC (rev 102391) +++ Zope/trunk/src/AccessControl/Permissions.py 2009-07-30 19:40:57 UTC (rev 102392) @@ -39,6 +39,7 @@ change_page_templates='Change Page Templates' change_permissions='Change permissions' change_proxy_roles='Change proxy roles' +copy_or_move='Copy or Move' create_class_instances='Create class instances' define_permissions='Define permissions' delete_objects='Delete objects' @@ -63,7 +64,6 @@ view='View' view_history='View History' view_management_screens='View management screens' -copy_or_move='Copy or Move' webdav_access='WebDAV access' webdav_lock_items='WebDAV Lock items' webdav_unlock_items='WebDAV Unlock items' Added: Zope/trunk/src/AccessControl/configure.zcml === --- Zope/trunk/src/AccessControl/configure.zcml (rev 0) +++ Zope/trunk/src/AccessControl/configure.zcml 2009-07-30 19:40:57 UTC (rev 102392) @@ -0,0 +1,5 @@ +configure xmlns=http://namespaces.zope.org/zope; + + include file=permissions.zcml/ + +/configure Property changes on: Zope/trunk/src/AccessControl/configure.zcml ___ Added: svn:eol-style + native Copied: Zope/trunk/src/AccessControl/permissions.zcml (from rev 102379, Zope/trunk/src/Products/Five/permissions.zcml) === --- Zope/trunk/src/AccessControl/permissions.zcml (rev 0) +++ Zope/trunk/src/AccessControl/permissions.zcml 2009-07-30 19:40:57 UTC (rev 102392) @@ -0,0 +1,104 @@ +configure xmlns=http://namespaces.zope.org/zope; + i18n_domain=Zope2 + + permission +id=zope2.Public +title=Public, everyone can access +/ + + permission +id=zope2.Private +title=Private, only accessible from trusted code +/ + + permission +id=zope2.AccessContentsInformation +title=Access contents information +/ + + permission +id=zope2.ChangeImagesFiles +title=Change Images and Files +/ + + permission +id=zope2.ChangeConfig +title=Change configuration +/ + + permission +id=zope2.ChangePermissions +title=Change permissions +/ + + permission +id=zope2.CopyOrMove +title=Copy or Move +/ + + permission +id=zope2.DefinePermissions +title=Define permissions +/ + + permission +id=zope2.DeleteObjects +title=Delete objects +/ + + permission +id=zope2.FTPAccess +title=FTP access +/ + + permission +id=zope2.ImportExport +title=Import/Export objects +/ + + permission +id=zope2.ManageProperties +title=Manage properties +/ + + permission +id=zope2.ManageUsers +title=Manage users +/ + + permission +id=zope2.Undo +title=Undo changes +/ + + permission +id=zope2.View +title=View +/ + + permission +id=zope2.ViewHistory +title=View History +/ + + permission +id=zope2.ViewManagementScreens +title=View management screens +/ + + permission +id=zope2.WebDAVLock +title=WebDAV Lock items +/ + + permission +id=zope2.WebDAVUnlock +title=WebDAV Unlock items +/ + + permission +id=zope2.WebDAVAccess +title=WebDAV access +/ + +/configure Modified: Zope/trunk/src/Products/Five/browser/tests/test_defaultview.py === --- Zope/trunk/src/Products/Five/browser/tests/test_defaultview.py 2009-07-30 19:29:29 UTC (rev 102391) +++
[Zope-Checkins] SVN: Zope/trunk/ Moved ``Products/Five/i18n.zcml`` into the ZPublisher package.
Log message for revision 102393: Moved ``Products/Five/i18n.zcml`` into the ZPublisher package. Changed: U Zope/trunk/doc/CHANGES.rst U Zope/trunk/src/Products/Five/configure.zcml U Zope/trunk/src/Products/Five/i18n.zcml U Zope/trunk/src/ZPublisher/configure.zcml A Zope/trunk/src/ZPublisher/i18n.zcml -=- Modified: Zope/trunk/doc/CHANGES.rst === --- Zope/trunk/doc/CHANGES.rst 2009-07-30 19:40:57 UTC (rev 102392) +++ Zope/trunk/doc/CHANGES.rst 2009-07-30 19:51:52 UTC (rev 102393) @@ -14,6 +14,8 @@ - Moved zope.security-style permission registrations from Products.Five into the AccessControl package. +- Moved ``Products/Five/i18n.zcml`` into the ZPublisher package. + - Moved ``Products/Five/publisher.zcml`` into the ZPublisher package. - Moved ``Products/Five/event.zcml`` into the OFS package. Modified: Zope/trunk/src/Products/Five/configure.zcml === --- Zope/trunk/src/Products/Five/configure.zcml 2009-07-30 19:40:57 UTC (rev 102392) +++ Zope/trunk/src/Products/Five/configure.zcml 2009-07-30 19:51:52 UTC (rev 102393) @@ -3,7 +3,6 @@ include file=meta.zcml / include file=permissions.zcml / - include file=i18n.zcml / include file=deprecated.zcml/ include file=traversing.zcml/ Modified: Zope/trunk/src/Products/Five/i18n.zcml === --- Zope/trunk/src/Products/Five/i18n.zcml 2009-07-30 19:40:57 UTC (rev 102392) +++ Zope/trunk/src/Products/Five/i18n.zcml 2009-07-30 19:51:52 UTC (rev 102393) @@ -1,23 +1,6 @@ configure -xmlns=http://namespaces.zope.org/zope; -xmlns:i18n=http://namespaces.zope.org/i18n; - +xmlns=http://namespaces.zope.org/zope; - utility - provides=zope.i18n.interfaces.INegotiator - component=zope.i18n.negotiator.negotiator - / + include package=ZPublisher file=i18n.zcml / - adapter - for=zope.publisher.interfaces.http.IHTTPRequest - provides=zope.i18n.interfaces.IUserPreferredLanguages - factory=zope.publisher.browser.BrowserLanguages - / - - adapter - for=zope.publisher.interfaces.http.IHTTPRequest - provides=zope.i18n.interfaces.IUserPreferredCharsets - factory=zope.publisher.http.HTTPCharsets - / - /configure Modified: Zope/trunk/src/ZPublisher/configure.zcml === --- Zope/trunk/src/ZPublisher/configure.zcml2009-07-30 19:40:57 UTC (rev 102392) +++ Zope/trunk/src/ZPublisher/configure.zcml2009-07-30 19:51:52 UTC (rev 102393) @@ -1,5 +1,6 @@ configure xmlns=http://namespaces.zope.org/zope; + include file=i18n.zcml/ include file=publisher.zcml/ /configure Copied: Zope/trunk/src/ZPublisher/i18n.zcml (from rev 102379, Zope/trunk/src/Products/Five/i18n.zcml) === --- Zope/trunk/src/ZPublisher/i18n.zcml (rev 0) +++ Zope/trunk/src/ZPublisher/i18n.zcml 2009-07-30 19:51:52 UTC (rev 102393) @@ -0,0 +1,22 @@ +configure +xmlns=http://namespaces.zope.org/zope; +xmlns:i18n=http://namespaces.zope.org/i18n; + + utility + provides=zope.i18n.interfaces.INegotiator + component=zope.i18n.negotiator.negotiator + / + + adapter + for=zope.publisher.interfaces.http.IHTTPRequest + provides=zope.i18n.interfaces.IUserPreferredLanguages + factory=zope.publisher.browser.BrowserLanguages + / + + adapter + for=zope.publisher.interfaces.http.IHTTPRequest + provides=zope.i18n.interfaces.IUserPreferredCharsets + factory=zope.publisher.http.HTTPCharsets + / + +/configure ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/trunk/ Moved ``Products/Five/traversing.zcml`` directly into the configure.zcml.
Log message for revision 102397: Moved ``Products/Five/traversing.zcml`` directly into the configure.zcml. Changed: U Zope/trunk/doc/CHANGES.rst U Zope/trunk/src/Products/Five/configure.zcml D Zope/trunk/src/Products/Five/traversing.zcml -=- Modified: Zope/trunk/doc/CHANGES.rst === --- Zope/trunk/doc/CHANGES.rst 2009-07-30 19:55:18 UTC (rev 102396) +++ Zope/trunk/doc/CHANGES.rst 2009-07-30 19:55:27 UTC (rev 102397) @@ -11,6 +11,8 @@ Restructuring + +- Moved ``Products/Five/traversing.zcml`` directly into the configure.zcml. + - Moved zope.security-style permission registrations from Products.Five into the AccessControl package. Modified: Zope/trunk/src/Products/Five/configure.zcml === --- Zope/trunk/src/Products/Five/configure.zcml 2009-07-30 19:55:18 UTC (rev 102396) +++ Zope/trunk/src/Products/Five/configure.zcml 2009-07-30 19:55:27 UTC (rev 102397) @@ -4,8 +4,8 @@ include file=meta.zcml / include file=permissions.zcml / include file=deprecated.zcml/ - include file=traversing.zcml/ + include package=zope.traversing / include package=OFS / include package=ZPublisher / Deleted: Zope/trunk/src/Products/Five/traversing.zcml === --- Zope/trunk/src/Products/Five/traversing.zcml2009-07-30 19:55:18 UTC (rev 102396) +++ Zope/trunk/src/Products/Five/traversing.zcml2009-07-30 19:55:27 UTC (rev 102397) @@ -1,7 +0,0 @@ -configure xmlns=http://namespaces.zope.org/zope; - xmlns:five=http://namespaces.zope.org/five; - - !-- define default namespace adapters, etc. -- - include package=zope.traversing / - -/configure ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/trunk/versions.cfg Merged c102398 from the 2.12 branch
Log message for revision 102399: Merged c102398 from the 2.12 branch Changed: U Zope/trunk/versions.cfg -=- Modified: Zope/trunk/versions.cfg === --- Zope/trunk/versions.cfg 2009-07-30 19:58:14 UTC (rev 102398) +++ Zope/trunk/versions.cfg 2009-07-30 19:59:01 UTC (rev 102399) @@ -12,7 +12,7 @@ ClientForm = 0.2.10 RestrictedPython = 3.5.1 ZConfig = 2.7.1 -ZODB3 = 3.9.0b2 +ZODB3 = 3.9.0b4 docutils = 0.5 lxml = 2.2 mechanize = 0.1.11 ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/branches/2.12/ Updated to new ZODB3 = 3.9.0b4
Log message for revision 102398: Updated to new ZODB3 = 3.9.0b4 Changed: U Zope/branches/2.12/doc/CHANGES.rst U Zope/branches/2.12/versions.cfg -=- Modified: Zope/branches/2.12/doc/CHANGES.rst === --- Zope/branches/2.12/doc/CHANGES.rst 2009-07-30 19:55:27 UTC (rev 102397) +++ Zope/branches/2.12/doc/CHANGES.rst 2009-07-30 19:58:14 UTC (rev 102398) @@ -13,6 +13,7 @@ - Updated packages: + - ZODB3 = 3.9.0b4 - zope.testing = 3.7.7 - scripts: Added 'runzope' and 'zopectl' as entry points for instance scripts. Modified: Zope/branches/2.12/versions.cfg === --- Zope/branches/2.12/versions.cfg 2009-07-30 19:55:27 UTC (rev 102397) +++ Zope/branches/2.12/versions.cfg 2009-07-30 19:58:14 UTC (rev 102398) @@ -13,7 +13,7 @@ ClientForm = 0.2.10 RestrictedPython = 3.5.1 ZConfig = 2.7.1 -ZODB3 = 3.9.0b2 +ZODB3 = 3.9.0b4 docutils = 0.5 lxml = 2.2 mechanize = 0.1.11 ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/trunk/ Moved ``Products/Five/security.py`` into the AccessControl package.
Log message for revision 102404: Moved ``Products/Five/security.py`` into the AccessControl package. Changed: U Zope/trunk/doc/CHANGES.rst U Zope/trunk/src/AccessControl/permissions.zcml A Zope/trunk/src/AccessControl/security.py U Zope/trunk/src/Products/Five/browser/metaconfigure.py U Zope/trunk/src/Products/Five/browser/tests/test_menu.py U Zope/trunk/src/Products/Five/browser/tests/test_zope3security.py U Zope/trunk/src/Products/Five/form/metaconfigure.py U Zope/trunk/src/Products/Five/metaconfigure.py U Zope/trunk/src/Products/Five/permissions.zcml U Zope/trunk/src/Products/Five/security.py U Zope/trunk/src/Products/Five/tests/test_security.py U Zope/trunk/src/Products/Five/viewlet/metaconfigure.py U Zope/trunk/src/Testing/ZopeTestCase/placeless.py U Zope/trunk/src/Zope2/utilities/skel/etc/site.zcml -=- Modified: Zope/trunk/doc/CHANGES.rst === --- Zope/trunk/doc/CHANGES.rst 2009-07-30 20:17:45 UTC (rev 102403) +++ Zope/trunk/doc/CHANGES.rst 2009-07-30 20:25:28 UTC (rev 102404) @@ -11,6 +11,8 @@ Restructuring + +- Moved ``Products/Five/security.py`` into the AccessControl package. + - Moved ``Products/Five/traversing.zcml`` directly into the configure.zcml. - Moved zope.security-style permission registrations from Products.Five into Modified: Zope/trunk/src/AccessControl/permissions.zcml === --- Zope/trunk/src/AccessControl/permissions.zcml 2009-07-30 20:17:45 UTC (rev 102403) +++ Zope/trunk/src/AccessControl/permissions.zcml 2009-07-30 20:25:28 UTC (rev 102404) @@ -1,6 +1,13 @@ configure xmlns=http://namespaces.zope.org/zope; i18n_domain=Zope2 + !-- Create permissions declared in ZCML if they don't exist already -- + subscriber +for=zope.security.interfaces.IPermission + zope.component.interfaces.IRegistered +handler=.security.create_permission_from_permission_directive +/ + permission id=zope2.Public title=Public, everyone can access Copied: Zope/trunk/src/AccessControl/security.py (from rev 102379, Zope/trunk/src/Products/Five/security.py) === --- Zope/trunk/src/AccessControl/security.py(rev 0) +++ Zope/trunk/src/AccessControl/security.py2009-07-30 20:25:28 UTC (rev 102404) @@ -0,0 +1,175 @@ +## +# +# Copyright (c) 2004-2009 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. +# +## +Security handling + + +from zope.component import getUtility +from zope.component import queryUtility +from zope.interface import classProvides +from zope.interface import implements +from zope.security.checker import CheckerPublic +from zope.security.interfaces import IInteraction +from zope.security.interfaces import ISecurityPolicy +from zope.security.interfaces import IPermission +from zope.security.management import thread_local +from zope.security.simplepolicies import ParanoidSecurityPolicy + +from AccessControl.SecurityInfo import ClassSecurityInfo +from AccessControl.SecurityManagement import getSecurityManager +from AccessControl.Permission import _registeredPermissions +from AccessControl.Permission import pname + +import Products + +from AccessControl.Permission import ApplicationDefaultPermissions + +CheckerPublicId = 'zope.Public' +CheckerPrivateId = 'zope2.Private' + +def getSecurityInfo(klass): +sec = {} +info = vars(klass) +if info.has_key('__ac_permissions__'): +sec['__ac_permissions__'] = info['__ac_permissions__'] +for k, v in info.items(): +if k.endswith('__roles__'): +sec[k] = v +return sec + +def clearSecurityInfo(klass): +sec = {} +info = vars(klass) +if info.has_key('__ac_permissions__'): +delattr(klass, '__ac_permissions__') +for k, v in info.items(): +if k.endswith('__roles__'): +delattr(klass, k) + +def checkPermission(permission, object, interaction=None): +Return whether security policy allows permission on object. + +Arguments: +permission -- A permission name +object -- The object being accessed according to the permission +interaction -- This zope.security concept has no equivalent in Zope 2, +and is ignored. + +checkPermission is
[Zope-dev] Zope Tests: 3 OK, 5 Failed
Summary of messages to the zope-tests list. Period Wed Jul 29 12:00:00 2009 UTC to Thu Jul 30 12:00:00 2009 UTC. There were 8 messages: 8 from Zope Tests. Test failures - Subject: FAILED (failures=1) : Zope-2.12 Python-2.6.2 : Linux From: Zope Tests Date: Wed Jul 29 20:50:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012178.html Subject: FAILED (failures=1) : Zope-2.12-alltests Python-2.4.6 : Linux From: Zope Tests Date: Wed Jul 29 20:52:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012179.html Subject: FAILED (failures=7) : Zope-2.12-alltests Python-2.6.2 : Linux From: Zope Tests Date: Wed Jul 29 20:54:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012180.html Subject: FAILED (failures=1) : Zope-trunk Python-2.6.2 : Linux From: Zope Tests Date: Wed Jul 29 20:56:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012181.html Subject: FAILED (failures=7) : Zope-trunk-alltests Python-2.6.2 : Linux From: Zope Tests Date: Wed Jul 29 20:58:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012182.html Tests passed OK --- Subject: OK : Zope-2.10 Python-2.4.6 : Linux From: Zope Tests Date: Wed Jul 29 20:44:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012175.html Subject: OK : Zope-2.11 Python-2.4.6 : Linux From: Zope Tests Date: Wed Jul 29 20:46:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012176.html Subject: OK : Zope-2.12 Python-2.4.6 : Linux From: Zope Tests Date: Wed Jul 29 20:48:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012177.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] zope.testing 3.8 fails in mysterious ways
Hi, I'm running the plone.z3cform tests in a Zope 2.10 instance with zope.testing 3.8 installed. All other tests seem to work OK, but with plone.z3cform's tests, I get: $ ./bin/instance test -s plone.z3cform Running tests at level 1 Running plone.z3cform.testing_zcml_layer tests: Set up plone.z3cform.testing_zcml_layer in 0.972 seconds. Running: .. Ran 26 tests with 0 failures and 0 errors in 0.219 seconds. Running zope.testing.testrunner.layer.UnitTests tests: Tear down plone.z3cform.testing_zcml_layer ... not supported Exception in thread Thread-1: Traceback (most recent call last): File /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py, line 442, in __bootstrap self.run() File /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py, line 422, in run self.__target(*self.__args, **self.__kwargs) File /Users/optilude/.buildout/eggs/zope.testing-3.8.0-py2.4.egg/zope/testing/testrunner/runner.py, line 418, in spawn_layer_in_subprocess while nfail 0: UnboundLocalError: local variable 'nfail' referenced before assignment Total: 26 tests, 0 failures, 0 errors in 5.626 seconds. The tests are here: http://svn.zope.org/repos/main/plone.z3cform/trunk/plone/z3cform/tests.py Any ideas? Martin -- Author of `Professional Plone Development`, a book for developers who want to work with Plone. See http://martinaspeli.net/plone-book ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Integrating Five code properly into Zope2?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hanno Schlichting wrote: Hi. I'd like to push code and ZCML from Products.Five into the appropriate places in Zope2. For example event.zcml registering events for OFS items, should live in the OFS package. i18n.zcml setting up stuff for the request or the publisher should live in the ZPublisher package, security bridging code for zope.security vs. AccessControl should go into AccessControl, test setup and support code should live in Testing, ... startup code and site.zcml handling should live in the Zope2.Startup package and so on. There's probably some bridging code left in Five which has no real place to go in Zope2. Like formlib wrapping / bridging code - I'd leave this in Five for the time being until we get a clearer picture of what is actually left in there. +1 in general, as long as we don't let any zope.app dependencies leak out while this happens. I would also be +1 to removing the formlib and viewlet integration into separate eggs: I don't think either of them belongs in core Zope2 at all, and anybody who wants the features should be able to pull in the eggs (call them 'five.formlib' and 'five.viewlets', or something). Given our current deprecation policy, I'd leave indefinite backwards compatibility imports in place and do the same for ZCML files. It would be work targeted at the lucky numbered Zope 2.13 ;-) Do people generally agree with this direction? Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKcdvB+gerLs4ltQ4RAgBxAKDPuibqOixBJeq4rqoy0hIA6UOmFwCghNV6 d0q0OcjWROdQqdCG+dJFzCg= =wRG6 -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.testing 3.8 fails in mysterious ways
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Aspeli wrote: Hi, I'm running the plone.z3cform tests in a Zope 2.10 instance with zope.testing 3.8 installed. All other tests seem to work OK, but with plone.z3cform's tests, I get: $ ./bin/instance test -s plone.z3cform Running tests at level 1 Running plone.z3cform.testing_zcml_layer tests: Set up plone.z3cform.testing_zcml_layer in 0.972 seconds. Running: .. Ran 26 tests with 0 failures and 0 errors in 0.219 seconds. Running zope.testing.testrunner.layer.UnitTests tests: Tear down plone.z3cform.testing_zcml_layer ... not supported Exception in thread Thread-1: Traceback (most recent call last): File /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py, line 442, in __bootstrap self.run() File /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py, line 422, in run self.__target(*self.__args, **self.__kwargs) File /Users/optilude/.buildout/eggs/zope.testing-3.8.0-py2.4.egg/zope/testing/testrunner/runner.py, line 418, in spawn_layer_in_subprocess while nfail 0: UnboundLocalError: local variable 'nfail' referenced before assignment Total: 26 tests, 0 failures, 0 errors in 5.626 seconds. The tests are here: http://svn.zope.org/repos/main/plone.z3cform/trunk/plone/z3cform/tests.py Any ideas? I would just use the version of zope.testing which shipped with Zope 2.10? That would be 3.0, I think: $ svn propget svn:externals \ projects/Zope-CVS/Zope-2.10-branch/lib/python/zope | grep testing testing \ svn://svn.zope.org/repos/main/zope.testing/tags/3.0/src/zope/testing Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKcdyK+gerLs4ltQ4RApNjAJoCIJ4hNx08eF/PKj3y/L051dUkhwCeLN7K K3q1e+tiIaUghczSiE95dYc= =3033 -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Integrating Five code properly into Zope2?
On Thu, Jul 30, 2009 at 7:43 PM, Tres Seavertsea...@palladion.com wrote: Hanno Schlichting wrote: I'd like to push code and ZCML from Products.Five into the appropriate places in Zope2. +1 in general, as long as we don't let any zope.app dependencies leak out while this happens. Hhm, personally I don't care that much if we fix and remove the zope.app dependencies later on from Five or somewhere else inside the Zope2 distribution. But I'll try to keep an eye on that. I would also be +1 to removing the formlib and viewlet integration into separate eggs: I don't think either of them belongs in core Zope2 at all, and anybody who wants the features should be able to pull in the eggs (call them 'five.formlib' and 'five.viewlets', or something). I thought about that as well for a while. If more people agree on that, I think this is sensible to do. For both of these leaving indefinite compatibility imports in place that point to the new packages defeats the purpose of loosing the dependencies, though. So how exactly would a deprecation of this code look like? Make the two new five.* distributions available with the current code now, use zope.deprecation to import but warn about the removal in 2.13 and remove the whole code in 2.14? Or can we still stick the deprecation into 2.12 and already remove in 2.13? Hanno ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Integrating Five code properly into Zope2?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hanno Schlichting wrote: On Thu, Jul 30, 2009 at 7:43 PM, Tres Seavertsea...@palladion.com wrote: I would also be +1 to removing the formlib and viewlet integration into separate eggs: I don't think either of them belongs in core Zope2 at all, and anybody who wants the features should be able to pull in the eggs (call them 'five.formlib' and 'five.viewlets', or something). I thought about that as well for a while. If more people agree on that, I think this is sensible to do. For both of these leaving indefinite compatibility imports in place that point to the new packages defeats the purpose of loosing the dependencies, though. So how exactly would a deprecation of this code look like? Make the two new five.* distributions available with the current code now, use zope.deprecation to import but warn about the removal in 2.13 and remove the whole code in 2.14? Or can we still stick the deprecation into 2.12 and already remove in 2.13? +1 to the latter, with a prominent note in the changelogs. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKceV9+gerLs4ltQ4RAgVxAJ4m8jiC4eonh2gkRbUojNa0aQFo6wCfVoLY Gh9Iya3A2tKLz5lY9B6+ta0= =hFaq -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.testing 3.8 fails in mysterious ways
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Aspeli wrote: Hi, I'm running the plone.z3cform tests in a Zope 2.10 instance with zope.testing 3.8 installed. All other tests seem to work OK, but with plone.z3cform's tests, I get: $ ./bin/instance test -s plone.z3cform Running tests at level 1 Running plone.z3cform.testing_zcml_layer tests: Set up plone.z3cform.testing_zcml_layer in 0.972 seconds. Running: .. Ran 26 tests with 0 failures and 0 errors in 0.219 seconds. Running zope.testing.testrunner.layer.UnitTests tests: Tear down plone.z3cform.testing_zcml_layer ... not supported Exception in thread Thread-1: Traceback (most recent call last): File /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py, line 442, in __bootstrap self.run() File /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py, line 422, in run self.__target(*self.__args, **self.__kwargs) File /Users/optilude/.buildout/eggs/zope.testing-3.8.0-py2.4.egg/zope/testing/testrunner/runner.py, line 418, in spawn_layer_in_subprocess while nfail 0: UnboundLocalError: local variable 'nfail' referenced before assignment Total: 26 tests, 0 failures, 0 errors in 5.626 seconds. The tests are here: http://svn.zope.org/repos/main/plone.z3cform/trunk/plone/z3cform/tests.py Any ideas? I would just use the version of zope.testing which shipped with Zope 2.10? That would be 3.0, I think: $ svn propget svn:externals \ projects/Zope-CVS/Zope-2.10-branch/lib/python/zope | grep testing testing \ svn://svn.zope.org/repos/main/zope.testing/tags/3.0/src/zope/testing Unfortunately, I've got other packages that depend on a newer zope.testing (specifically, collective.testcaselayer). But I thought zope.testing aimed to be able to run any valid tests, so it sounds like a bug in zope.testing regardless, at least since every other test I've run in the same instance work fine. Martin -- Author of `Professional Plone Development`, a book for developers who want to work with Plone. See http://martinaspeli.net/plone-book ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.testing 3.8 fails in mysterious ways
On Thu, Jul 30, 2009 at 9:33 PM, Martin Aspelioptilude+li...@gmail.com wrote: Unfortunately, I've got other packages that depend on a newer zope.testing (specifically, collective.testcaselayer). But I thought zope.testing aimed to be able to run any valid tests, so it sounds like a bug in zope.testing regardless, at least since every other test I've run in the same instance work fine. The traceback you pasted shows an UnboundLocalError. What about looking at the source and figuring out why that local variable is not defined? -- Sidnei ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope] moving a zope install
Before I investigate any further perhaps someone here may be able to save me a little time. Is it possible to move a zope installation from one directory to another and have zope.conf pick up the correct paths dynamically? I've looked at the zope on a cd but I want the db to be writeable. Thanks Garry ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] moving a zope install
+---[ Garry Saddington ]-- | Before I investigate any further perhaps someone here may be able to | save me a little time. | Is it possible to move a zope installation from one directory to another | and have zope.conf pick up the correct paths dynamically? | I've looked at the zope on a cd but I want the db to be writeable. Not sure what operating system you're using, but, if you're on a unix-like system, you can use a UnionFS mount to overlay the CD with a writable area. You can then either replace the zope.conf with your own one or the Data.fs with a writable one. This assumes you want to run it from the CD and not just copy it to a running Zope. Alternatively you can construct a zope.conf that sets up clienthome variable for the mountpoint with some known location (reference to the tmpdir, or a known application area), before you write it to the CD -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Simple Z3C.Forms question
This is a simple question, I'm using z3c.form, I have an AddForm and I created the view with the wrap_form method. I'm using invariants, the problem is whenever something's wrong I get a message saying There were some errors. I'd like to get the explicit message that the invariant raises... Thank you for your help! ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Hide zope http signature
How to hide/custom the zope server signature from http header? There is some way to do it? Adding it to apache configuration only works for html, php or any other page but doesn't work for zope pages, remembering that I'm using zope behind apache. Thanks for any suggestion. Regards, - - iarly selbir | ski0s :wq! ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )