[Zope-Checkins] SVN: Zope/trunk/src/Products/Five/browser/ Merge r110185 from 2.12 branch

2010-03-26 Thread Martin Aspeli
Log message for revision 110186:
  Merge r110185 from 2.12 branch

Changed:
  U   Zope/trunk/src/Products/Five/browser/resource.py
  U   Zope/trunk/src/Products/Five/browser/tests/resource.txt

-=-
Modified: Zope/trunk/src/Products/Five/browser/resource.py
===
--- Zope/trunk/src/Products/Five/browser/resource.py2010-03-26 12:39:58 UTC 
(rev 110185)
+++ Zope/trunk/src/Products/Five/browser/resource.py2010-03-26 12:48:34 UTC 
(rev 110186)
@@ -162,6 +162,11 @@
 resource = factory(name, filename)(self.request)
 resource.__name__ = name
 resource.__parent__ = self
+
+# We need to propagate security so that restrictedTraverse() will
+# work
+resource.__roles__ = self.__roles__
+
 return resource
 
 class DirectoryResourceFactory(ResourceFactory):

Modified: Zope/trunk/src/Products/Five/browser/tests/resource.txt
===
--- Zope/trunk/src/Products/Five/browser/tests/resource.txt 2010-03-26 
12:39:58 UTC (rev 110185)
+++ Zope/trunk/src/Products/Five/browser/tests/resource.txt 2010-03-26 
12:48:34 UTC (rev 110186)
@@ -69,7 +69,6 @@
   ... if not isinstance(resource, PageTemplateResource):
   ... self.assertEquals(resource(), base_url % r)
 
-
 Security
 
 
@@ -108,7 +107,15 @@
   ... path = base % resource
   ... checkRestricted(self.folder, 'context.restrictedTraverse(%s)' % 
path)
 
+Let's make sure restrictedTraverse() works directly, too. It used to get
+tripped up on subdirectories due to missing security declarations.
 
+   
self.folder.restrictedTraverse('++resource++fivetest_resources/resource.txt') 
is not None
+  True
+  
+   
self.folder.restrictedTraverse('++resource++fivetest_resources/resource_subdir/resource.txt')
 is not None
+  True
+
 Clean up
 
 

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
https://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] SVN: Zope/branches/2.12/ Hoping that silence (or apathy?) is consent here. :) Adding an event to indicate when streaming is starting in case of chunked/streamed responses using respons

2010-03-26 Thread Martin Aspeli
Log message for revision 110187:
  Hoping that silence (or apathy?) is consent here. :) Adding an event to 
indicate when streaming is starting in case of chunked/streamed responses using 
response.write()

Changed:
  U   Zope/branches/2.12/doc/CHANGES.rst
  U   Zope/branches/2.12/src/ZPublisher/HTTPResponse.py
  U   Zope/branches/2.12/src/ZPublisher/interfaces.py
  U   Zope/branches/2.12/src/ZPublisher/pubevents.py
  U   Zope/branches/2.12/src/ZPublisher/tests/testpubevents.py
  U   Zope/branches/2.12/src/ZServer/HTTPResponse.py
  U   Zope/branches/2.12/src/ZServer/tests/test_responses.py

-=-
Modified: Zope/branches/2.12/doc/CHANGES.rst
===
--- Zope/branches/2.12/doc/CHANGES.rst  2010-03-26 12:48:34 UTC (rev 110186)
+++ Zope/branches/2.12/doc/CHANGES.rst  2010-03-26 13:14:46 UTC (rev 110187)
@@ -17,6 +17,11 @@
   - ExtensionClass = 2.13.0
   - Persistence = 2.13.0
 
+- There is now an event ZPublisher.interfaces.IPubBeforeStreaming which will
+  be fired just before the first chunk of data is written to the response
+  stream when using the write() method on the response. This is the last
+  possible point at which response headers may be set in this case.
+
 Bugs Fixed
 ++
 

