[Zope-dev] Zope Tests: 36 OK, 13 Failed, 3 Unknown

2010-08-26 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Wed Aug 25 12:00:00 2010 UTC to Thu Aug 26 12:00:00 2010 UTC.
There were 52 messages: 6 from Zope Tests, 1 from buildbot at 
enfoldsystems.com, 4 from buildbot at pov.lt, 13 from buildbot at 
winbot.zope.org, 11 from ccomb at free.fr, 17 from jdriessen at 
thehealthagency.com.


Test failures
-

Subject: FAILED : Zope Buildbot / zope2 slave-osx
From: jdriessen at thehealthagency.com
Date: Wed Aug 25 13:29:59 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018934.html

Subject: FAILED : Zope Buildbot / zope2.12 slave-osx
From: jdriessen at thehealthagency.com
Date: Wed Aug 25 19:55:23 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018944.html

Subject: FAILED : Zope Buildbot / zope2 slave-osx
From: jdriessen at thehealthagency.com
Date: Wed Aug 25 19:57:57 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018947.html

Subject: FAILED : winbot / ztk_dev py_244_win32
From: buildbot at winbot.zope.org
Date: Wed Aug 25 22:03:31 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018960.html

Subject: FAILED : winbot / ztk_dev py_254_win32
From: buildbot at winbot.zope.org
Date: Wed Aug 25 22:05:57 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018961.html

Subject: FAILED : winbot / ztk_dev py_265_win32
From: buildbot at winbot.zope.org
Date: Wed Aug 25 22:08:59 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018962.html

Subject: FAILED : winbot / ztk_dev py_265_win64
From: buildbot at winbot.zope.org
Date: Wed Aug 25 22:11:48 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018964.html

Subject: FAILED : winbot / ztk_10 py_244_win32
From: buildbot at winbot.zope.org
Date: Wed Aug 25 22:19:54 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018965.html

Subject: FAILED : ZTK 1.0dev / Python2.5.5 Linux 64bit
From: ccomb at free.fr
Date: Wed Aug 25 23:07:21 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018970.html

Subject: FAILED : ZTK 1.0dev / Python2.6.5 Linux 64bit
From: ccomb at free.fr
Date: Wed Aug 25 23:07:32 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018971.html

Subject: FAILED : ZTK 1.0dev / Python2.4.6 Linux 64bit
From: ccomb at free.fr
Date: Wed Aug 25 23:07:34 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018972.html

Subject: FAILED : winbot / ZODB_dev py_270_win32
From: buildbot at winbot.zope.org
Date: Thu Aug 26 03:07:26 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018982.html

Subject: FAILED : winbot / ZODB_dev py_270_win64
From: buildbot at winbot.zope.org
Date: Thu Aug 26 04:02:56 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018983.html


Unknown
---

Subject: UNKNOWN : Zope-trunk Python-2.6.5 : Linux
From: Zope Tests
Date: Wed Aug 25 21:32:58 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018954.html

Subject: UNKNOWN : Zope-trunk-alltests Python-2.6.5 : Linux
From: Zope Tests
Date: Wed Aug 25 21:34:58 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018955.html

Subject: [zodb-tests] buildbot failure in Enfold Systems on 
zodb-trunk-python-2.6-maestro
From: buildbot at enfoldsystems.com
Date: Thu Aug 26 03:04:08 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018981.html


Tests passed OK
---

Subject: OK : Zope Buildbot / zope2 slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Wed Aug 25 13:28:40 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018932.html

Subject: OK : Zope Buildbot / zope2 slave-ubuntu32
From: jdriessen at thehealthagency.com
Date: Wed Aug 25 13:28:45 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018933.html

Subject: OK : Zope Buildbot / ztk slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Wed Aug 25 14:32:34 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018935.html

Subject: OK : Zope Buildbot / ztk slave-ubuntu32
From: jdriessen at thehealthagency.com
Date: Wed Aug 25 14:34:00 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018936.html

Subject: OK : Zope Buildbot / ztk slave-osx
From: jdriessen at thehealthagency.com
Date: Wed Aug 25 14:35:28 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018937.html

Subject: OK : Zope Buildbot / ztk_win slave-win
From: jdriessen at thehealthagency.com
Date: Wed Aug 25 14:38:36 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018938.html

Subject: OK : Zope Buildbot / zope2.12 slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Wed Aug 25 19:44:44 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-August/018939.html

Subject: OK : Zope Buildbot / zope2 slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Wed Aug 25 19:46:24 EDT 2010
URL: 

[Zope-dev] z3c.testsetup

2010-08-26 Thread Adam GROSZER
Hello,

