Re: [Zope-dev] zope.testbrowser and WebTest (round 2)

2011-03-02 Thread Wolfgang Schnerring
Hello Brian,

it's taken a while, but I finally had a chance to review your branch(es).

* Brian Sutherland br...@vanguardistas.net [2011-02-12 18:57]:
  On Tue, Feb 01, 2011 at 09:32:11AM +0100, Wolfgang Schnerring wrote:
  I'd prefer if we treated this as two separate steps, then:
  a) improve the testbrwoser+wsgi story by replacing wsgi_intercept with 
  WebTest

 I pulled this out of my original branch and put it here:
 svn+ssh://svn.zope.org/repos/main/zope.testbrowser/jinty-webtest3-minimal

Thanks, that helped me understand what's going on much better.

I do have a few questions about this part:

- Does the (webtest-based) wsgi.Browser behave similarly to the
  Publisher-Browser?

When we ported the wsgi_intercept variant from zope.app.wsgi, we found
that there were some idiosyncracies woven in that people may rely on.
This kind of stuff of course isn't documented, and we didn't do much
research, but rather took care to port what we found in zope.app.wsgi,
namely filtering some HTTP headers from the response (meh, doesn't feel
important), and handling Basic Auth headers (that feels important to
preserve).

- What should happen in zope.app.wsgi?

We moved the wsgi-based Testbrowser from there and left BBB imports to
zope.testbrowser.wsgi, taking care to be API compatible. I guess that
won't be possible with the WebTest-based Testbrowser (or would it?),
so we probably have to break that. (Hmm, would that imply a major version
bump there, too?)

Since the Grok people are the ones who probably use the zope.app.wsgi
Testbrowser the most, they should probably take the WebTest-Testbrowser
for a test drive and see whether it works for them, otherwise we're
going to make them quite unhappy if we just break zope.app.wsgi.
(Could you ask on grok-dev about that? I guess it's too buried here to
be noticed.)

- What's connection.py?

I don't really understand where that came from or what its purpose is,
especially since wsgi.py seems to be the only one that uses it?

Ah. I take that last bit back, the extracted Publisher-Browser in
zope.app.testing uses it, so I guess this is a split-off artifact of the
refactoring/extraction.

But I still don't really understand what it is all about. %-)

- The layer looks good. (OK, so that's not a question ;)

I'm glad you found a way that the browser can get the application out
of the air. I've tried the explicit passing way on a project of mine,
and it's a huge hassle (I've ended up stuffing a preconfigured browser
instance into the doctest globs, ugh.)

I think it would be good if the layer stored the application of
self.app, we did that in the wsgi_intercept variant and were glad of it
a few times already.

  b) extract the testbrowser part that talks to the Publisher

 This is here and by necessity includes the changes for step (a):
 svn+ssh://svn.zope.org/repos/main/zope.testbrowser/jinty-webtest3
 
 svn+ssh://svn.zope.org/repos/main/zope.app.testing/branches/jinty-testbrowser

The extraction of the Publisher-Browser makes a lot of sense, and looks
clean to me, as does the rewrite of the tests to use a plain WSGI app
instead of a Zope-based app.

 I would much prefer to merge both steps together.

Yes, I guess that makes sense because only step (b) includes proper
tests for everything.

Wolfgang

___
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-dev] ZPublisher: using zope.formlib and z3c.form in Zope 2

2011-03-02 Thread yuppie
Hi!


ZPublisher.Publish and zope.publisher.publish process form inputs 
differently. Zope 2 returns encoded strings unchanged if no converters 
are specified. zope.publisher converts encoded strings to unicode.

One major reason why zope.formlib and z3c.form can't be used directly in 
Zope 2 is the fact they expect decoded form values. five.formlib uses 
special base classes and plone.z3cform monkey patches the base classes 
in z3c.form.


Proposal:

- Products.Five.browser.decode should be moved to ZPublisher. 
processInputs and setPageEncoding are publisher related code.

- After traversal and before calling the object 
ZPublisher.Publish.publish should figure out if the object expects 
zope.publisher behavior. Either we use a new interface for this or we 
use zope.publisher.interfaces.browser.IBrowserPage: AFAICS in Zope 2 
land only zope.formlib and z3c.form based views implement IBrowserPage.

- If the object implements that interface, the request is post processed 
using processInputs and setPageEncoding.

