[Zope-dev] start_new_thread / user issue

Toby Gustafson tobyg at tyrell.com
Mon Apr 12 16:50:12 EDT 2004


Hi,

   Within a python file I do a call to thread.start_new_thread(...).
Before this call, I am the admin user (verified by calling
AccessControl.getSecurityManager().getuser().getUserName()).  After the
call, however, in the new thread, the user is now "Anonymous User".

   Is there any way to somehow "pass" the user between threads because the
code executed in the new thread needs the same permissions as the code
executed in the old thread?  I can obviously pass the user name to the new
thread, but I'm not sure if that does me any good, because I doubt an
Anonymous User would have permission to make itself another user.

   Any hints or suggestions would be appreciated.

Thanks,
--Toby.
---------------------------
Toby Gustafson
Senior Software Engineer
Tyrell Software Corporation
Email: tobyg at tyrell.com
---------------------------




More information about the Zope-Dev mailing list