[Zope-dev] zope.server: "Exception during task" logging

2010-04-14 Thread Christian Zagrodnick
Hi,

zope.server logs the "Exception during task" message to the root 
logger. So there is no (easy/useful) way to filter that.

I'd like to change this logging to a zope.server logger. (i.e. using 
logging.getLogger(...))

Objections?
-- 
Christian Zagrodnick · c...@gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 4 · fax +49 345 1229889 1
Zope and Plone consulting and development


___
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 2: ZPublisher exception handling

2010-04-14 Thread yuppie
Hi!


Tres Seaver wrote:
> yuppie wrote:
>> yuppie wrote:
>>> In Zope 2.10 'raise_standardErrorMessage', 'zpublisher_exception_hook'
>>> and therefore 'Publish.publish' did always (re-)raise errors after
>>> rendering. That made sure 'HTTPResponse.exception' was called and
>>> CookieCrumbler was able to hook into 'HTTPResponse._unauthorized'.
>>>
>>> I'm now trying to figure out how this bug could be fixed:
>>> https://bugs.launchpad.net/zope-cmf/+bug/558340
>>
>> For the record:
>>
>> Meanwhile I figured out that there is a related launchpad issue
>> https://bugs.launchpad.net/zope2/+bug/372632
>
> Do you have a suggestion for resolving those two bugs?

The original issue reported in 
https://bugs.launchpad.net/zope2/+bug/372632 seems to be fixed. The 
issue discussed in comment #15 and later is basically the same as in 
https://bugs.launchpad.net/zope-cmf/+bug/558340.

So there is only *one* issue:

If errors are rendered by 'raise_standardErrorMessage' or by an error 
view they are not re-raised. In that case the error handling in 
'publish_module_standard' and 'HTTPResponse.exception' is no longer invoked.

I'm not sure how to resolve this.

Approach 1: We try to restore the old behavior. The changes were made 
because the old machinery didn't work with exceptions like 
zope.publisher.interfaces.NotFound, but I'm optimistic we can find a 
less intrusive fix for that.

Approach 2: The _unauthorized call seems to be the only part of the old 
error handling that people are actually missing. We could try to add a 
new hook for that and deprecate big parts of the old code. But is that 
old code really useless?

>> and a workaround for the CookieCrumbler issue:
>> http://dev.plone.org/collective/changeset/92340
>
> Hmm, registering an exception view which re-raises the exception is
> definitely suggestive of something wrong in the plumbing.

Yes. But *if* we don't want restore the old behavior, we could move 
CookieCrumbler's complete redirect logic into an error view. And get rid 
of _unauthorized.


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] Zope Tests: 13 OK, 1 Failed

2010-04-14 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Tue Apr 13 12:00:00 2010 UTC to Wed Apr 14 12:00:00 2010 UTC.
There were 14 messages: 6 from Zope Tests, 7 from ccomb at free.fr, 1 from ct 
at gocept.com.


Test failures
-

Subject: FAILED: Repository policy check found errors in 669 projects
From: ct at gocept.com
Date: Tue Apr 13 21:16:40 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013943.html


Tests passed OK
---

Subject: OK : Zope-2.10 Python-2.4.6 : Linux
From: Zope Tests
Date: Tue Apr 13 21:29:36 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013944.html

Subject: OK : Zope-2.11 Python-2.4.6 : Linux
From: Zope Tests
Date: Tue Apr 13 21:31:36 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013945.html

Subject: OK : Zope-2.12 Python-2.6.4 : Linux
From: Zope Tests
Date: Tue Apr 13 21:33:36 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013946.html

Subject: OK : Zope-2.12-alltests Python-2.6.4 : Linux
From: Zope Tests
Date: Tue Apr 13 21:35:36 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013947.html

Subject: OK : Zope-trunk Python-2.6.4 : Linux
From: Zope Tests
Date: Tue Apr 13 21:37:36 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013948.html

Subject: OK : Zope-trunk-alltests Python-2.6.4 : Linux
From: Zope Tests
Date: Tue Apr 13 21:39:37 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013949.html

Subject: OK : BlueBream template / Python2.4.6 32bit linux
From: ccomb at free.fr
Date: Tue Apr 13 22:01:24 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013950.html

Subject: OK : BlueBream template / Python2.6.4 32bit linux
From: ccomb at free.fr
Date: Tue Apr 13 22:01:32 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013951.html

Subject: OK : BlueBream template / Python2.7b1 32bit linux
From: ccomb at free.fr
Date: Tue Apr 13 22:01:32 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013952.html

Subject: OK : BlueBream template / Python2.5.2 32bit linux
From: ccomb at free.fr
Date: Tue Apr 13 22:01:35 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013953.html

Subject: OK : ZTK 1.0dev / Python2.4.6 Linux 32bit
From: ccomb at free.fr
Date: Tue Apr 13 23:56:36 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013954.html

Subject: OK : ZTK 1.0dev / Python2.5.2 Linux 32bit
From: ccomb at free.fr
Date: Tue Apr 13 23:58:06 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013955.html

Subject: OK : ZTK 1.0dev / Python2.6.4 Linux 32bit
From: ccomb at free.fr
Date: Tue Apr 13 23:58:15 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-April/013956.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 )