[Zope-dev] Zope Tests: 4 OK, 2 Failed

Tres Seaver tseaver at palladion.com
Sun Jan 4 14:42:40 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zope Tests Summarizer wrote:

> Subject: FAILED (failures=2) : Zope-trunk Python-2.4.5 : Linux
> From: Zope Tests
> Date: Sat Jan  3 20:36:05 EST 2009
> URL: http://mail.zope.org/pipermail/zope-tests/2009-January/010775.html
> 
> Subject: FAILED (failures=2) : Zope-trunk Python-2.5.2 : Linux
> From: Zope Tests
> Date: Sat Jan  3 20:37:35 EST 2009
> URL: http://mail.zope.org/pipermail/zope-tests/2009-January/010776.html

I think I have fixed these failures:  the issue was that somehow, after
Sidnei landed his Python 2.5 / 2.6 changes, the dummy 'Implicit' class
used for the failing views was not supplying an 'index_html', which led
to the one on the application root being acquireable, and therefore
blowing up the publishing traversal.

I don't know why the tests happened to pass before Sidnei's changes, or
whe running only the tests from 'Products.Five'.  The fact is that *any*
Zope2 view class involved in acquisition needs to either have a real
'index_html' method, or else set it to None, in which case its
'__call__' gets used instead.  This constraint has been true for all
"methodish" objects in Zope2 since the dawn of time.

I have checked in a change adding 'index_html = None' to the class, and
all tests now pass on my box.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJYREw+gerLs4ltQ4RAt8WAKDZWyM/UScIhAPovaKnjmtpLBeXwACbBvnJ
0bjxTJ2iqByjIvoXlVX78Zg=
=jRrO
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list