Modified: Zope/branches/2.12/src/ZPublisher/HTTPResponse.py
===
--- Zope/branches/2.12/src/ZPublisher/HTTPResponse.py   2010-03-26 12:48:34 UTC 
(rev 110186)
+++ Zope/branches/2.12/src/ZPublisher/HTTPResponse.py   2010-03-26 13:14:46 UTC 
(rev 110187)
@@ -18,10 +18,12 @@
 import types, os, sys, re
 import zlib, struct
 from string import translate, maketrans
+from zope.event import notify
 from BaseResponse import BaseResponse
 from zExceptions import Unauthorized, Redirect
 from zExceptions.ExceptionFormatter import format_exception
 from ZPublisher import BadRequest, InternalError, NotFound
+from ZPublisher.pubevents import PubBeforeStreaming
 from cgi import escape
 from urllib import quote
 
@@ -921,6 +923,9 @@
 
 
 if not self._wrote:
+
+notify(PubBeforeStreaming(self))
+
 self.outputBody()
 self._wrote = 1
 self.stdout.flush()

Modified: Zope/branches/2.12/src/ZPublisher/interfaces.py
===
--- Zope/branches/2.12/src/ZPublisher/interfaces.py 2010-03-26 12:48:34 UTC 
(rev 110186)
+++ Zope/branches/2.12/src/ZPublisher/interfaces.py 2010-03-26 13:14:46 UTC 
(rev 110187)
@@ -50,3 +50,11 @@
 
 exc_info = Attribute('''The exception info as returned by 
'sys.exc_info()'.''')
 retry = Attribute('Whether the request will be retried')
+
+class IPubBeforeStreaming(Interface):
+Event fired just before a streaming response is initiated, i.e. when
+something calls response.write() for the first time. Note that this is
+carries a reference to the *response*, not the request.
+
+
+response = Attribute(uThe current HTTP response)

Modified: Zope/branches/2.12/src/ZPublisher/pubevents.py
===
--- Zope/branches/2.12/src/ZPublisher/pubevents.py  2010-03-26 12:48:34 UTC 
(rev 110186)
+++ Zope/branches/2.12/src/ZPublisher/pubevents.py  2010-03-26 13:14:46 UTC 
(rev 110187)
@@ -10,7 +10,8 @@
 from zope.interface import implements
 
 from interfaces import IPubStart, IPubSuccess, IPubFailure, \
- IPubAfterTraversal, IPubBeforeCommit, IPubBeforeAbort
+ IPubAfterTraversal, IPubBeforeCommit, IPubBeforeAbort, \
+ IPubBeforeStreaming
 
 class _Base(object):
 PubEvent base class.
@@ -49,3 +50,11 @@
 
 def __init__(self, request, exc_info, retry):
 self.request, self.exc_info, self.retry = request, exc_info, retry
+
+class PubBeforeStreaming(object):
+Notified immediately before streaming via response.write() commences
+
+implements(IPubBeforeStreaming)
+
+def __init__(self, response):
+self.response = response

Modified: Zope/branches/2.12/src/ZPublisher/tests/testpubevents.py
===
--- Zope/branches/2.12/src/ZPublisher/tests/testpubevents.py2010-03-26 
12:48:34 UTC (rev 110186)
+++ Zope/branches/2.12/src/ZPublisher/tests/testpubevents.py2010-03-26 
13:14:46 UTC (rev 110187)
@@ -1,3 +1,4 @@
+from StringIO import StringIO
 from sys import modules, exc_info
 from unittest import TestCase, TestSuite, makeSuite, main
 
@@ -7,11 +8,14 @@
 
 from ZPublisher.Publish import publish, Retry
 from ZPublisher.BaseRequest import BaseRequest
+from ZPublisher.HTTPResponse import HTTPResponse
 from ZPublisher.pubevents import PubStart, PubSuccess, PubFailure, \
- PubAfterTraversal, PubBeforeCommit, PubBeforeAbort
+ PubAfterTraversal, PubBeforeCommit, PubBeforeAbort, \
+ PubBeforeStreaming
 from ZPublisher.interfaces import \
  

[Zope-Checkins] SVN: Zope/trunk/ Merge c105589 from 2.12 branch, adding IPubBeforeAbort event

