[Zope] LoginManager dlpierson example

W. Robert Kellock sales@creditscore.co.nz
Wed, 31 Jan 2001 19:32:14 +1300


This is a multi-part message in MIME format.

------=_NextPart_000_0015_01C08BBC.838AD440
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks Fred,

On passing 'request' (why the extra argument anyway?) I got

Error Type: TypeError
Error Value: not enough arguments; expected 3, got 2

so I'm wondering have you got LoginManager to work on the Zope 2.3.0 =
release?

>>On Wed, Jan 31, 2001 at 09:25:08AM +1300, W. Robert Kellock wrote:
>> Are PythonScript arguments typeless?  I keep getting an
>> error
>>=20
>> Error Type: AttributeError
>> Error Value: 'string' object has no attribute 'password'
>> =20
>> from the authenticate method which I'm passing self,password.


>I think you should pass (self, password, request).


>--=20
>Fred Yankowski           fred@O...      tel: +1.630.879.1312
>Principal Consultant     www.OntoSys.com       fax: +1.630.879.1370
>OntoSys, Inc             38W242 Deerpath Rd, Batavia, IL 60510, USA

-------------------------------------------------------------------------=
------------------------------------
W.Robert Kellock                                    Ph:                  =
 +64 3 326 6115
Sales Manager                                        Fax:                =
  +64 3 326 6115
Credit Systems Control Ltd                      Web:       =
www.creditscore.co.nz
                                              "making decisions easy"
-------------------------------------------------------------------------=
------------------------------------


------=_NextPart_000_0015_01C08BBC.838AD440
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 content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Thanks Fred,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>On passing 'request' (why the extra argument =
anyway?) I=20
got</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2><STRONG>Error Type: =
TypeError</STRONG><BR><STRONG>Error Value:=20
not enough arguments; expected 3, got 2</STRONG><BR></FONT></DIV>
<DIV><FONT size=3D2>so I'm wondering have you got LoginManager to work =
on the Zope=20
2.3.0 release?</DIV></FONT>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>&gt;&gt;On Wed, Jan 31, 2001 at 09:25:08AM +1300, W. =
Robert=20
Kellock wrote:<BR>&gt;&gt; Are PythonScript arguments typeless?&nbsp; I =
keep=20
getting an<BR>&gt;&gt; error<BR>&gt;&gt; <BR>&gt;&gt; Error Type:=20
AttributeError<BR>&gt;&gt; Error Value: 'string' object has no attribute =

'password'<BR>&gt;&gt;&nbsp; <BR>&gt;&gt; from the authenticate method =
which I'm=20
passing self,password.<BR><BR><BR>&gt;I think you should pass (self, =
password,=20
request).<BR><BR><BR>&gt;-- <BR>&gt;Fred=20
Yankowski&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A =

href=3D"http://groups.yahoo.com/group/zope/post?protectID=3D2302121921501=
46105172057065061100088071179066034">fred@O...</A>&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
tel: +1.630.879.1312<BR>&gt;Principal Consultant&nbsp;&nbsp;&nbsp;&nbsp; =

www.OntoSys.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fax:=20
+1.630.879.1370<BR>&gt;OntoSys,=20
Inc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
38W242 Deerpath Rd, Batavia, IL 60510, USA<BR></DIV></FONT>
<DIV><FONT=20
size=3D2>----------------------------------------------------------------=
---------------------------------------------<BR>W.Robert=20
Kellock&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
"making decisions=20
easy"<BR>----------------------------------------------------------------=
---------------------------------------------<BR></FONT></DIV></BODY></HT=
ML>

------=_NextPart_000_0015_01C08BBC.838AD440--