[Zope-Checkins] SVN: Products.Five/branches/1.3/ Five bugfix release: Add class as alias to content
Log message for revision 66268: Five bugfix release: Add class as alias to content Changed: U Products.Five/branches/1.3/CHANGES.txt U Products.Five/branches/1.3/meta.zcml U Products.Five/branches/1.3/version.txt -=- Modified: Products.Five/branches/1.3/CHANGES.txt === --- Products.Five/branches/1.3/CHANGES.txt 2006-03-31 09:40:54 UTC (rev 66267) +++ Products.Five/branches/1.3/CHANGES.txt 2006-03-31 16:21:33 UTC (rev 66268) @@ -2,9 +2,19 @@ Five Changes +Five 1.3.4 (2006-03-31) +=== + +Bugfixes + + +* Added the ``class`` ZCML directive as an alias to ``content``. + Five 1.3.3 (2006-03-26) === +This version is also included in Five 2.9.2 + Bugfixes Modified: Products.Five/branches/1.3/meta.zcml === --- Products.Five/branches/1.3/meta.zcml2006-03-31 09:40:54 UTC (rev 66267) +++ Products.Five/branches/1.3/meta.zcml2006-03-31 16:21:33 UTC (rev 66268) @@ -51,6 +51,29 @@ / meta:complexDirective +name=class +schema=zope.app.component.metadirectives.IClassDirective +handler=.metaconfigure.ContentDirective + + + meta:subdirective + name=implements + schema=zope.app.component.metadirectives.IImplementsSubdirective + / + + meta:subdirective + name=require + schema=zope.app.component.metadirectives.IRequireSubdirective + / + + meta:subdirective + name=allow + schema=zope.app.component.metadirectives.IAllowSubdirective + / + +/meta:complexDirective + +meta:complexDirective name=content schema=zope.app.component.metadirectives.IClassDirective handler=.metaconfigure.ContentDirective Modified: Products.Five/branches/1.3/version.txt === --- Products.Five/branches/1.3/version.txt 2006-03-31 09:40:54 UTC (rev 66267) +++ Products.Five/branches/1.3/version.txt 2006-03-31 16:21:33 UTC (rev 66268) @@ -1 +1 @@ -Five 1.3.3 +Five 1.3.4 ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Products.Five/branches/1.4/ forwardport bugfix: Add class as alias to content
Log message for revision 66269: forwardport bugfix: Add class as alias to content Changed: U Products.Five/branches/1.4/CHANGES.txt U Products.Five/branches/1.4/meta.zcml -=- Modified: Products.Five/branches/1.4/CHANGES.txt === --- Products.Five/branches/1.4/CHANGES.txt 2006-03-31 16:21:33 UTC (rev 66268) +++ Products.Five/branches/1.4/CHANGES.txt 2006-03-31 16:23:20 UTC (rev 66269) @@ -27,9 +27,19 @@ NOTE: Anyone who copied the Five site.zcml to their $INSTANCE_HOME/etc/ directory is going to need to update it. +Five 1.3.4 (2006-03-31) +=== + +Bugfixes + + +* Added the ``class`` ZCML directive as an alias to ``content``. + Five 1.3.3 (2006-03-26) === +This version is also included in Five 2.9.2 + Bugfixes Modified: Products.Five/branches/1.4/meta.zcml === --- Products.Five/branches/1.4/meta.zcml2006-03-31 16:21:33 UTC (rev 66268) +++ Products.Five/branches/1.4/meta.zcml2006-03-31 16:23:20 UTC (rev 66269) @@ -51,6 +51,29 @@ / meta:complexDirective +name=class +schema=zope.app.component.metadirectives.IClassDirective +handler=.metaconfigure.ContentDirective + + + meta:subdirective + name=implements + schema=zope.app.component.metadirectives.IImplementsSubdirective + / + + meta:subdirective + name=require + schema=zope.app.component.metadirectives.IRequireSubdirective + / + + meta:subdirective + name=allow + schema=zope.app.component.metadirectives.IAllowSubdirective + / + +/meta:complexDirective + +meta:complexDirective name=content schema=zope.app.component.metadirectives.IClassDirective handler=.metaconfigure.ContentDirective ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Products.Five/trunk/ forwardport bugfix: Add class as alias to content
Log message for revision 66270: forwardport bugfix: Add class as alias to content Changed: U Products.Five/trunk/CHANGES.txt U Products.Five/trunk/meta.zcml -=- Modified: Products.Five/trunk/CHANGES.txt === --- Products.Five/trunk/CHANGES.txt 2006-03-31 16:23:20 UTC (rev 66269) +++ Products.Five/trunk/CHANGES.txt 2006-03-31 16:25:43 UTC (rev 66270) @@ -8,6 +8,10 @@ Features +* Add python-packages-as-zope-products support which basically allows + for using any python package as a zope product without it having to + live in Products/ + * Add zope.formlib support. Please see ``doc/formlib.txt`` for more information. @@ -23,9 +27,19 @@ NOTE: Anyone who copied the Five site.zcml to their $INSTANCE_HOME/etc/ directory is going to need to update it. +Five 1.3.4 (2006-03-31) +=== + +Bugfixes + + +* Added the ``class`` ZCML directive as an alias to ``content``. + Five 1.3.3 (2006-03-26) === +This version is also included in Five 2.9.2 + Bugfixes Modified: Products.Five/trunk/meta.zcml === --- Products.Five/trunk/meta.zcml 2006-03-31 16:23:20 UTC (rev 66269) +++ Products.Five/trunk/meta.zcml 2006-03-31 16:25:43 UTC (rev 66270) @@ -51,6 +51,29 @@ / meta:complexDirective +name=class +schema=zope.app.component.metadirectives.IClassDirective +handler=.metaconfigure.ContentDirective + + + meta:subdirective + name=implements + schema=zope.app.component.metadirectives.IImplementsSubdirective + / + + meta:subdirective + name=require + schema=zope.app.component.metadirectives.IRequireSubdirective + / + + meta:subdirective + name=allow + schema=zope.app.component.metadirectives.IAllowSubdirective + / + +/meta:complexDirective + +meta:complexDirective name=content schema=zope.app.component.metadirectives.IClassDirective handler=.metaconfigure.ContentDirective ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Products.Five/branches/1.2/ Five bugfix release: Add class as alias to content
Log message for revision 66271: Five bugfix release: Add class as alias to content Changed: U Products.Five/branches/1.2/CHANGES.txt U Products.Five/branches/1.2/meta.zcml U Products.Five/branches/1.2/version.txt -=- Modified: Products.Five/branches/1.2/CHANGES.txt === --- Products.Five/branches/1.2/CHANGES.txt 2006-03-31 16:25:43 UTC (rev 66270) +++ Products.Five/branches/1.2/CHANGES.txt 2006-03-31 16:35:05 UTC (rev 66271) @@ -2,6 +2,14 @@ Five Changes +Five 1.2.3 (2006-03-31) +=== + +Bugfixes + + +* Added the ``class`` ZCML directive as an alias to ``content``. + Five 1.2.2 (2006-03-26) === Modified: Products.Five/branches/1.2/meta.zcml === --- Products.Five/branches/1.2/meta.zcml2006-03-31 16:25:43 UTC (rev 66270) +++ Products.Five/branches/1.2/meta.zcml2006-03-31 16:35:05 UTC (rev 66271) @@ -63,6 +63,29 @@ / meta:complexDirective +name=class +schema=zope.app.component.metadirectives.IClassDirective +handler=.metaconfigure.ContentDirective + + + meta:subdirective + name=implements + schema=zope.app.component.metadirectives.IImplementsSubdirective + / + + meta:subdirective + name=require + schema=zope.app.component.metadirectives.IRequireSubdirective + / + + meta:subdirective + name=allow + schema=zope.app.component.metadirectives.IAllowSubdirective + / + +/meta:complexDirective + +meta:complexDirective name=content schema=zope.app.component.metadirectives.IClassDirective handler=.metaconfigure.ContentDirective Modified: Products.Five/branches/1.2/version.txt === --- Products.Five/branches/1.2/version.txt 2006-03-31 16:25:43 UTC (rev 66270) +++ Products.Five/branches/1.2/version.txt 2006-03-31 16:35:05 UTC (rev 66271) @@ -1 +1 @@ -Five 1.2.2 +Five 1.2.3 ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Products.Five/tags/1.0.3/ Remove prematurely created tag
Log message for revision 66272: Remove prematurely created tag Changed: D Products.Five/tags/1.0.3/ -=- ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Products.Five/branches/philikon-fix-lookup-priorities/ Get rid of no longer needed branch
Log message for revision 66274: Get rid of no longer needed branch Changed: D Products.Five/branches/philikon-fix-lookup-priorities/ -=- ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Products.Five/branches/1.0/ Get rid of monkey which is unnecessary in Zope 2.8
Log message for revision 66276: Get rid of monkey which is unnecessary in Zope 2.8 Changed: U Products.Five/branches/1.0/__init__.py D Products.Five/branches/1.0/monkey.py -=- Modified: Products.Five/branches/1.0/__init__.py === --- Products.Five/branches/1.0/__init__.py 2006-03-31 16:50:06 UTC (rev 66275) +++ Products.Five/branches/1.0/__init__.py 2006-03-31 16:50:28 UTC (rev 66276) @@ -18,12 +18,8 @@ import Acquisition from Globals import INSTANCE_HOME -import monkey import zcml -# trigger monkey patches -monkey.monkeyPatch() - # public API provided by Five # usage: from Products.Five import something from browser import BrowserView Deleted: Products.Five/branches/1.0/monkey.py === --- Products.Five/branches/1.0/monkey.py2006-03-31 16:50:06 UTC (rev 66275) +++ Products.Five/branches/1.0/monkey.py2006-03-31 16:50:28 UTC (rev 66276) @@ -1,40 +0,0 @@ -## -# -# Copyright (c) 2004, 2005 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. -# -## -Bad monkey! - -$Id$ - -def monkeyPatch(): -Trigger all monkey patches needed to make Five work. - -This adjusts Zope 2 classes to make them work with Zope 3. - -Monkey patches are kept to a minimum level. - - -from ZPublisher.HTTPRequest import HTTPRequest - -def getPresentationSkin(self): -return getattr(self, '_presentation_skin', None) - -def setPresentationSkin(self, skin): -self._presentation_skin = skin - -def getURL(self): -return self.URL - -HTTPRequest.getPresentationSkin = getPresentationSkin -HTTPRequest.setPresentationSkin = setPresentationSkin -HTTPRequest.__contains__ = lambda self, key: self.has_key(key) -HTTPRequest.getURL = getURL ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Products.Five/branches/1.0/tests/test_event.py ZODB 3.4-style savepoints
Log message for revision 66277: ZODB 3.4-style savepoints Changed: U Products.Five/branches/1.0/tests/test_event.py -=- Modified: Products.Five/branches/1.0/tests/test_event.py === --- Products.Five/branches/1.0/tests/test_event.py 2006-03-31 16:50:28 UTC (rev 66276) +++ Products.Five/branches/1.0/tests/test_event.py 2006-03-31 16:51:28 UTC (rev 66277) @@ -21,6 +21,8 @@ from Products.Five.tests.fivetest import * +import transaction + from Products.Five.tests.products.FiveTest.subscriber import clear from Products.Five.tests.products.FiveTest.subscriber import objectEventCatcher, \ objectAddedEventCatcher, objectMovedEventCatcher, \ @@ -62,7 +64,7 @@ manage_addSimpleContent(self.folder, 'foo', 'Foo') # somehow we need to at least commit a subtransaction to make # renaming succeed -get_transaction().commit(1) +transaction.savepoint() self.folder.manage_renameObject('foo', 'bar') bar = self.folder.bar events = objectEventCatcher.getEvents() @@ -96,7 +98,7 @@ manage_addSimpleContent(folder1, 'foo', 'Foo') foo = folder1.foo # need to trigger subtransaction before copy/paste can work -get_transaction().commit(1) +transaction.savepoint() cb = folder1.manage_cutObjects(['foo']) folder2.manage_pasteObjects(cb) newfoo = folder2.foo @@ -126,7 +128,7 @@ manage_addNoVerifyPasteFolder(self.folder, 'folder1') folder1 = self.folder.folder1 # need to trigger subtransaction before copy/paste can work -get_transaction().commit(1) +transaction.savepoint() cb = self.folder.manage_copyObjects(['foo']) folder1.manage_pasteObjects(cb) foo_copy = folder1.foo ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Products.Five/branches/1.0/ Make docs more Zope 2.8-friendly
Log message for revision 66278: Make docs more Zope 2.8-friendly Changed: U Products.Five/branches/1.0/COPYING.txt U Products.Five/branches/1.0/INSTALL.txt -=- Modified: Products.Five/branches/1.0/COPYING.txt === --- Products.Five/branches/1.0/COPYING.txt 2006-03-31 16:51:28 UTC (rev 66277) +++ Products.Five/branches/1.0/COPYING.txt 2006-03-31 16:52:05 UTC (rev 66278) @@ -6,19 +6,8 @@ Five contains source code derived from: -- Zope 3, copyright (C) 2001-2005 by Zope Corporation. Code that - falls under this copyright is prefixed with the following header: +- Zope 3, copyright (C) 2001-2005 by Zope Corporation. - Copyright (c) 2001-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. - - metaclass.py is derived from PEAK, copyright (C) 1996-2004 by Phillip J. Eby and Tyler C. Sarna. PEAK may be used under the same terms as Zope. Modified: Products.Five/branches/1.0/INSTALL.txt === --- Products.Five/branches/1.0/INSTALL.txt 2006-03-31 16:51:28 UTC (rev 66277) +++ Products.Five/branches/1.0/INSTALL.txt 2006-03-31 16:52:05 UTC (rev 66278) @@ -1,74 +1,18 @@ How to install Five +=== -Requirements for Five 1.0 -= +Requirements for Five 1.0.3 +--- -* Zope 2.7.4+ with python 2.3.x. Zope versions lower than Zope 2.7.4 - may work, but no guarantees. +* Zope 2.8.0+ with Python 2.3.x. -* Zope X3.0.0, found here: http://zope.org/Products/ZopeX3/3.0.0final/ +Note that Five 1.0 is also part of Zope 2.8. You can still install a +newer Five version in your instance, if you like. It will override +the Five product inside the Zope tree. -Note that Five 1.0 is also part of Zope 2.8, so if you are using Zope -2.8, you do not need to install Five separately, unless you want to -use a version of Five later than 1.0. -Installing Five -=== +Running the tests +- -Installing Five is relatively straightforward. - -* Select a Zope 2.7 instance. - -* Download and install Zope X3.0.0. You can get it compiled and - installed by: - -* Typing ``configure``. When you're experimenting, typically you - want to use the ``--prefix`` directive to install the binaries - to install it somewhere in your homedirectory. - -* ``make`` - -* ``make install`` - - On windows you can install choose to use the binary release instead. - - Alternatively you can check out the latest subversion version of - Zope X3.0 and typing ``make`` to produce it in-place. - -* You need to make your Zope 2.7 instance aware of Zope 3 so it can - import the ``zope``, ``persistent`` and ``transaction`` packages from it. - -* In non-ZEO setups, you can simply go to the ``etc/zope.conf`` of - your Zope 2.7 instance and add a ``path`` entry. If you used the - released version of Zope X3.0.0, use something like the following:: - -path /path/to/installed/Zope3/lib/python - - If you are instead using the subversion version, use:: - -path /path/to/Zope3/src - - If you have problems however, see the instructions for the ZEO - setup. - -* In ZEO setups (or some other circumstances), Zope 3's ZEO packages - will interfere with Zope 2's. In this case you can create a new - directory, symlink the ``zope``, ``persistent`` and ``transaction`` - packages in it and use this directory for the ``path`` entry in the - ``etc/zope.conf`` of your Zope 2.7 instance. - -* Next, install the Five product into your Zope 2.7 instance as a - product and restart Zope. Five should now be installed. - -* You can also install various products in the ``doc/products`` - subdirectory of Five by copying them into your ``Products`` - directory. In addition, you can look at ``tests/products/FiveTest``, - which is installed automatically when you run the Five tests. This - may contain examples of more recent features. - -Installing the tests - - For information on how to install the automatic Five tests, please see ``tests/README.txt``. ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Products.Five/branches/1.0/ svn:eol-style=native (mainly to reduce the diff between what's in Zope 2.8
Log message for revision 66280: svn:eol-style=native (mainly to reduce the diff between what's in Zope 2.8 branch and what's here) Changed: _U Products.Five/branches/1.0/COPYING.txt _U Products.Five/branches/1.0/INSTALL.txt _U Products.Five/branches/1.0/README.txt _U Products.Five/branches/1.0/ReuseUtils.py _U Products.Five/branches/1.0/TODO.txt _U Products.Five/branches/1.0/TrustedExpression.py _U Products.Five/branches/1.0/__init__.py _U Products.Five/branches/1.0/add.pt _U Products.Five/branches/1.0/adding.pt _U Products.Five/branches/1.0/adding.py _U Products.Five/branches/1.0/bridge.py _U Products.Five/branches/1.0/browserconfigure.py _U Products.Five/branches/1.0/configure.zcml _U Products.Five/branches/1.0/eventconfigure.py _U Products.Five/branches/1.0/five_template.pt _U Products.Five/branches/1.0/fiveconfigure.py _U Products.Five/branches/1.0/fivedirectives.py _U Products.Five/branches/1.0/interfaces.zcml _U Products.Five/branches/1.0/meta.zcml _U Products.Five/branches/1.0/metaclass.py _U Products.Five/branches/1.0/metaconfigure.py _U Products.Five/branches/1.0/pagetemplatefile.py _U Products.Five/branches/1.0/permissions.zcml _U Products.Five/branches/1.0/services.zcml _U Products.Five/branches/1.0/tests/README.txt _U Products.Five/branches/1.0/tests/adding.txt _U Products.Five/branches/1.0/tests/framework.py _U Products.Five/branches/1.0/tests/products/FiveTest/__init__.py _U Products.Five/branches/1.0/tests/products/FiveTest/bird.pt _U Products.Five/branches/1.0/tests/products/FiveTest/browser.py _U Products.Five/branches/1.0/tests/products/FiveTest/classes.py _U Products.Five/branches/1.0/tests/products/FiveTest/condor.pt _U Products.Five/branches/1.0/tests/products/FiveTest/configure.zcml _U Products.Five/branches/1.0/tests/products/FiveTest/falcon.pt _U Products.Five/branches/1.0/tests/products/FiveTest/fancycontent.py _U Products.Five/branches/1.0/tests/products/FiveTest/flamingo.pt _U Products.Five/branches/1.0/tests/products/FiveTest/flamingo2.pt _U Products.Five/branches/1.0/tests/products/FiveTest/helpers.py _U Products.Five/branches/1.0/tests/products/FiveTest/interfaces.py _U Products.Five/branches/1.0/tests/products/FiveTest/meta.zcml _U Products.Five/branches/1.0/tests/products/FiveTest/metaconfigure.py _U Products.Five/branches/1.0/tests/products/FiveTest/ostrich.pt _U Products.Five/branches/1.0/tests/products/FiveTest/ostrich2.pt _U Products.Five/branches/1.0/tests/products/FiveTest/overrides.zcml _U Products.Five/branches/1.0/tests/products/FiveTest/owl.pt _U Products.Five/branches/1.0/tests/products/FiveTest/seagull.pt _U Products.Five/branches/1.0/tests/products/FiveTest/simplecontent.py _U Products.Five/branches/1.0/tests/products/FiveTest/subscriber.py _U Products.Five/branches/1.0/tests/products/FiveTest/testing.zcml _U Products.Five/branches/1.0/tests/runalltests.py _U Products.Five/branches/1.0/tests/test_adding.py _U Products.Five/branches/1.0/tests/test_editform.py _U Products.Five/branches/1.0/tests/test_event.py _U Products.Five/branches/1.0/tests/test_five.py _U Products.Five/branches/1.0/tests/test_security2.py _U Products.Five/branches/1.0/tests/zopeconf.py _U Products.Five/branches/1.0/traversable.py _U Products.Five/branches/1.0/version.txt _U Products.Five/branches/1.0/zcml.py -=- Property changes on: Products.Five/branches/1.0/COPYING.txt ___ Name: svn:eol-style + native Property changes on: Products.Five/branches/1.0/INSTALL.txt ___ Name: svn:eol-style + native Property changes on: Products.Five/branches/1.0/README.txt ___ Name: svn:eol-style + native Property changes on: Products.Five/branches/1.0/ReuseUtils.py ___ Name: svn:eol-style + native Property changes on: Products.Five/branches/1.0/TODO.txt ___ Name: svn:eol-style + native Property changes on: Products.Five/branches/1.0/TrustedExpression.py ___ Name: svn:eol-style + native Property changes on: Products.Five/branches/1.0/__init__.py ___ Name: svn:eol-style + native Property changes on: Products.Five/branches/1.0/add.pt ___ Name: svn:eol-style + native Property changes on: Products.Five/branches/1.0/adding.pt ___ Name: svn:eol-style + native Property changes on: Products.Five/branches/1.0/adding.py
[Zope-Checkins] SVN: Products.Five/branches/1.3/CHANGES.txt Update with changes from 1.2 branch
Log message for revision 66283: Update with changes from 1.2 branch Changed: U Products.Five/branches/1.3/CHANGES.txt -=- Modified: Products.Five/branches/1.3/CHANGES.txt === --- Products.Five/branches/1.3/CHANGES.txt 2006-03-31 17:17:07 UTC (rev 66282) +++ Products.Five/branches/1.3/CHANGES.txt 2006-03-31 17:54:18 UTC (rev 66283) @@ -134,6 +134,14 @@ components has been removed as that functionality is now in the Zope 2 core as of Zope 2.9. +Five 1.2.3 (2006-03-31) +=== + +Bugfixes + + +* Added the ``class`` ZCML directive as an alias to ``content``. + Five 1.2.1 (2006-02-25) === ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Products.Five/branches/1.4/CHANGES.txt forgot a whole version there
Log message for revision 66286: forgot a whole version there Changed: U Products.Five/branches/1.4/CHANGES.txt -=- Modified: Products.Five/branches/1.4/CHANGES.txt === --- Products.Five/branches/1.4/CHANGES.txt 2006-03-31 17:56:47 UTC (rev 66285) +++ Products.Five/branches/1.4/CHANGES.txt 2006-03-31 17:57:03 UTC (rev 66286) @@ -167,6 +167,25 @@ * Added the ``class`` ZCML directive as an alias to ``content``. +Five 1.2.2 (2006-03-26) +=== + +Bugfixes + + +* A local utility registered with an derived interface will now be available + by the inherited interface as well, in the same way as Zope3. + +* Fixed look-up order during Five traversal. It is now as follows: + + 1. If an object has __bobo_traverse__, use it. + + 2. Otherwise do attribute look-up or, if that doesn't work, key item + lookup. + + 3. If neither __bobo_traverse__ nor attribute/key look-up work, it + tries to find a Zope 3-style view. + Five 1.2.1 (2006-02-25) === ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Products.Five/trunk/CHANGES.txt update changes from previous branches
Log message for revision 66287: update changes from previous branches Changed: U Products.Five/trunk/CHANGES.txt -=- Modified: Products.Five/trunk/CHANGES.txt === --- Products.Five/trunk/CHANGES.txt 2006-03-31 17:57:03 UTC (rev 66286) +++ Products.Five/trunk/CHANGES.txt 2006-03-31 17:58:11 UTC (rev 66287) @@ -2,8 +2,8 @@ Five Changes -Five 1.4 (unreleased) -= +Five 1.4b (2006-03-31) +== Features @@ -159,6 +159,33 @@ components has been removed as that functionality is now in the Zope 2 core as of Zope 2.9. +Five 1.2.3 (2006-03-31) +=== + +Bugfixes + + +* Added the ``class`` ZCML directive as an alias to ``content``. + +Five 1.2.2 (2006-03-26) +=== + +Bugfixes + + +* A local utility registered with an derived interface will now be available + by the inherited interface as well, in the same way as Zope3. + +* Fixed look-up order during Five traversal. It is now as follows: + + 1. If an object has __bobo_traverse__, use it. + + 2. Otherwise do attribute look-up or, if that doesn't work, key item + lookup. + + 3. If neither __bobo_traverse__ nor attribute/key look-up work, it + tries to find a Zope 3-style view. + Five 1.2.1 (2006-02-25) === ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Products.Five/tags/1.2.3/ Tag Five 1.2.3
Log message for revision 66288: Tag Five 1.2.3 Changed: A Products.Five/tags/1.2.3/ -=- Copied: Products.Five/tags/1.2.3 (from rev 66287, Products.Five/branches/1.2) ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Products.Five/tags/1.3.4/ Tag Five 1.3.4
Log message for revision 66289: Tag Five 1.3.4 Changed: A Products.Five/tags/1.3.4/ -=- Copied: Products.Five/tags/1.3.4 (from rev 66288, Products.Five/branches/1.3) ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-dev] makerequest issues
Several things: 1) there is a makerequest function in both Testing/makerequest.py and Testing/ZopeTestCase/utils.py. They are subtly different. Is there a deliberate reason for this? I notice that the one in utils.py lacks the recent fix for zope 3 views, and the one in makerequest.py lacks an ACTUAL_URL. 2) re. the bug which I just posted at http://www.zope.org/Collectors/Zope/2057 the issue is that if you have something that inherits Traversable, and wrap it with makerequest(), its getPhysicalPath() method is broken, because getPhysicalPath() tries to call getPhysicalPath() on all non-None aq_parents, and an HTTPRequest isn't Traversable. There are two possible fixes to that bug: I could hack around it in makerequest() by adding a fake getPhysicalPath(). I've uploaded a patch to the collector that does this. - or - I could change the conditional in Traversable.getPhysicalPath to look like so: def getPhysicalPath(self): ... p = aq_parent(aq_inner(self)) if p is not None and getattr(p, 'getPhysicalPath', None) is not None: path = p.getPhysicalPath() + path ... I was reluctant to do the latter because of two worries: a) I figured it's called all over the place and even slightly adding to its workload might negatively impact performance; the attached timeit script shows about a 15% slowdown in the method, however, I've not been able to measure any difference when hitting a default plone front page with ab. b) I don't know if there is code that relies on the current behavior of getPhysicalPath(), i.e. raise an AttributeError if p is something other than None but still lacks getPhysicalPath. I can't imagine a use case, but who knows... Opinions? -- Paul Winkler http://www.slinkp.com ___ 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] makerequest issues
One small correction: On Fri, Mar 31, 2006 at 12:31:55PM -0500, Paul Winkler wrote: ... I notice that the makerequest in ZopeTestCase/utils.py lacks the recent fix for zope 3 views No, it has that fix; I accidentally looked at it on a 2.9.1 tarball rather than the trunk or 2.9 branch. The rest of the questions still stand. -- Paul Winkler http://www.slinkp.com ___ 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] Is TF IDF implemented in zope search engine. On NED in Zope.
Hi all, I was reading a paper on News Event Detection (NED) and I started wondering how hard would it be to implement such a mechanism in Zope. My first step was to find out if Zope already implemented a vector space model (tf idf, maybe) for indexing and searching the documents. I know nothing of Zope internals yet. So, I'm counting with your help for me to start digging into Zope's. Best regards and thanks in advance, Manuel. ___ 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] Strange behavior with TAL and python: expressions
Floyd May wrote: Great and mighty Zope gurus, At last, some respect ;-) I have a template which calls a macro. Within the template, I tal:define a variable, 'form'. Within the macro, the 'form' variable (which is an FSForm object) is defined as None unless I access it using python expressions. Can you show us two small snippets of example code that show both ways of working? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] zope and nagios
robert rottermann wrote: When you have zope running on top of zeo and stop zeo you still can ask for a page and it will be returned correctly. We have a zeoup-based plugin that checks for that, lemme know if you're interested and I'll see if I can put it somewhere public. We run into situations where zope (actually a plone site) does not respond to user requests. However nagios does not complain. Huh? That makes no sense... what, exactly, was nagios checking here and what were the user requests? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] zope and nagios
On 3/30/06, robert rottermann [EMAIL PROTECTED] wrote: Hi there, I would like to test if zope is running using nagios. I would be gratefull if somebody could could point me to some info how to best do this. I am especially interested to learn what to test to detect a running but not responding zope. Just looking up a page seems not to do the trick. Looking up the page, and getting a timeout would be a good indicator, I should think. Anyway, we use a little nagios plugin from Gocept, get it from their SVN at: http://svn.gocept.com/repos/gocept/ZNagios/trunk/ (viewcvs view at: http://svn.gocept.com/viewcvs/ZNagios/trunk/) It let's us also monitor database size, reference count and the error log. -- Martijn Pieters ___ 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] single sign-on
You may want to contact Netsight(.co.uk), they have a working NTLM auth system for Zope/Plone. It's not gratis though, AFAIK. It's also possible to use ActiveDirectory for both Windows and Zope (via LDAPUserFolder). Stefan On 31. Mär 2006, at 09:03, Fernando Martins wrote: Interesting to know about, but it seems to be restricted to web sso, whereas I had in mind sso including the workstation login. It seems to be a full authentication mechanism on its own and it doesn't integrate with existing authentication systems, right? (no NTLM and it uses kerberos but on it's own) Thanks, Fernando -- Anything that happens, happens. --Douglas Adams ___ 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] zope and nagios
Actually, I'd love to have a look at your zeoup-based plugin myself :) As Chris suggests, it is normal for Zope to keep running after it loses its ZEO connection. If you're worried about that, setup a separate ZEO monitor. Cheers, J.F. -Original Message- From: Chris Withers [mailto:[EMAIL PROTECTED] Sent: March 31, 2006 2:47 AM To: robert rottermann Cc: Doyon, Jean-Francois; zope Subject: Re: [Zope] zope and nagios robert rottermann wrote: When you have zope running on top of zeo and stop zeo you still can ask for a page and it will be returned correctly. We have a zeoup-based plugin that checks for that, lemme know if you're interested and I'll see if I can put it somewhere public. We run into situations where zope (actually a plone site) does not respond to user requests. However nagios does not complain. Huh? That makes no sense... what, exactly, was nagios checking here and what were the user requests? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] zope and nagios
Chris Withers wrote: robert rottermann wrote: When you have zope running on top of zeo and stop zeo you still can ask for a page and it will be returned correctly. We have a zeoup-based plugin that checks for that, lemme know if you're interested and I'll see if I can put it somewhere public. yes thanks. I am interested We run into situations where zope (actually a plone site) does not respond to user requests. However nagios does not complain. Huh? That makes no sense... what, exactly, was nagios checking here and what were the user requests? nagios calls the intranet main page and checks if it finds designed by redCOR in the response. Somehow a not responding (vs not running) zope does not trigger the nagios rule. thanks robert ___ 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] Re: Zope + Apache on Quad Debian machine
Hugo Ramos wrote: Thank you all !! (very insane multiple exclamation marks) I've been trying different scenarios and Zope performance increased 10 to 11 times faster... Any chance you could share what you actually did to accomplish this? /Aton ___ 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] Preserving ownership on export/import
Is it possible to export an object from a Zope instance in such a way that, upon importing the object in a completely different Zope instance and assuming the two Zope instances share a common authentication source (e.g. LDAP), the original owner of the object is preserved? I want to migrate key content (such as member folders) from my old Plone 2.0 server to my new Plone 2.1 server. Unfortunately, the imported objects are now owned by me, not by the users that originally owned them. Zope seems to support me only taking ownership of an object, not transferring ownership to someone else. Best wishes, Matthew -- jsoffron: I'm generally pretty high on national defense... Mr. Bad Example: Careful...it's a gateway policy. Before you know it, you'll be mainlining the hard stuff like trade agreements. jsoffron: Too late...I've been freebasing Nafta all day... Sweet, sweet NAFTA. - As seen on Slashdot ___ 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] Preserving ownership on export/import
--On 31. März 2006 11:08:24 -0500 Matthew X. Economou [EMAIL PROTECTED] wrote: Unfortunately, the imported objects are now owned by me, not by the users that originally owned them. Zope seems to support me only taking ownership of an object, not transferring ownership to someone else. Isn't that supposed to work when you _don't touch_ the radio buttons for the ownership? -aj --- - Andreas JungZOPYX Ltd. Co KG- - E-mail: [EMAIL PROTECTED] Web: www.zopyx.com, www.zopyx.de - --- pgpVousKVgRer.pgp Description: PGP signature ___ 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] reading cookies from external methods
This is probably a silly question, but how does one read cookies from an external method without passing REQUEST to the method? The method should be callable both from dtml and from other external methods. I know I can do this: def foo(REQUEST): cookie = REQUEST.get('some_cookie') return cookie Can I get the same cookie without requiring boty my dtml methods and my other scripts and external methods that call foo() to be able to pass the REQUEST object? I'd like other methods to be able to say this: val = foo()# good without requiring them to be able to do this: val = foo(REQUEST) # bad Likewise, I'd much rather say this: dtml-var foo !-- good -- than this: dtml-var expr=foo(RESPONSE) !-- bad -- If I've just revealed myself to be tremendously ignorant of the right way of doing all these things in Zope, great! Please enlighten me. Thanks for any tips, j -- Jed Parsons Industrial Light + Magic (415) 746-2974 grep(do{for(ord){(!$_print$s\n)||(($O+=(($_-1)%6+1)and grep(vec($s,$O++,1)=1,1..int(($_-6*6-1)/6}},(split(//, ++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0. What!?))); ___ 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] reading cookies from external methods
+---[ Jed Parsons ]-- | | This is probably a silly question, but how does one read cookies from an | external method without passing REQUEST to the method? | | The method should be callable both from dtml and from other external | methods. | | I know I can do this: | | def foo(REQUEST): | cookie = REQUEST.get('some_cookie') | return cookie | | Can I get the same cookie without requiring boty my dtml methods and my | other scripts and external methods that call foo() to be able to pass | the REQUEST object? | | I'd like other methods to be able to say this: | | val = foo()# good | | without requiring them to be able to do this: | | val = foo(REQUEST) # bad | | Likewise, I'd much rather say this: | | dtml-var foo !-- good -- | | than this: | | dtml-var expr=foo(RESPONSE) !-- bad -- | | If I've just revealed myself to be tremendously ignorant of the right | way of doing all these things in Zope, great! Please enlighten me. | Thanks for any tips, def foo(context): cookie = context.REQUEST.get('some_cookie') return cookie dtml-var foo should pass in the current context. Although it's been a while since I played with dtml. -- Andrew Milton [EMAIL PROTECTED] ___ 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] single sign-on
On 3/30/06, Fernando Martins [EMAIL PROTECTED] wrote: Hi, I'm doing single sign-on using Apache+mod_ntlm+FastCGI. Since the last is deprecated, is there any alternative? FastCGI is deprecated, but it still can be used, correct? I also use it to pass REMOTE_USER from Apache to Zope (in a Shibboleth set-up), and nobody has given me an alternative using rewrite and proxy. ___ 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] reading cookies from external methods
- Original Message - From: Jed Parsons [EMAIL PROTECTED] To: zope@zope.org Sent: Friday, March 31, 2006 2:04 PM Subject: [Zope] reading cookies from external methods This is probably a silly question, but how does one read cookies from an external method without passing REQUEST to the method? The method should be callable both from dtml and from other external methods. I know I can do this: def foo(REQUEST): cookie = REQUEST.get('some_cookie') return cookie You just need to access REQUEST from within your external method, eg: def foo(self, otherparms...) REQUEST = self.REQUEST cookie = REQUEST.get('some_cookie') That should do it! HTH Jonathan ___ 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] reading cookies from external methods
Oh, cool. That's kind of magical. :) It looks like I can't get the RESPONSE that way, so if I want to do a RESPONSE.setCookie(...) somewhere, I have to pass REQUEST and RESPONSE as before, yes? Thanks much, j Jonathan wrote: - Original Message - From: Jed Parsons [EMAIL PROTECTED] To: zope@zope.org Sent: Friday, March 31, 2006 2:04 PM Subject: [Zope] reading cookies from external methods This is probably a silly question, but how does one read cookies from an external method without passing REQUEST to the method? The method should be callable both from dtml and from other external methods. I know I can do this: def foo(REQUEST): cookie = REQUEST.get('some_cookie') return cookie You just need to access REQUEST from within your external method, eg: def foo(self, otherparms...) REQUEST = self.REQUEST cookie = REQUEST.get('some_cookie') That should do it! HTH Jonathan -- Jed Parsons Industrial Light + Magic (415) 746-2974 grep(do{for(ord){(!$_print$s\n)||(($O+=(($_-1)%6+1)and grep(vec($s,$O++,1)=1,1..int(($_-6*6-1)/6}},(split(//, ++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0. What!?))); ___ 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] Re: Zope + Apache on Quad Debian machine
Well... I just followed some advices ppl gave me in the mailing list and also a feeling I had about using process affinity. I used taskset when starting Zope + Apache like this: cpu0: all other processes cpu1: 10 Apache (mod_ssl,mod_rewrite,mod_proxy) cpu2: 10 Apache (mod_ssl,mod_rewrite,mod_proxy) cpu3: Zope I also fine tunned Python check interval to the specific server using stones.py I've created a nice caching policy at Zope level and also at Apache level. Other stuff I usually did before already like regular ZODB packs and so on... After all this I got 64 requests/sec on ab. Before it was 5 or 6 requests/sec Cheers On 3/31/06, Anton Stonor [EMAIL PROTECTED] wrote: Hugo Ramos wrote: Thank you all !! (very insane multiple exclamation marks) I've been trying different scenarios and Zope performance increased 10 to 11 times faster... Any chance you could share what you actually did to accomplish this? /Aton -- Hugo Ramos - [EMAIL PROTECTED] http://www.orkut.com/Profile.aspx?uid=10082105466310142690 http://otugga.blogspot.com/ http://otuggapoesia.blogspot.com/ ___ 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] reading cookies from external methods
Hi, that's well documented in the Zope Book : http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/view Short answer : request = context.REQUEST response = request.RESPONSE Regards, Patrick. On 3/31/06, Jed Parsons [EMAIL PROTECTED] wrote: Oh, cool. That's kind of magical. :) It looks like I can't get the RESPONSE that way, so if I want to do a RESPONSE.setCookie(...) somewhere, I have to pass REQUEST and RESPONSE as before, yes? Thanks much, j Jonathan wrote: - Original Message - From: Jed Parsons [EMAIL PROTECTED] To: zope@zope.org Sent: Friday, March 31, 2006 2:04 PM Subject: [Zope] reading cookies from external methods This is probably a silly question, but how does one read cookies from an external method without passing REQUEST to the method? The method should be callable both from dtml and from other external methods. I know I can do this: def foo(REQUEST): cookie = REQUEST.get('some_cookie') return cookie You just need to access REQUEST from within your external method, eg: def foo(self, otherparms...) REQUEST = self.REQUEST cookie = REQUEST.get('some_cookie') That should do it! HTH Jonathan -- Jed Parsons Industrial Light + Magic (415) 746-2974 grep(do{for(ord){(!$_print$s\n)||(($O+=(($_-1)%6+1)and grep(vec($s,$O++,1)=1,1..int(($_-6*6-1)/6}},(split(//, ++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0. What!?))); ___ 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 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] reading cookies from external methods
Isn't that for scripts and not extensions (external methods)? Patrick Decat wrote: Hi, that's well documented in the Zope Book : http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/view Short answer : request = context.REQUEST response = request.RESPONSE Regards, Patrick. On 3/31/06, Jed Parsons [EMAIL PROTECTED] wrote: Oh, cool. That's kind of magical. :) It looks like I can't get the RESPONSE that way, so if I want to do a RESPONSE.setCookie(...) somewhere, I have to pass REQUEST and RESPONSE as before, yes? Thanks much, j Jonathan wrote: - Original Message - From: Jed Parsons [EMAIL PROTECTED] To: zope@zope.org Sent: Friday, March 31, 2006 2:04 PM Subject: [Zope] reading cookies from external methods This is probably a silly question, but how does one read cookies from an external method without passing REQUEST to the method? The method should be callable both from dtml and from other external methods. I know I can do this: def foo(REQUEST): cookie = REQUEST.get('some_cookie') return cookie You just need to access REQUEST from within your external method, eg: def foo(self, otherparms...) REQUEST = self.REQUEST cookie = REQUEST.get('some_cookie') That should do it! HTH Jonathan -- Jed Parsons Industrial Light + Magic (415) 746-2974 grep(do{for(ord){(!$_print$s\n)||(($O+=(($_-1)%6+1)and grep(vec($s,$O++,1)=1,1..int(($_-6*6-1)/6}},(split(//, ++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0. What!?))); ___ 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 ) -- Jed Parsons Industrial Light + Magic (415) 746-2974 grep(do{for(ord){(!$_print$s\n)||(($O+=(($_-1)%6+1)and grep(vec($s,$O++,1)=1,1..int(($_-6*6-1)/6}},(split(//, ++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0. What!?))); ___ 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] reading cookies from external methods
Jed Parsons wrote: Oh, cool. That's kind of magical. :) It looks like I can't get the RESPONSE that way, so if I want to do a RESPONSE.setCookie(...) somewhere, I have to pass REQUEST and RESPONSE as before, yes? No, RESPONSE is a subobject of REQUEST - see python scripts as an example :-) Regards Tino ___ 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] reading cookies from external methods
Awesome thank you, j Tino Wildenhain wrote: Jed Parsons wrote: Oh, cool. That's kind of magical. :) It looks like I can't get the RESPONSE that way, so if I want to do a RESPONSE.setCookie(...) somewhere, I have to pass REQUEST and RESPONSE as before, yes? No, RESPONSE is a subobject of REQUEST - see python scripts as an example :-) Regards Tino -- Jed Parsons Industrial Light + Magic (415) 746-2974 grep(do{for(ord){(!$_print$s\n)||(($O+=(($_-1)%6+1)and grep(vec($s,$O++,1)=1,1..int(($_-6*6-1)/6}},(split(//, ++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0. What!?))); ___ 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] Debugging Zope on Windows
I am using Zope 2.5.0 (binary release, python 2.1, win32-x86), and the python 2.1.3 distribution of from python.org as a service on a Windows 2000 server. I have heard that there is a way to debug zope and save error messages to a text file using the STUPID_LOG_FILE parameter however I'm not clear on how to implement this. I have tried adding the the paramter, STUPID_LOG_FILE=Zope.log to the Z2.py file. I modified the command line parameters C:\Python21\python.exe C:\PROGRA~1\Zope\z2.py -S for the registry value at: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Zope\Parameters\start to C:\Python21\python.exe C:\PROGRA~1\Zope\z2.py -S -D STUPID_LOG_FILE=Zope.log or should this be C:\Python21\python.exe C:\PROGRA~1\Zope\z2.py -S -D EVENT_LOG_FILE=Zope.log ??? Still, when I restart Zope, I'm not seeing the log file. Does anyone know how I might set this up properly on a Windows Machine? Alternatively, has anyone configured the z2.py file (or windows registry) to use a syslog utility (such as the Kwiki Syslog Daemon), found here: http://www.kiwisyslog.com/info_syslog.htm Sincerely, John T. ___ 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] Zope and Tomcat troubles
Hi, Since I installed Zope on my server Tomcat has stoped working, and I was wondering if any of you knew of a solution. When I try to load the management interface for TomCat, all I get is a blank page, the same when I try to log into OpenXchange... I installed zope from the Plone Suse 10 rpm bundle on a Suse 10 box. I hope this isn't too much off topic, but I'm quite sure Zope related. Thanks in advance, Mads Munch Hansen signature.asc Description: OpenPGP digital signature ___ 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] logging from external methods
I'm trying to perform some logging from external methods. I've discovered that, if you're not careful, you get more and more loggers each time Zope reloads the module. This leads to an ever-increasing number of identical entries in the log file, whose timestamps all match down to the millisecond. Currently, thanks to the helpful folks on python-list, I've got it down to two entries per time. My goal is to get exactly one log entry per event logged :) Here's the code I'm using in an external module. I set up a global _logger instance that various methods in the module use: import logging _logger = logging.getLogger(lois.access) _logger.setLevel(logging.DEBUG) if not _logger.handlers: _handler = logging.FileHandler(os.path.join(LOG_ROOT, 'access.log')) _formatter = logging.Formatter(%(asctime)s %(name)s %(levelname)s: %(message)s) _handler.setFormatter(_formatter) _logger.addHandler(_handler) _logger.propagate = 0 Each time a method calls _logger.info(some event), I get duplicate entries, like so: 2006-03-31 15:07:57,676 lois.access INFO: get wiki_ldap 0.html (jedp) 2006-03-31 15:07:57,676 lois.access INFO: get wiki_ldap 0.html (jedp) The _logger.handlers test is there to make sure I don't spawn a new handler each time the module gets reloaded. This makes a huge difference; without it, the number of duplicates grows and grows. Can anyone tell me how to get a logger to leave just one log entry from an external module? Many thanks. In perplexity, j -- Jed Parsons Industrial Light + Magic (415) 746-2974 grep(do{for(ord){(!$_print$s\n)||(($O+=(($_-1)%6+1)and grep(vec($s,$O++,1)=1,1..int(($_-6*6-1)/6}},(split(//, ++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0. What!?))); ___ 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] Zope and Tomcat troubles
Mads Munch Hansen wrote: Hi, Since I installed Zope on my server Tomcat has stoped working, and I was wondering if any of you knew of a solution. When I try to load the management interface for TomCat, all I get is a blank page, the same when I try to log into OpenXchange... I installed zope from the Plone Suse 10 rpm bundle on a Suse 10 box. I hope this isn't too much off topic, but I'm quite sure Zope related. At best its Suse related... But check: 1) did the package you installed conflict with tomcat and therefore removed components? 2) check with netstat -lntp (as root) which program binds which port (zope is there as python) and if zope runs on a port you need for tomcat just change the settings in zope.conf and restart your zope. Regards Tino ___ 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] Rotating Zope Log Files on Windows
I am using Zope 2.5.0 (binary release, python 2.1, win32-x86), and the python 2.1.3 distribution of from python.org as a service on a Windows 2000 server. I am looking for a solution to rotate zope log files on windows. I just started writing a batch file to accomplish this, and it seems to work fairly well: net stop ZOPE_INSTANCE_SERVICE_NAME FOR /f tokens=6-8 delims=/ %%G IN ('NET TIME \\%computername%') DO ( SET _mm=%%G SET _dd=%%H SET _yy=%%I ) FOR /f tokens=1,2 delims=: %%G IN ('time/t') DO ( SET _hr=%%G SET _min=%%H ) ECHO Today is Year: [%_yy%] Month: [%_mm%] Day: [%_dd%] ECHO The time is: [%_hr%]:[%_min%] REN C:\Zope_2_8_1_instance\log\Z2.log [EMAIL PROTECTED] del Z2.log rundll32.exe C:\Zope_2_8_1_instance\log\Z2.log net start Zope net start ZOPE_INSTANCE_SERVICE_NAME I am thinking of using windows scheduler to run this every night at midnight. But I wonder if anyone else worked on a similar solution and could pass along any advice. Or, conversely, does anyone know how to configure Zope 2.5.0 to send information that would normally be saved to the Z2.log file to a syslog utility, (such as the Kwiki Syslog Daemon), found here: http://www.kiwisyslog.com/info_syslog.htm Sincerely, John T. ___ 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] Adding an RSS Aggregator
Hello, I would like to add an RSS aggregator to my Zope site. I have found SilvaNews and CMFSin, but these require either the Silva or Plone CMF, which I would prefer not to set up just to get the aggregator. What would be the simplest way to add an aggregator to my Zope site? I have a basic 2.7 install. Thanks. -- Good day, eh. Chris ___ 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] Re: [ZF] ANNOUNCE: Zope Foundation is incorporated!
2006/3/25, Rob Page [EMAIL PROTECTED]: At long last the Zope Foundation is incorporated! Thanks to everyone who has helped get the Foundation to this point!! Congratulations! I can only guess at the enormous amount of work that took. kit -- kit BLAKE Infrae · infrae.com + 31 10 243 7051 Hoevestraat 10 · 3033GC · Rotterdam · The Netherlands ___ 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] single sign-on
Robert Boyd wrote: FastCGI is deprecated, but it still can be used, correct? I also use it to pass REMOTE_USER from Apache to Zope (in a Shibboleth set-up), and nobody has given me an alternative using rewrite and proxy. Well, you'll get a warning of the deprecation at start time. That's all, I believe. But since it is deprecated, bug fixing/improvements will not be done, like this one: filestream_iterator handling is not implemented for FastCGI protocol, see http://www.zope.org/Collectors/Zope/1647 Furthermore, I have another annoying problem with the current setup. I provide some files from the file system, through LocalFS, but it doesn't work with Apache+NTLM+FastCGI. Rather than getting the file I get the description of the object, like open file '/work/docs/MyFile.PDF', mode 'rb' at 0x42310974 Regards, Fernando ___ 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 )