2010-03-26 Thread Martin Aspeli
Log message for revision 110188:
  Merge c105589 from 2.12 branch, adding IPubBeforeAbort event

Changed:
  U   Zope/trunk/doc/CHANGES.rst
  U   Zope/trunk/src/ZPublisher/Publish.py
  U   Zope/trunk/src/ZPublisher/interfaces.py
  U   Zope/trunk/src/ZPublisher/pubevents.py
  U   Zope/trunk/src/ZPublisher/tests/testpubevents.py

-=-
Modified: Zope/trunk/doc/CHANGES.rst
===
--- Zope/trunk/doc/CHANGES.rst  2010-03-26 13:14:46 UTC (rev 110187)
+++ Zope/trunk/doc/CHANGES.rst  2010-03-26 13:25:09 UTC (rev 110188)
@@ -2,92 +2,115 @@
 =
 
 This file contains change information for the current Zope release.
-Change information for previous versions of Zope can be found at
-http://docs.zope.org/zope2/releases/.
+Change information for previous versions of Zope can be found in the
+file HISTORY.txt.
 
-Trunk (unreleased)
---
+Zope 2.12.2 (unreleased)
+
 
-Restructuring
-+
+Features Added
+++
 
-- Finished the move of five.formlib to an extra package and removed it from
-  Zope 2 itself. Upgrade notes have been added to the news section of the
-  release notes.
+- Added IPubBeforeAbort event to mirror IPubBeforeCommit in failure scenarios.
+  This event is fired just before IPubFailure, but, crucially, while the
+  transaction is still open.
 
-- Moved Products.Sessions APIs from ``SessionInterfaces`` to ``interfaces``,
-  leaving behind the old module / names for backward compatibility.
+- Include bytes limited cache size in the cache parameters ZMI screen.
 
-- Moved ``cmf.*`` permissions into Products.CMFCore.
+- Officially supporting Python 2.6 only (with inofficial support for
+  Python 2.5) but dropping any support and responsibility for
+  Python 2.4.
 
-- Moved general OFS related ZCML directives from Products.Five into the OFS
-  package itself.
+Bugs Fixed
+++
 
-- Ported the lazy expression into zope.tales and require a new version of it.
+- Avoid possible errors on test tear-down in Products.Five.fiveconfigure's
+  cleanUp() function if Products.meta_types has not been set
 
-- Updated Five documentation to clarify its role in regard to Zope packages.
+Zope 2.12.1 (2009/11/02)
+
 
-- Removed the deprecated ``five:containerEvents`` directive, which had been
-  a no-op for quite a while.
+Features Added
+++
 
-- Removed Products.Five.fivedirectives.IBridgeDirective - a leftover from the
-  Interface to zope.interface bridging code.
+- Updated packages:
 
-- Marked the ``five:implements /`` as officially deprecated. The standard
-  ``class /`` directive allows the same.
+  - ZODB3 = 3.9.3  (fixes bug where blob conflict errors hung commits)
+  - Acquisition = 2.12.4 (fixes problems with iteration support)
+  - setuptools = 0.6c11
 
-- Reuse IInclude from zope.configuration.xmlconfig.
+- LP #411732: Silence security declaration warnings for context and request
+  on views protected by an interface.
 
-- Reuse IMenuItemType from zope.browsermenu.
+- Assorted documentation cleanups, including a script to rebuild HTML
+  documentation on Windows.
 
-- Moved TaintedString from ZPublisher to Shared.
-  This resolves a circular import issue.
+- Refactored Windows Service support to not need or use zopeservice.py
+  in instances. This makes buildout-based instances work on Windows.
 
-- Moved zope.formlib / zope.app.form integration into a separate package
-  called five.formlib.
+Bugs Fixed
+++
 
-- We no longer depend on the ``zope-functional-testing`` extra of
-  zope.testbrowser.
+- LP #440490: zopectl fg|adduser|run|debug now work on Windows.
 
-- Removed the dependency on zope.app.publication in favor of new versions of
-  zope.publisher and zope.traversing.
+- LP #443005: zopectl stop works once more on Windows.
 