- plone.z3cform uses a modified version of processInputs and doesn't use 
setPageEncoding. Can anybody explain why? I guess that are no z3c.form 
specific reasons. Maybe the changes can be merged back to Zope?


Does that make sense? I guess that kind of change should only be made on 
the trunk.


Cheers,

Yuppie

___
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 )


Re: [Zope-dev] ZPublisher: using zope.formlib and z3c.form in Zope 2

2011-03-02 Thread Martin Aspeli
Hi,

On 2 March 2011 08:43, yuppie y.2...@wcm-solutions.de wrote:
 Hi!


 ZPublisher.Publish and zope.publisher.publish process form inputs
 differently. Zope 2 returns encoded strings unchanged if no converters
 are specified. zope.publisher converts encoded strings to unicode.

 One major reason why zope.formlib and z3c.form can't be used directly in
 Zope 2 is the fact they expect decoded form values. five.formlib uses
 special base classes and plone.z3cform monkey patches the base classes
 in z3c.form.


 Proposal:

 - Products.Five.browser.decode should be moved to ZPublisher.
 processInputs and setPageEncoding are publisher related code.

+1

 - After traversal and before calling the object
 ZPublisher.Publish.publish should figure out if the object expects
 zope.publisher behavior. Either we use a new interface for this or we
 use zope.publisher.interfaces.browser.IBrowserPage: AFAICS in Zope 2
 land only zope.formlib and z3c.form based views implement IBrowserPage.

Isn't this in zope.browserpage now?

 - If the object implements that interface, the request is post processed
 using processInputs and setPageEncoding.

+1

 - plone.z3cform uses a modified version of processInputs and doesn't use
 setPageEncoding. Can anybody explain why? I guess that are no z3c.form
 specific reasons. Maybe the changes can be merged back to Zope?

processInputs() in Five was very buggy. I thought I'd merged those
changes into Zope 2?

I don't know what setPageEncoding() does, though.

Martin
___
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 )


Re: [Zope-dev] ZPublisher: using zope.formlib and z3c.form in Zope 2

2011-03-02 Thread yuppie
Hi Martin!


Martin Aspeli wrote:
 - After traversal and before calling the object
 ZPublisher.Publish.publish should figure out if the object expects
 zope.publisher behavior. Either we use a new interface for this or we
 use zope.publisher.interfaces.browser.IBrowserPage: AFAICS in Zope 2
 land only zope.formlib and z3c.form based views implement IBrowserPage.

 Isn't this in zope.browserpage now?

No.

 - plone.z3cform uses a modified version of processInputs and doesn't use
 setPageEncoding. Can anybody explain why? I guess that are no z3c.form
 specific reasons. Maybe the changes can be merged back to Zope?

 processInputs() in Five was very buggy. I thought I'd merged those
 changes into Zope 2?

Well. You were the last person who touched both. But the changes are 
quit different:

http://svn.zope.org/Zope/trunk/src/Products/Five/browser/decode.py?rev=115280view=log
http://svn.zope.org/plone.z3cform/trunk/plone/z3cform/z2.py?rev=109071view=log

Is there still anything in plone.z3cform that should be merged into Zope 2?

 I don't know what setPageEncoding() does, though.

It sets a response Content-Type header with the first charset 
processInputs tries for decoding.


Cheers,

Yuppie
___
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-dev] plone 4.1: can not access plone 3.5 site after startup

2011-03-02 Thread robert rottermann
Hi there,
I created a 4.1a3 buildout and added all needed products, of which I had to 
adapt some to be able to start at all.
Then I copied the data.fs of a 3.5x site.

Now in the ZMI, when I want to navigate to the plone 3.5 folder I get the 
following error:

What can I do to fix that?
Do I have to prepare the Data.fs somehow?

thanks
robert

2011-03-02 11:57:55 ERROR Zope.SiteErrorLog 1299063475.730.425785426825 
http://localhost:8481/focus/focus
Traceback (innermost last):
   Module ZPublisher.Publish, line 115, in publish
   Module ZPublisher.BaseRequest, line 437, in traverse
   Module ZPublisher.BeforeTraverse, line 97, in __call__
   Module Products.CMFCore.PortalObject, line 78, in 
