[Zope] Threading in Zope
Stefan H. Holek
stefan@epy.co.at
Thu, 17 Jul 2003 14:43:11 +0200
You need to login in the new thread. You could pass the username to the
thread and do something like:
from AccessControl import newSecurityManager, noSecurityManager
uf = self.acl_users
user = uf.getUser(username).__of__(uf)
newSecurityManager(user, None)
...
noSecurityManager()
Stefan
--On Donnerstag, 17. Juli 2003 13:41 +0200 Florian Reiser
<florian.reiser@ra-bc.de> wrote:
> When I start a thread in zope, which shall execute a zope object,
> then the user falls back to the 'Anonymous User'.
>
> How can I preserve the current user for the thread?
> I need the user, because the script assembles it's output
> according to the users rights.
>
--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is. /Pete McBreen/