[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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Error Type: KeyError<BR>Error Value:=20
__cmp__</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>my code is as follows:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;table width=3D"600" border=3D"0" =
cellpadding=3D"3"=20
cellspacing=3D"1"&gt;<BR>&lt;tr class=3D"one"&gt;<BR>&lt;td =
style=3D"text-align:left"=20
colspan=3D"2"&gt;<BR>User Name: &lt;br&gt;&lt;input=20
name=3D"name"&gt;<BR>&lt;/td&gt;<BR>&lt;/tr&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;tr class=3D"two"&gt;<BR>&lt;td=20
style=3D"text-align:left"&gt;<BR>Password:&lt;br&gt;<BR>&lt;input=20
name=3D"password"&gt;<BR>&lt;/td&gt;<BR>&lt;td=20
style=3D"text-align:left"&gt;<BR>Confirm Password: =
&lt;br&gt;<BR>&lt;input=20
name=3D"confirm"&gt;<BR>&lt;/td&gt;<BR>&lt;/tr&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;tr class=3D"one" &gt;<BR>&lt;td=20
style=3D"text-align:left" colspan=3D"2"&gt;<BR>Role: =
&lt;br&gt;<BR>&lt;SELECT=20
NAME=3D"roles:list" SIZE=3D"5"=20
MULTIPLE&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;OPTION=20
VALUE=3D"Manager"&gt;Manager<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
&lt;OPTION =
VALUE=3D"Owner"&gt;Owner<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;OPTION =
VALUE=3D"User"&gt;User<BR>&lt;/SELECT&gt;<BR>&lt;br&gt;<BR>&lt;INPUT=20
TYPE=3D"TEXT" NAME=3D"domains:tokens" VALUE=3D""=20
SIZE=3D"40"&gt;<BR>&lt;/td&gt;<BR>&lt;/tr&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;tr class=3D"two"&gt;<BR>&lt;td=20
colspan=3D"2"&gt;<BR>&lt;input type=3D"submit" name=3D"submit"=20
value=3D"Add"&gt;<BR>&lt;/table&gt;<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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-with =
acl_users&gt;<BR>&lt;dtml-call=20
expr=3D"manage_users(REQUEST)"&gt;<BR>&lt;/dtml-with&gt;<BR></FONT></DIV>=

<DIV><FONT face=3DArial size=3D2>to process it.&nbsp; I've taken the =
code pretty=20
much directly from the acl_users folder's Add form...&nbsp; Anyone know =
what's=20
going on? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks again for everyone's help.&nbsp; =
The=20
_.str(date) thing worked perfectly with my Access date problem... =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</DIV></FONT></BODY></HTML>

------=_NextPart_000_002F_01C06124.649028A0--