__before_publishing_traverse__
   Module zope.event, line 23, in notify
   Module zope.component.event, line 24, in dispatch
   Module zope.component._api, line 136, in subscribers
   Module zope.component.registry, line 321, in subscribers
   Module zope.interface.adapter, line 585, in subscribers
   Module zope.component.event, line 32, in objectEventNotify
   Module zope.component._api, line 136, in subscribers
   Module zope.component.registry, line 321, in subscribers
   Module zope.interface.adapter, line 585, in subscribers
   Module plone.browserlayer.layer, line 14, in mark_layer
   Module zope.component._api, line 179, in getAllUtilitiesRegisteredFor
   Module zope.component.registry, line 176, in getAllUtilitiesRegisteredFor
   Module ZODB.Connection, line 859, in setstate
   Module ZODB.Connection, line 913, in _setstate
   Module ZODB.serialize, line 613, in setGhostState
   Module zope.component.persistentregistry, line 40, in __setstate__
   Module zope.interface.adapter, line 91, in _createLookup
   Module zope.interface.adapter, line 439, in __init__
   Module zope.interface.adapter, line 476, in init_extendors
   Module zope.interface.adapter, line 480, in add_extendor
AttributeError: type object 'IDatabaseSettings' has no attribute '__iro__'
2011-03-02 11:57:55 WARNING OFS.Uninstalled Could not import class 
'IThemeSpecific' from module 'focus.theme.browser.interfaces'
2011-03-02 11:57:55 WARNING OFS.Uninstalled Could not import class 
'IFocViewletManager' from module 'focus.theme.browser.interfaces'
2011-03-02 11:57:55 ERROR ZODB.Connection Couldn't load state for 0x19746b
Traceback (most recent call last):
   File 
/home/zope/focus4/eggs/ZODB3-3.10.1-py2.6-linux-i686.egg/ZODB/Connection.py, 
line 859, in setstate
 self._setstate(obj)
   File 
/home/zope/focus4/eggs/ZODB3-3.10.1-py2.6-linux-i686.egg/ZODB/Connection.py, 
line 913, in _setstate
 self._reader.setGhostState(obj, p)
   File 
/home/zope/focus4/eggs/ZODB3-3.10.1-py2.6-linux-i686.egg/ZODB/serialize.py, 
line 613, in setGhostState
 obj.__setstate__(state)
   File 
/home/zope/focus4/eggs/zope.component-3.10.0-py2.6.egg/zope/component/persistentregistry.py,
 
line 40, in __setstate__
 self._createLookup()
   File 
/home/zope/focus4/eggs/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/adapter.py,
 
line 91, in _createLookup
 self._v_lookup = self.LookupClass(self)
   File 
/home/zope/focus4/eggs/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/adapter.py,
 
line 439, in __init__
 self.init_extendors()
   File 
/home/zope/focus4/eggs/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/adapter.py,
 
line 476, in init_extendors
 self.add_extendor(p)
   File 
/home/zope/focus4/eggs/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/adapter.py,
 
line 480, in add_extendor
 for i in provided.__iro__:
AttributeError: type object 'IDatabaseSettings' has no attribute '__iro__'

___
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-dev] Zope Tests: 83 OK, 31 Failed, 1 Unknown

2011-03-02 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Tue Mar  1 12:00:00 2011 UTC to Wed Mar  2 12:00:00 2011 UTC.
There were 115 messages: 8 from Zope Tests, 26 from buildbot at 
winbot.zope.org, 11 from ccomb at free.fr, 70 from jdriessen at 
thehealthagency.com.


Test failures
-

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0_win-py2.5 slave-win
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 09:50:15 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033505.html

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0_win-py2.6 slave-win
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 10:02:20 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033508.html

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.6 slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 14:50:33 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033540.html

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.6 slave-ubuntu32
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 14:50:37 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033541.html

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0_win-py2.6 slave-win
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 14:50:39 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033542.html

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.5 slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 14:51:06 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033544.html

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.5 slave-ubuntu32
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 14:51:13 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033545.html

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0_win-py2.5 slave-win
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 14:51:23 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033546.html

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.4 slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 14:51:43 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033547.html

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.4 slave-ubuntu32
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 14:51:54 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033548.html

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0_win-py2.4 slave-win
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 14:52:28 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033549.html

Subject: FAILED : winbot / ztk_10 py_244_win32
From: buildbot at winbot.zope.org
Date: Tue Mar  1 15:57:01 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033556.html

Subject: FAILED : winbot / ztk_10 py_254_win32
From: buildbot at winbot.zope.org
Date: Tue Mar  1 15:57:51 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033557.html

