Re: [Zope3-dev] Re: using utilities/sites from threads in zope3

2007-07-02 Thread Jim Fulton
What Tres said. :) Jim On Jun 29, 2007, at 8:54 AM, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim Stebbing wrote: G'day, I've recently ran into a bit of a problem attempting to use threads in zope 3.2.1, hooks.getSite() returns None, and any attempt to get a

Re: [Zope3-dev] Re: using utilities/sites from threads in zope3

2007-07-02 Thread Tim Stebbing
Thanks Tres, I've ended up with a threadHelper.py module that seems to be working well, I'll post it as its small and might be useful for people googling in the future. Helper utilities for working with threads. from ZODB.interfaces import IDatabase from zope.app import zapi from

[Zope3-dev] Re: using utilities/sites from threads in zope3

2007-06-29 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim Stebbing wrote: G'day, I've recently ran into a bit of a problem attempting to use threads in zope 3.2.1, hooks.getSite() returns None, and any attempt to get a utility results in a component lookup error within my threads. I've attempted