Someone please take a look at z3c.testsetup trunk.
There are 2 failures but only on *windows*, which I cannot solve now.
http://paste.lisp.org/+2FWH

Tests in
...\trunk\src\z3c\testsetup\tests\layered_cave\foo\
do not get picked up. Weird is that the same looking tests in
...\layered_cave\bar\ get picked up.
Therefore 2 tests (testrunner.txt, README.txt) still break.

-- 
Best regards,
 Adam GROSZER  mailto:agros...@gmail.com
--
Quote of the day:
I fear God, and next to God I chiefly fear him who fears Him not. 
- Saadi 

___
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] Undo tab in Zope 2.12

2010-08-26 Thread Chris Withers
...often appears to be empty when it shouldn't be.

Has anyone else observed this?

Chris

-- 
Simplistix - Content Management, Batch Processing  Python Consulting
- http://www.simplistix.co.uk
___
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] Undo tab in Zope 2.12

2010-08-26 Thread Chris Withers
Chris Withers wrote:
 ...often appears to be empty when it shouldn't be.
 
 Has anyone else observed this?

The answer turned out to be ZODB 2.10b4 being used on the storage server 
side.

I found a clue in the ChangeLog but it sure would be nice if there was 
some logging of some sort to warn what was going on...

Chris

-- 
Simplistix - Content Management, Batch Processing  Python Consulting
- http://www.simplistix.co.uk
___
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] attempting to undo an un-undoable transaction gives NotImplementedError with ZODB 3.9.5

2010-08-26 Thread Chris Withers
Here's an example:

2010-08-26 22:49:01 ERROR txn.-1338986496 Failed to abort resource 
manager: MultiObjectResourceAdapter for ZODB.DB.TransactionalUndo 
object at 0x2d509f0 at 47516176
Traceback (most recent call last):
   File transaction-1.1.0-py2.6.egg/transaction/_transaction.py, line 
475, in abort
 rm.abort(self)
   File transaction-1.1.0-py2.6.egg/transaction/_transaction.py, line 
548, in abort
 self.manager.abort(o, txn)
   File ZODB3-3.9.5-py2.6-macosx-10.3-fat.egg/ZODB/DB.py, line 985, in 
abort
 raise NotImplementedError
NotImplementedError

This used to give a meaningful error message.

Anyone know why it no longer does?

Chris

-- 
Simplistix - Content Management, Batch Processing  Python Consulting
- http://www.simplistix.co.uk
___
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] testing problem with path expressions in page templates

2010-08-26 Thread Chris Withers
Hi All,

When trying to test a template in a unit test, I get the following 
exception:

- Expression: PathExpr standard:u'options/myobject/SomeProperty'
...
   File 
Zope2-2.12.7-py2.6-macosx-10.3-fat.egg/Products/PageTemplates/Expressions.py, 
line 79, in boboAwareZopeTraverse
 request=request)
   File zope.traversing-3.7.1-py2.6.egg/zope/traversing/adapters.py, 
line 136, in traversePathElement
 raise LocationError('No traversable adapter found', obj)
- __traceback_info__: ({'content': MyObject, 'args': ()}, 'content')
LocationError: ('No traversable adapter found', {'content': MyObject, 
'args': ()})

'SomeProperty' is, well, a property ;-)

Now, the same template works just fine when used for real, so I figure 
some standard traversal adapter hasn't been registered when the test runs.

What adapter might that be and what's the right way to get it 
registered in a unit test?

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing  Python Consulting
- http://www.simplistix.co.uk
___
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] testing problem with path expressions in page templates

2010-08-26 Thread Marius Gedminas
On Fri, Aug 27, 2010 at 12:47:11AM +0100, Chris Withers wrote:
 When trying to test a template in a unit test, I get the following 
 exception:
...
 LocationError: ('No traversable adapter found', {'content': MyObject, 
 'args': ()})
...
 Now, the same template works just fine when used for real, so I figure 
 some standard traversal adapter hasn't been registered when the test runs.
 
 What adapter might that be and what's the right way to get it 
 registered in a unit test?

DefaultTraversable, I think, and

from zope.app.testing import setup
setup.setUpTraversal()

Various other features need various other components, e.g. if your
template tries to use @@absolute_url, in addition to the above, you'll need

provideAdapter(zope.traversing.namespace.view,
   adapts=(None, None),
   provides=ITraversable,
   name='view')

similarly for resources you do something like

ztapi.provideView(Interface, Interface, ITraversable, 'resource',
  zope.traversing.namespace.resource)
ztapi.browserResource('style.css', ResourceStub)

and let's not even start talking about forms and widgets.

I'm not sure rendering page templates in unit tests is worth the pain.

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3/BlueBream consulting and development


signature.asc
Description: Digital signature
___
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 )