Subject: FAILED : winbot / ztk_10 py_265_win32
From: buildbot at winbot.zope.org
Date: Tue Mar  1 15:58:31 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033558.html

Subject: FAILED : winbot / ztk_10 py_265_win64
From: buildbot at winbot.zope.org
Date: Tue Mar  1 15:58:59 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033559.html

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.6 slave-osx
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 18:40:24 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033572.html

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.5 slave-osx
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 18:41:26 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033573.html

Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.4 slave-osx
From: jdriessen at thehealthagency.com
Date: Tue Mar  1 18:42:54 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033574.html

Subject: FAILED : ZTK 1.0 / Python2.4.6 Linux 64bit
From: ccomb at free.fr
Date: Tue Mar  1 19:02:18 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033577.html

Subject: FAILED : ZTK 1.0 / Python2.5.5 Linux 64bit
From: ccomb at free.fr
Date: Tue Mar  1 19:02:26 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033578.html

Subject: FAILED : ZTK 1.0 / Python2.6.5 Linux 64bit
From: ccomb at free.fr
Date: Tue Mar  1 19:02:34 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033579.html

Subject: FAILED : winbot / z3c.form_py_265_32
From: buildbot at winbot.zope.org
Date: Tue Mar  1 21:52:46 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033584.html

Subject: FAILED : ZTK 1.0dev / Python2.4.6 Linux 64bit
From: ccomb at free.fr
Date: Tue Mar  1 22:14:03 EST 2011
URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033588.html

Subject: FAILED : ZTK 1.0dev / 

Re: [Zope-dev] plone 4.1: can not access plone 3.5 site after startup

2011-03-02 Thread Leonardo Rochael Almeida
I usually saw this error when some of the objects persisted in the
ZODB have references  to (i.e. they directly provide) interfaces that
are not there in the code anymore anymore, such as when an interface
class is removed or moved to another module or package.

It can be solved by providing the old interface in the same place in
the 'module/package' namespace. Or by removing the interface reference
from the object in the old environment before starting the code in the
new environment.

Incidentally, I'm of the opinion that these kinds of errors should be
captured by either zope.interface or by ZODB, logged as 'ERROR', and
the object returned without the faulty interface, but that seems to
require either adding knowledge about zope.interface to ZODB or
vice-versa.

Cheers,

On Wed, Mar 2, 2011 at 12:07, robert rottermann rob...@redcor.ch wrote:
 Hi there,
 I created a 4.1a3 buildout and added all needed products, of which I had to
 adapt some to be able to start at all.
 Then I copied the data.fs of a 3.5x site.

 Now in the ZMI, when I want to navigate to the plone 3.5 folder I get the
 following error:

 What can I do to fix that?
 Do I have to prepare the Data.fs somehow?

 thanks
 robert

 2011-03-02 11:57:55 ERROR Zope.SiteErrorLog 1299063475.730.425785426825
 http://localhost:8481/focus/focus
 Traceback (innermost last):
   Module ZPublisher.Publish, line 115, in publish
   Module ZPublisher.BaseRequest, line 437, in traverse
   Module ZPublisher.BeforeTraverse, line 97, in __call__
   Module Products.CMFCore.PortalObject, line 78, in 
 __before_publishing_traverse__
   Module zope.event, line 23, in notify
   Module zope.component.event, line 24, in dispatch
   Module zope.component._api, line 136, in subscribers
   Module zope.component.registry, line 321, in subscribers
   Module zope.interface.adapter, line 585, in subscribers
   Module zope.component.event, line 32, in objectEventNotify
   Module zope.component._api, line 136, in subscribers
   Module zope.component.registry, line 321, in subscribers
   Module zope.interface.adapter, line 585, in subscribers
   Module plone.browserlayer.layer, line 14, in mark_layer
   Module zope.component._api, line 179, in getAllUtilitiesRegisteredFor
   Module zope.component.registry, line 176, in getAllUtilitiesRegisteredFor
   Module ZODB.Connection, line 859, in setstate
   Module ZODB.Connection, line 913, in _setstate
   Module ZODB.serialize, line 613, in setGhostState
   Module zope.component.persistentregistry, line 40, in __setstate__
   Module zope.interface.adapter, line 91, in _createLookup
   Module zope.interface.adapter, line 439, in __init__
   Module zope.interface.adapter, line 476, in init_extendors
   Module zope.interface.adapter, line 480, in add_extendor
 AttributeError: type object 'IDatabaseSettings' has no attribute '__iro__'
 2011-03-02 11:57:55 WARNING OFS.Uninstalled Could not import class
 'IThemeSpecific' from module 'focus.theme.browser.interfaces'
 2011-03-02 11:57:55 WARNING OFS.Uninstalled Could not import class
 'IFocViewletManager' from module 'focus.theme.browser.interfaces'
 2011-03-02 11:57:55 ERROR ZODB.Connection Couldn't load state for 0x19746b
 Traceback (most recent call last):
   File
 /home/zope/focus4/eggs/ZODB3-3.10.1-py2.6-linux-i686.egg/ZODB/Connection.py,
 line 859, in setstate
     self._setstate(obj)
   File
 /home/zope/focus4/eggs/ZODB3-3.10.1-py2.6-linux-i686.egg/ZODB/Connection.py,
 line 913, in _setstate
     self._reader.setGhostState(obj, p)
   File
 /home/zope/focus4/eggs/ZODB3-3.10.1-py2.6-linux-i686.egg/ZODB/serialize.py,
 line 613, in setGhostState
     obj.__setstate__(state)
   File
 /home/zope/focus4/eggs/zope.component-3.10.0-py2.6.egg/zope/component/persistentregistry.py,
 line 40, in __setstate__
     self._createLookup()
   File
 /home/zope/focus4/eggs/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/adapter.py,
 line 91, in _createLookup
     self._v_lookup = self.LookupClass(self)
   File
 /home/zope/focus4/eggs/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/adapter.py,
 line 439, in __init__
     self.init_extendors()
   File
 /home/zope/focus4/eggs/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/adapter.py,
 line 476, in init_extendors
     self.add_extendor(p)
   File
 /home/zope/focus4/eggs/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/adapter.py,
 line 480, in add_extendor
     for i in provided.__iro__:
 AttributeError: type object 'IDatabaseSettings' has no attribute '__iro__'
