[Zope] top level acl_users and AUTHENTICATED_USER
Ross J. Reedstrom
reedstrm@wallace.ece.rice.edu
Mon, 17 May 1999 12:17:19 -0500 (CDT)
Hi all -
I've got a couple problems (so, what's new? ;-) First, how do I test against
the value of the AUTHENTICATED_USER? I'm creating files and folders through
a DTML interface, and taging them with a property set to the result of
REQUEST.get('AUTHENTICATED_USER') as a 'string' (see my previous emails about
REQUEST['AUTHENTICATED_USER'] not working directly)
Now, I want to retrieve that property, and test it againt the current
AUTHENTICATED_USER, so if they are the same, I offer rename and delete
functions. The following DOESN'T work, although the string representation
of both addedby and REQUEST.get('AUTHENTICATED_USER') look the same when
rendered farther down:
<!--#in expr="objectValues(['File'])"-->
<tr>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="16">
<!--#if "addedby == REQUEST.get('AUTHENTICATED_USER')"-->
<INPUT TYPE="CHECKBOX" NAME="ids:list" VALUE="<!--#var id-->">
<!--#/if-->
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<A HREF="<!--#var id url_quote-->">
<IMG SRC="/NSBRI/misc_/OFSP/File_icon.gif"
ALT="[File]" BORDER="0"></A>
</TD>
<td class="smallclean"><a href="<!--#var id url_quote-->"><!--#var title_or_id--></a></td>
<td class="smallclean"><!--#var size thousands_commas--> bytes</td>
<td class="smallclean"><!--#var bobobase_modification_time fmt="Date"--></td>
<td align="center" class="smallclean"> <!--#var addedby--></td>
</tr>
<!--#/in-->
Second problem:
I deleted the top level acl_users folder, replaced it with UserDb, then
moved my UserDb into a sub folder, so I recreated a 'standard' User Folder
at the root, but now I can't authenticate against an users I create in
there. Is there a bug with adding a User Folder at the top level?
this is all with 1.11.0pr1 on Win32
Thanks,
Ross
--
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St., Houston, TX 77005