-- Requiring Python 2.6 officially
+- LP #453723: zopectl start works again on non-Windows platforms.
 
-- Changed startup server tests in Zope2 to use a randomized port number, to
-  allow the nightly buildbot to run the tests at the same time for multiple
-  configurations without the port being already in use.
+Zope 2.12.0 final  (2009/10/01)
+---
 
-- Cloned ``ZopeVocabularyRegistry`` from ``zope.app.schema``, and added
-  sane registration of it during initialization of Five.
+Features Added
+++
 
-- Removed experimental support for configuring the Twisted HTTP server
-  as an alternative to ``ZServer``.
+- Updated packages:
 
-- Moved ``Products/Five/security.py`` and security related ZCML configuration
-  into the AccessControl package.
+  - ZODB3 = 3.9.0
 
-- Moved ``Products/Five/traversing.zcml`` directly into the configure.zcml.
+- Backported clone of ``ZopeVocabularyRegistry`` from ``zope.app.schema``, and
+  sane registration of it during initialization of Five product.
 
-- Moved zope.security-style permission registrations from Products.Five into
-  the 

[Zope-Checkins] SVN: Zope/trunk/doc/CHANGES.rst Revert 110188 and 110189 on the changelog.

2010-03-26 Thread Hanno Schlichting
Log message for revision 110206:
  Revert 110188 and 110189 on the changelog.
  

Changed:
  U   Zope/trunk/doc/CHANGES.rst

-=-
Modified: Zope/trunk/doc/CHANGES.rst
===
--- Zope/trunk/doc/CHANGES.rst  2010-03-26 15:47:35 UTC (rev 110205)
+++ Zope/trunk/doc/CHANGES.rst  2010-03-26 16:27:30 UTC (rev 110206)
@@ -2,215 +2,95 @@
 =
 
 This file contains change information for the current Zope release.
-Change information for previous versions of Zope can be found in the
-file HISTORY.txt.
+Change information for previous versions of Zope can be found at
+http://docs.zope.org/zope2/releases/.
 
-Zope 2.12.4 (Unreleased)
-
+Trunk (unreleased)
+--
 
-Features Added
-++
+Restructuring
++
 
-- Updated packages:
+- Finished the move of five.formlib to an extra package and removed it from
+  Zope 2 itself. Upgrade notes have been added to the news section of the
+  release notes.
 
-  - Acquisition = 2.13.1
-  - ExtensionClass = 2.13.0
-  - Persistence = 2.13.0
+- Moved Products.Sessions APIs from ``SessionInterfaces`` to ``interfaces``,
+  leaving behind the old module / names for backward compatibility.
 
-- There is now an event ZPublisher.interfaces.IPubBeforeStreaming which will
-  be fired just before the first chunk of data is written to the response
-  stream when using the write() method on the response. This is the last
-  possible point at which response headers may be set in this case.
+- Moved ``cmf.*`` permissions into Products.CMFCore.
 
-Bugs Fixed
-++
+- Moved general OFS related ZCML directives from Products.Five into the OFS
+  package itself.
 
-- Zope 3-style resource directories would throw an Unauthorized error when
-  trying to use restrictedTraverse() to reach a resource in a sub-directory
-  of the resource directory.
+- Ported the lazy expression into zope.tales and require a new version of it.
 
-- Restore ability to traverse to 'macros' on template-based browser views.
+- Updated Five documentation to clarify its role in regard to Zope packages.
 
-- Protect ZCTextIndex's clear method against storing Acquisition wrappers.
+- Removed the deprecated ``five:containerEvents`` directive, which had been
+  a no-op for quite a while.
 
-- LP #195761: fixed ZMI XML export / import and restored it to the UI.
+- Removed Products.Five.fivedirectives.IBridgeDirective - a leftover from the
+  Interface to zope.interface bridging code.
 
-- MailHost should fall back to HELO when EHLO fails.
+- Marked the ``five:implements /`` as officially deprecated. The standard
+  ``class /`` directive allows the same.
 
-Zope 2.12.3 (2010/01/12)
-
+- Reuse IInclude from zope.configuration.xmlconfig.
 