___
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 )


Re: [Zope-dev] Zope Tests: 83 OK, 31 Failed, 1 Unknown

2011-03-02 Thread Gediminas Paulauskas
2011/3/2 Zope Tests Summarizer zope-te...@epy.co.at:
 Summary of messages to the zope-tests list.
 Period Tue Mar  1 12:00:00 2011 UTC to Wed Mar  2 12:00:00 2011 UTC.
 There were 115 messages: 8 from Zope Tests, 26 from buildbot at 
 winbot.zope.org, 11 from ccomb at free.fr, 70 from jdriessen at 
 thehealthagency.com.


 Test failures
 -

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0_win-py2.5 slave-win
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 09:50:15 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033505.html

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0_win-py2.6 slave-win
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 10:02:20 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033508.html

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.6 slave-ubuntu64
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 14:50:33 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033540.html

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.6 slave-ubuntu32
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 14:50:37 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033541.html

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0_win-py2.6 slave-win
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 14:50:39 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033542.html

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.5 slave-ubuntu64
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 14:51:06 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033544.html

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.5 slave-ubuntu32
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 14:51:13 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033545.html

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0_win-py2.5 slave-win
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 14:51:23 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033546.html

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.4 slave-ubuntu64
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 14:51:43 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033547.html

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.4 slave-ubuntu32
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 14:51:54 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033548.html

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0_win-py2.4 slave-win
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 14:52:28 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033549.html

 Subject: FAILED : winbot / ztk_10 py_244_win32
 From: buildbot at winbot.zope.org
 Date: Tue Mar  1 15:57:01 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033556.html

 Subject: FAILED : winbot / ztk_10 py_254_win32
 From: buildbot at winbot.zope.org
 Date: Tue Mar  1 15:57:51 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033557.html

 Subject: FAILED : winbot / ztk_10 py_265_win32
 From: buildbot at winbot.zope.org
 Date: Tue Mar  1 15:58:31 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033558.html

 Subject: FAILED : winbot / ztk_10 py_265_win64
 From: buildbot at winbot.zope.org
 Date: Tue Mar  1 15:58:59 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033559.html

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.6 slave-osx
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 18:40:24 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033572.html

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.5 slave-osx
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 18:41:26 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033573.html

 Subject: FAILED : Zope Buildbot / zopetoolkit-1.0-py2.4 slave-osx
 From: jdriessen at thehealthagency.com
 Date: Tue Mar  1 18:42:54 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033574.html

 Subject: FAILED : ZTK 1.0 / Python2.4.6 Linux 64bit
 From: ccomb at free.fr
 Date: Tue Mar  1 19:02:18 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033577.html

 Subject: FAILED : ZTK 1.0 / Python2.5.5 Linux 64bit
 From: ccomb at free.fr
 Date: Tue Mar  1 19:02:26 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033578.html

 Subject: FAILED : ZTK 1.0 / Python2.6.5 Linux 64bit
 From: ccomb at free.fr
 Date: Tue Mar  1 19:02:34 EST 2011
 URL: http://mail.zope.org/pipermail/zope-tests/2011-March/033579.html

