<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Python Script which is set as "Access Rule" for
some Folder is execute before authentication is done.</FONT></DIV>
<DIV><FONT face=Arial size=2>This way the following code won't work</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><!--StartFragment --><EM><FONT face=Arial size=2>if
context.portal_membership.getAuthenticatedUser().getId() == "admin": <BR>
return "dog" <BR>return "cat</FONT>" </EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><FONT face=Arial size=2>I will always get "cat". So does somebody know how
to resolve it?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Krzychula</FONT></DIV>
<DIV><EM></EM> </DIV></BODY></HTML>