-Bugs Fixed
-++
+- Reuse IMenuItemType from zope.browsermenu.
 
-- LP #491224: proper escaping of rendered error message
+- Moved TaintedString from ZPublisher to Shared.
+  This resolves a circular import issue.
 
-- LP #246983: Enabled unicode conflict resolution on variables inside string:
-  expressions in TALES.
-
-- Fixed possible TypeError while sending multipart emails.
-
-- Also look for ZEXP imports within the clienthome directory. This
-  provides a place to put imports that won't be clobbered by buildout
-  in a buildout-based Zope instance.
-
-- Fixed a SyntaxError in utilities/load_site.py script.
-
-Features Added
-++
-
-- Made OFS.Image.File and OFS.Image.Image send IObjectModifiedEvent when
-  created through their factories and modified through the ZMI forms
-  (manage_edit() and manage_upload()).
-
 - Moved zope.formlib / zope.app.form integration into a separate package
   called five.formlib.
 
-Zope 2.12.2 (2009-12-22)
-
+- We no longer depend on the ``zope-functional-testing`` extra of
+  zope.testbrowser.
 
-Features Added
-++
+- Removed the dependency on zope.app.publication in favor of new versions of
+  zope.publisher and zope.traversing.
 
-- Updated packages:
+- Requiring Python 2.6 officially
 
-  - ZODB3 = 3.9.4
-  - docutils = 0.6
-  - pytz = 2009r
-  - zope.dottedname = 3.4.6
-  - zope.i18n = 3.7.2
-  - zope.interface = 3.5.3
-  - zope.minmax = 1.1.1
-  - zope.security = 3.7.2
-  - zope.session = 3.9.2
-  - zope.tal = 3.5.2
+- Changed startup server tests in Zope2 to use a randomized port number, to
+  allow the nightly buildbot to run the tests at the same time for multiple
+  configurations without the port being already in use.
 
-- Enhanced the internals of the DateRangeIndex based on an idea from
-  experimental.daterangeindexoptimisations, thanks to Matt Hamilton.
+- Cloned ``ZopeVocabularyRegistry`` from ``zope.app.schema``, and added
+  sane registration of it during initialization of Five.
 
-- Updated the default value for ``management_page_charset`` from iso-8859-1
-  to the nowadays more standard utf-8.
+- Removed experimental support for configuring 

[Zope-Checkins] SVN: Zope/trunk/doc/CHANGES.rst Cleaned out duplicated entries from the 2.12 changelog

2010-03-26 Thread Hanno Schlichting
Log message for revision 110207:
  Cleaned out duplicated entries from the 2.12 changelog
  

Changed:
  U   Zope/trunk/doc/CHANGES.rst

-=-
Modified: Zope/trunk/doc/CHANGES.rst
===
--- Zope/trunk/doc/CHANGES.rst  2010-03-26 16:27:30 UTC (rev 110206)
+++ Zope/trunk/doc/CHANGES.rst  2010-03-26 16:52:44 UTC (rev 110207)
@@ -43,9 +43,6 @@
 - Moved TaintedString from ZPublisher to Shared.
   This resolves a circular import issue.
 
-- Moved zope.formlib / zope.app.form integration into a separate package
-  called five.formlib.
-
 - We no longer depend on the ``zope-functional-testing`` extra of
   zope.testbrowser.
 
@@ -58,12 +55,6 @@
   allow the nightly buildbot to run the tests at the same time for multiple
   configurations without the port being already in use.
 
-- Cloned ``ZopeVocabularyRegistry`` from ``zope.app.schema``, and added
-  sane registration of it during initialization of Five.
-
-- Removed experimental support for configuring the Twisted HTTP server
-  as an alternative to ``ZServer``.
-
 - Moved ``Products/Five/security.py`` and security related ZCML configuration
   into the AccessControl package.
 
@@ -91,16 +82,8 @@
 Features Added
 ++
 
-- The send method of MailHost now supports unicode messages and
-  email.Message.Message objects.  It also now accepts charset and
-  msg_type parameters to help with character, header and body
-  encoding.
-
 - Updated packages:
 