Some of the new failures, resulting in

The version, 3.7.4, is not consistent with the requirement,
'zope.security[zcml]=3.8'.
While:
 Installing test-ztk.
Error: Bad version 3.7.4

are caused by recent change to ztk 1.0 branch

Re: [Zope-dev] ZPublisher: using zope.formlib and z3c.form in Zope 2

2011-03-02 Thread Charlie Clark
Am 02.03.2011, 12:29 Uhr, schrieb yuppie y.2...@wcm-solutions.de:

 getPreferredCharsets()[0] always returns 'utf-8' **if** UTF-8 is  
 accepted.

 If 'utf-8' is not in getPreferredCharsets(), it is not very likely that
 the browser speaks UTF-8 and processInputs will not even try to decode
 with UTF-8. In that case it might be better to respond with an accepted
 encoding.

I think you are drawing the wrong conclusion - some browsers (Internet  
Explorer and Safari spring to mind but this will also be the behaviour in  
Opera from 11.10) simply don't have an accept-charset header and the W3C  
says this means you can throw anything at them, in which case UTF-8 is a  
good choice.

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting  Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
___
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 )


Re: [Zope-dev] ZPublisher: using zope.formlib and z3c.form in Zope 2

2011-03-02 Thread yuppie
Hi Charlie!


Charlie Clark wrote:
 Am 02.03.2011, 12:29 Uhr, schrieb yuppiey.2...@wcm-solutions.de:

 getPreferredCharsets()[0] always returns 'utf-8' **if** UTF-8 is
 accepted.

 If 'utf-8' is not in getPreferredCharsets(), it is not very likely that
 the browser speaks UTF-8 and processInputs will not even try to decode
 with UTF-8. In that case it might be better to respond with an accepted
 encoding.

 I think you are drawing the wrong conclusion

I did talk about getPreferredCharsets(), not about the Accept-Charset 
header.

 some browsers (Internet
 Explorer and Safari spring to mind but this will also be the behaviour in
 Opera from 11.10) simply don't have an accept-charset header and the W3C
 says this means you can throw anything at them, in which case UTF-8 is a
 good choice.

You implemented this in getPreferredCharsets(), so that method says 
UTF-8 is accepted if no Accept-Charset header is set.

And Five always used this line which has the same effect::

 charsets = envadapter.getPreferredCharsets() or ['utf-8']


Cheers,

Yuppie
___
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 )


Re: [Zope-dev] ZPublisher: using zope.formlib and z3c.form in Zope 2

2011-03-02 Thread Hanno Schlichting
On Wed, Mar 2, 2011 at 9:43 AM, yuppie y.2...@wcm-solutions.de wrote:
 Does that make sense? I guess that kind of change should only be made on
 the trunk.

Sounds all good to me, and yes this should be Zope trunk only.

Hanno
___
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 )


Re: [Zope-dev] Zope Tests: 83 OK, 31 Failed, 1 Unknown

2011-03-02 Thread Hanno Schlichting
On Wed, Mar 2, 2011 at 4:42 PM, Gediminas Paulauskas mene...@pov.lt wrote:
 zope.traversing = 3.13.1

 This bugfix has new requirements, at least

 zope.security = 3.8.0
 zope.browserresource = 3.12.0

 All three of them do the same - make it possible to include their zcml
 files directly.

 And these versions have been tested for a long time in ztk 1.0dev
 builders, so are good to go in.

Unfortunately they are not good for ZTK 1.0.x. ZTK 1.0 uses
zope.browserresource 3.10.3. It's 3.11.0 version introduces a
completely new API that already required code and test changes on the
Zope 2 level - making it likely to cause even further troubles in
higher level frameworks or applications.

I've rereleased zope.traversing 3.13.1 as 3.14.0 for ZTK 1.1 and
rereleased 3.13.0 as 3.13.2 for ZTK 1.0.

Hanno
___
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 )