[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> </DIV>
<DIV><FONT size=3D2>On passing 'request' (why the extra argument =
anyway?) I=20
got</FONT></DIV>
<DIV> </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> </DIV>
<DIV><FONT size=3D2>>>On Wed, Jan 31, 2001 at 09:25:08AM +1300, W. =
Robert=20
Kellock wrote:<BR>>> Are PythonScript arguments typeless? I =
keep=20
getting an<BR>>> error<BR>>> <BR>>> Error Type:=20
AttributeError<BR>>> Error Value: 'string' object has no attribute =
'password'<BR>>> <BR>>> from the authenticate method =
which I'm=20
passing self,password.<BR><BR><BR>>I think you should pass (self, =
password,=20
request).<BR><BR><BR>>-- <BR>>Fred=20
Yankowski <A =
href=3D"http://groups.yahoo.com/group/zope/post?protectID=3D2302121921501=
46105172057065061100088071179066034">fred@O...</A>  =
; =20
tel: +1.630.879.1312<BR>>Principal Consultant =
www.OntoSys.com fax:=20
+1.630.879.1370<BR>>OntoSys,=20
Inc &nbs=
p;=20
38W242 Deerpath Rd, Batavia, IL 60510, USA<BR></DIV></FONT>
<DIV><FONT=20
size=3D2>----------------------------------------------------------------=
---------------------------------------------<BR>W.Robert=20
Kellock =
&=
nbsp; =20
Ph: &nbs=
p; =20
+64 3 326 6115<BR>Sales=20
Manager =
&=
nbsp; &n=
bsp; =20
Fax: &nb=
sp; =20
+64 3 326 6115<BR>Credit Systems Control=20
Ltd &nbs=
p; =20
Web: <A=20
href=3D"http://www.creditscore.co.nz">www.creditscore.co.nz</A><BR> =
&=
nbsp; &n=
bsp; &nb=
sp; =20
"making decisions=20
easy"<BR>----------------------------------------------------------------=
---------------------------------------------<BR></FONT></DIV></BODY></HT=
ML>
------=_NextPart_000_0015_01C08BBC.838AD440--