-  - Acquisition = 2.13.1
-  - ExtensionClass = 2.13.0
-  - Persistence = 2.13.0
   - zope.annotation = 3.5.0
   - zope.app.form = 3.12.1
   - zope.broken = 3.6.0
@@ -136,46 +119,13 @@
 Bugs Fixed
 ++
 
-- LP #195761: fixed ZMI XML export / import and restored it to the UI.
-
-- LP #491224: proper escaping of rendered error message
-
-- LP #246983: Enabled unicode conflict resolution on variables inside string:
-  expressions in TALES.
-
-- Also look for ZEXP imports within the clienthome directory. This
-  provides a place to put imports that won't be clobbered by buildout
-  in a buildout-based Zope instance.
-
-- LP #143444: add labels to checkboxes / radio buttons on import / export
-  form.
-
-- LP #496961:  Remove all mention of ``standard_html_header`` and
-  ``standard_html_footer`` from default DTML content.
-
-- LP #491249:  fix tabindex on ZRDB connection test form.
-
-- LP #490514:  preserve tainting when calling into DTML from ZPT.
-
-- LP #414757: Don't send a request closed event from a cloned request.
-
-- LP #418454: FTP server did not work with Python 2.6.X
-
 - Fixed issue with sending text containing ':' from MailHost.
 
 - MailHost will now ensure the headers it sets are 7bit.
 
 - MailHost no longer generates garbage when given unicode input.
 
-- MailHost manage form no longer interprets the value None as a string
-  in user and password fields.
-
 - Made C extensions work for 64-bit Python 2.5.x / 2.6.x.
 
 - Unfutzed test failures due to use of naive timezones with ``datetime``
   instances.
-
-- LP #397861: exporting $PYTHON in generated 'zopectl' for fixing import issue
-  with bin/zopectl adduser
-
-- LP #399633: fixed interpreter paths

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
https://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-dev] Zope Tests: 6 OK

2010-03-26 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Thu Mar 25 12:00:00 2010 UTC to Fri Mar 26 12:00:00 2010 UTC.
There were 6 messages: 6 from Zope Tests.


Tests passed OK
---

Subject: OK : Zope-2.10 Python-2.4.6 : Linux
From: Zope Tests
Date: Thu Mar 25 21:36:59 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-March/013804.html

Subject: OK : Zope-2.11 Python-2.4.6 : Linux
From: Zope Tests
Date: Thu Mar 25 21:39:00 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-March/013805.html

Subject: OK : Zope-2.12 Python-2.6.4 : Linux
From: Zope Tests
Date: Thu Mar 25 21:41:00 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-March/013806.html

Subject: OK : Zope-2.12-alltests Python-2.6.4 : Linux
From: Zope Tests
Date: Thu Mar 25 21:43:00 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-March/013807.html

Subject: OK : Zope-trunk Python-2.6.4 : Linux
From: Zope Tests
Date: Thu Mar 25 21:45:00 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-March/013808.html

Subject: OK : Zope-trunk-alltests Python-2.6.4 : Linux
From: Zope Tests
Date: Thu Mar 25 21:47:00 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-March/013809.html

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[Zope] ZCA / five / zcml overrides issue...

2010-03-26 Thread Bruno Desthuilliers
Hi there

I probably missed some point about how this Component Architecture /
ZCML config stuff is supposed to work with zope 2.10+ (actually Zope
2.10.5), ,so any hint or pointer welcome...

Here's my problem:

I use a third-part product (ContentMirror) that defines some interfaces
and their implementations, and register the adapters in it's
configure.zcml. It also defines a couple zcml directives, with actions
that call  component.getMultiAdapter to retrieve the implementation for
these interfaces.

I'd like to provide my own implementation for one of these interfaces.
So I wrote the implementation, added an include of the ContentMirror
package in my own configure.zcml, and an overrides.zcml with the
registration directive for my own implementation:

configure xmlns=http://namespaces.zope.org/zope;
  !-- use our own PeerFactory implementation instead --
  adapter
 for=ore.contentmirror.interfaces.IMirrored
