Zope Tests Summarizer | 1 Aug 2007 14:00
Picon

Zope Tests: 5 OK

Summary of messages to the zope-tests list.
Period Tue Jul 31 12:00:00 2007 UTC to Wed Aug  1 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.

Tests passed OK
---------------

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Tue Jul 31 20:53:26 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-July/008117.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Tue Jul 31 20:54:57 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-July/008118.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Jul 31 20:56:28 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-July/008119.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Jul 31 20:57:59 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-July/008120.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Jul 31 20:59:30 EDT 2007
(Continue reading)

Zope Tests Summarizer | 2 Aug 2007 14:00
Picon

Zope Tests: 5 OK

Summary of messages to the zope-tests list.
Period Wed Aug  1 12:00:00 2007 UTC to Thu Aug  2 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.

Tests passed OK
---------------

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Wed Aug  1 20:52:55 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008122.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Wed Aug  1 20:54:26 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008123.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Wed Aug  1 20:55:57 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008124.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Wed Aug  1 20:57:28 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008125.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Wed Aug  1 20:59:00 EDT 2007
(Continue reading)

Zope Tests Summarizer | 3 Aug 2007 14:00
Picon

Zope Tests: 5 OK

Summary of messages to the zope-tests list.
Period Thu Aug  2 12:00:00 2007 UTC to Fri Aug  3 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.

Tests passed OK
---------------

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Thu Aug  2 20:53:58 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008127.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Thu Aug  2 20:55:29 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008128.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Aug  2 20:56:59 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008129.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Aug  2 20:58:30 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008130.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Aug  2 21:00:02 EDT 2007
(Continue reading)

Ross Patterson | 3 Aug 2007 23:12
Favicon
Gravatar

Is "if sys.exc_info()[2].tb_next is not None: raise" Evil? Concerns Products.GenericSetup, zope.configuration and others

While trying to use zope.app.modul.ZopePersistentModuleImporter, I ran
across an interaction with code that uses the following hack to try and
discern where an exception was raised.

    >>> if sys.exc_info()[2].tb_next is not None:
    >>>     raise

The problem is occurs when an application provides an __import__
function written in python.  In that case then there is a tb_next for
all ImportError exceptions and this hack no longer indicates when the
error was deeper.  The same problem would occur if the hack were used
while catching AttributeError and there was a python implementation for
attribute access involved.

This hack counts on the fact that C code which raises an error doesn't
get included in the stack.  It counts on this fact, however, at points
where Python specifically allows application specific implementations
written in Python.  See the first paragraph of the __import__
documentation.

http://docs.python.org/lib/built-in-funcs.html#l2h-6

Here's a grep of the Zope 2.10 branch.  These first two are catching
TypeError:

./Zope/lib/python/zope/component/_api.py:73:            if sys.exc_info()[2].tb_next is not None:
./Zope/lib/python/zope/interface/interface.py:644:            if sys.exc_info()[2].tb_next is not None:

And these are catching ImportError:

(Continue reading)

Ross Patterson | 4 Aug 2007 02:12
Favicon
Gravatar

How can I tell if an object in a ZODB is being activated? Concerns zope.app.module.importer.

I'm working on zope.app.module.ZopePersistentModuleImporter.  As noted
in zodbcode.module.PersistentModuleImporter.__doc__, if the persistent
module registry which is consulted on import queries a persistent site
manager then the site manager must be activated before being queried or
a circular import problem occurs when the ZODB attempts to import the
globals necessary to activate the site manager.

The site manager will, however, eventually be deactivated, by a
transaction.abort() for example.  So I'm looking for a way that the
importer can know whether or now it's being called as a part of
activating the site manager.  I've written (and attached diffs for) a
very ugly function that inspects the frame stack to detect if the site
manager is being activated just to demonstrate what I'm looking for.

Is there a way to ask an object if it's being activated?  Or what might
be a better approach to solving this problem?

Ross

Attachment (zam.diff): text/x-diff, 4613 bytes
_______________________________________________
Zope-Dev maillist  -  Zope-Dev <at> zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )
(Continue reading)

Zope Tests Summarizer | 4 Aug 2007 14:00
Picon

Zope Tests: 5 OK

Summary of messages to the zope-tests list.
Period Fri Aug  3 12:00:00 2007 UTC to Sat Aug  4 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.

Tests passed OK
---------------

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Fri Aug  3 20:54:23 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008132.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Fri Aug  3 20:55:54 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008133.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Fri Aug  3 20:57:25 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008134.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Fri Aug  3 20:58:56 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008135.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Fri Aug  3 21:00:28 EDT 2007
(Continue reading)

Zope Tests Summarizer | 5 Aug 2007 14:00
Picon

Zope Tests: 5 OK

Summary of messages to the zope-tests list.
Period Sat Aug  4 12:00:00 2007 UTC to Sun Aug  5 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.

Tests passed OK
---------------

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Sat Aug  4 20:56:04 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008137.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Sat Aug  4 20:57:35 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008138.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Sat Aug  4 20:59:05 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008139.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Sat Aug  4 21:00:36 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008140.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Sat Aug  4 21:02:08 EDT 2007
(Continue reading)

Zope Tests Summarizer | 6 Aug 2007 14:00
Picon

Zope Tests: 5 OK

Summary of messages to the zope-tests list.
Period Sun Aug  5 12:00:00 2007 UTC to Mon Aug  6 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.

Tests passed OK
---------------

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Sun Aug  5 20:54:17 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008142.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Sun Aug  5 20:55:48 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008143.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Sun Aug  5 20:57:19 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008144.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Sun Aug  5 20:58:50 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008145.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Sun Aug  5 21:00:21 EDT 2007
(Continue reading)

Zope Tests Summarizer | 7 Aug 2007 14:00
Picon

Zope Tests: 5 OK

Summary of messages to the zope-tests list.
Period Mon Aug  6 12:00:00 2007 UTC to Tue Aug  7 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.

Tests passed OK
---------------

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Mon Aug  6 20:58:09 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008147.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Mon Aug  6 20:59:40 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008148.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Aug  6 21:01:10 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008149.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Aug  6 21:02:41 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008150.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Aug  6 21:04:16 EDT 2007
(Continue reading)

Zope Tests Summarizer | 8 Aug 2007 14:00
Picon

Zope Tests: 5 OK

Summary of messages to the zope-tests list.
Period Tue Aug  7 12:00:00 2007 UTC to Wed Aug  8 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.

Tests passed OK
---------------

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Tue Aug  7 20:53:44 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008152.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Tue Aug  7 20:55:15 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008153.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Aug  7 20:56:45 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008154.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Aug  7 20:58:16 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008155.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Aug  7 20:59:47 EDT 2007
(Continue reading)


Gmane