Re: [Zope-dev] Re: start_new_thread / user issue

2004-04-13 Thread Toby Gustafson
On Tue, 13 Apr 2004, Tres Seaver wrote: Given that you trust yourself ;), you can add a security context from within the second thread; you could pass the user ID to the thread via one of several forms of currying, e.g. via instance variables:: I'm not sure if I trust myself in real

[Zope-dev] Re: start_new_thread / user issue

2004-04-13 Thread Tres Seaver
Toby Gustafson wrote: Your code below did not work for me because I could not find the newSecurityContext method. However, I was able to use the SecurityManagement.newSecurityManager instead, and that worked great. Thanks for pointing me in the right direction. Great! Sorry for leaving off the

[Zope-dev] Re: start_new_thread / user issue

2004-04-12 Thread Tres Seaver
Toby Gustafson wrote: 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