ore.contentmirror.interfaces.ISchemaTransformer
 provides=ore.contentmirror.interfaces.IPeerFactory
 factory=.peer.ManagedSchemaPeerFactory
 /
/configure


Bad luck, the whole thing then crashes when ContentMirror's own zcml
directive are executed - looks like none of the adapter are effectively
registred by that time (it of course worked just fine - but with the
original IPeerfactory implementation - before I added this override).

Here's the traceback I get at startup:

2010-03-23 11:41:41 ERROR Application Couldn't install Five
Traceback (most recent call last):
  File /home/zope/share/Plone-3.0.6/lib/python/OFS/Application.py,
line 786, in install_product
initmethod(context)
  File
/home/zope/share/Plone-3.0.6/lib/python/Products/Five/__init__.py,
line 28, in initialize
zcml.load_site()
  File /home/zope/share/Plone-3.0.6/lib/python/Products/Five/zcml.py,
line 53, in load_site
_context = xmlconfig.file(file)
  File
/home/zope/share/Plone-3.0.6/lib/python/zope/configuration/xmlconfig.py,
line 581, in file
context.execute_actions()
  File
/home/zope/share/Plone-3.0.6/lib/python/zope/configuration/config.py,
line 612, in execute_actions
callable(*args, **kw)
  File
/home/zope/share/Products/ProductsOTHERS/ContentMirror/eggs/ore.contentmirror-0.5.2b2-py2.4.egg/ore/contentmirror/loader.py,
 


line 39, in load
peer_class = self.peer( instance, transformer )
  File
/home/zope/share/Products/ProductsOTHERS/ContentMirror/eggs/ore.contentmirror-0.5.2b2-py2.4.egg/ore/contentmirror/loader.py,
 


line 51, in peer
interfaces.IPeerFactory )
  File /home/zope/share/Plone-3.0.6/lib/python/zope/component/_api.py,
line 103, in getMultiAdapter
raise ComponentLookupError(objects, interface, name)
ConfigurationExecutionError:
zope.component.interfaces.ComponentLookupError: ((ATDocument at
transient, ore.contentmirror.transform.SchemaTransformer object at
0xb6e028c), InterfaceClass ore.contentmirror.interfaces.IPeerFactory,
u'')
  in:
  File
/home/zope/share/Products/ProductsOTHERS/ContentMirror/eggs/ore.contentmirror-0.5.2b2-py2.4.egg/ore/contentmirror/content.zcml,
 


line 3.4-3.80
  ore:mirror
content=Products.ATContentTypes.content.document.ATDocument /



I obviously did something wrong - but what ???

TIA
-- 
bruno desthuilliers
br...@websiteburo.com


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope-CMF] CMF Tests: 4 OK

2010-03-26 Thread CMF Tests Summarizer
Summary of messages to the cmf-tests list.
Period Thu Mar 25 12:00:00 2010 UTC to Fri Mar 26 12:00:00 2010 UTC.
There were 4 messages: 4 from CMF Tests.


Tests passed OK
---

Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.6 : Linux
From: CMF Tests
Date: Thu Mar 25 21:56:08 EDT 2010
URL: http://mail.zope.org/pipermail/cmf-tests/2010-March/012771.html

Subject: OK : CMF-2.1 Zope-2.11 Python-2.4.6 : Linux
From: CMF Tests
Date: Thu Mar 25 21:58:08 EDT 2010
URL: http://mail.zope.org/pipermail/cmf-tests/2010-March/012772.html

Subject: OK : CMF-2.2 Zope-2.12 Python-2.6.4 : Linux
From: CMF Tests
Date: Thu Mar 25 22:00:09 EDT 2010
URL: http://mail.zope.org/pipermail/cmf-tests/2010-March/012773.html

Subject: OK : CMF-trunk Zope-trunk Python-2.6.4 : Linux
From: CMF Tests
Date: Thu Mar 25 22:02:09 EDT 2010
URL: http://mail.zope.org/pipermail/cmf-tests/2010-March/012774.html

___
Zope-CMF maillist  -  Zope-CMF@zope.org
https://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests