[Zope] Adding users to acl_users
Mike Kelland
mike@studiomatic.com
Fri, 8 Dec 2000 14:37:29 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_002F_01C06124.649028A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi everyone,=20
I tried to add the manage_users thing that someone referred me to (sorry =
that I don't remember who) and got the following error:
Error Type: KeyError
Error Value: __cmp__
my code is as follows:
<table width=3D"600" border=3D"0" cellpadding=3D"3" cellspacing=3D"1">
<tr class=3D"one">
<td style=3D"text-align:left" colspan=3D"2">
User Name: <br><input name=3D"name">
</td>
</tr>
<tr class=3D"two">
<td style=3D"text-align:left">
Password:<br>
<input name=3D"password">
</td>
<td style=3D"text-align:left">
Confirm Password: <br>
<input name=3D"confirm">
</td>
</tr>
<tr class=3D"one" >
<td style=3D"text-align:left" colspan=3D"2">
Role: <br>
<SELECT NAME=3D"roles:list" SIZE=3D"5" MULTIPLE>
<OPTION VALUE=3D"Manager">Manager
<OPTION VALUE=3D"Owner">Owner
<OPTION VALUE=3D"User">User
</SELECT>
<br>
<INPUT TYPE=3D"TEXT" NAME=3D"domains:tokens" VALUE=3D"" SIZE=3D"40">
</td>
</tr>
<tr class=3D"two">
<td colspan=3D"2">
<input type=3D"submit" name=3D"submit" value=3D"Add">
</table>
---------END---------
to get the information and I'm using the code:
<dtml-with acl_users>
<dtml-call expr=3D"manage_users(REQUEST)">
</dtml-with>
to process it. I've taken the code pretty much directly from the =
acl_users folder's Add form... Anyone know what's going on?=20
Thanks again for everyone's help. The _.str(date) thing worked =
perfectly with my Access date problem...=20
Mike Kelland
mike@studiomatic.com
------=_NextPart_000_002F_01C06124.649028A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi everyone, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I tried to add the manage_users thing =
that someone=20
referred me to (sorry that I don't remember who) and got the following=20
error:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Error Type: KeyError<BR>Error Value:=20
__cmp__</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>my code is as follows:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><table width=3D"600" border=3D"0" =
cellpadding=3D"3"=20
cellspacing=3D"1"><BR><tr class=3D"one"><BR><td =
style=3D"text-align:left"=20
colspan=3D"2"><BR>User Name: <br><input=20
name=3D"name"><BR></td><BR></tr></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><tr class=3D"two"><BR><td=20
style=3D"text-align:left"><BR>Password:<br><BR><input=20
name=3D"password"><BR></td><BR><td=20
style=3D"text-align:left"><BR>Confirm Password: =
<br><BR><input=20
name=3D"confirm"><BR></td><BR></tr></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><tr class=3D"one" ><BR><td=20
style=3D"text-align:left" colspan=3D"2"><BR>Role: =
<br><BR><SELECT=20
NAME=3D"roles:list" SIZE=3D"5"=20
MULTIPLE><BR> =
<OPTION=20
VALUE=3D"Manager">Manager<BR>  =
; =20
<OPTION =
VALUE=3D"Owner">Owner<BR> =20
<OPTION =
VALUE=3D"User">User<BR></SELECT><BR><br><BR><INPUT=20
TYPE=3D"TEXT" NAME=3D"domains:tokens" VALUE=3D""=20
SIZE=3D"40"><BR></td><BR></tr></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><tr class=3D"two"><BR><td=20
colspan=3D"2"><BR><input type=3D"submit" name=3D"submit"=20
value=3D"Add"><BR></table><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>---------END---------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>to get the information and I'm using =
the=20
code:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><dtml-with =
acl_users><BR><dtml-call=20
expr=3D"manage_users(REQUEST)"><BR></dtml-with><BR></FONT></DIV>=
<DIV><FONT face=3DArial size=3D2>to process it. I've taken the =
code pretty=20
much directly from the acl_users folder's Add form... Anyone know =
what's=20
going on? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks again for everyone's help. =
The=20
_.str(date) thing worked perfectly with my Access date problem... =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Mike Kelland</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:mike@studiomatic.com">mike@studiomatic.com</A></FONT></DIV=
>
<DIV><FONT face=3DArial size=3D2> </DIV></FONT></BODY></HTML>
------=_NextPart_000_002F_01C06124.649028A0--