[Zope3-dev] Thread problems
Peter Mayne
PeterMayne at ap.spherion.com
Mon Oct 11 03:36:23 EDT 2004
I'm creating a thread using the Python threading module to perform a
long running task.
As soon as I attempt to modify something, I get:
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/local/lib/python2.3/threading.py", line 436, in __bootstrap
self.run()
File "/home/zope/zopex3/lib/python/imdb/browser/loader.py", line 47,
in run
self._loader()
File "/home/zope/zopex3/lib/python/imdb/browser/loader.py", line 192,
in loadActors_
parent = self.getSubfolder(ACTORS_FOLDER)
File "/home/zope/zopex3/lib/python/imdb/browser/loader.py", line 57,
in getSubfolder
self.context[name] = subfolder
AttributeError: 'zope.thread.local' object has no attribute 'interaction'
The thread-local storage seems to be where zope.security stores its
stuff. How do I get my thread to inherit the right security?
Thanks.
PJDM
--
Peter Mayne
Spherion Technology Solutions
Canberra, ACT, Australia
"You're given the form, but you have to write the sonnet yourself.
What you say is completely up to you." - Mrs. Whatsit
More information about the Zope3-dev
mailing list