Re: [Zope] LoginManager dlpierson example

2001-01-30 Thread W. Robert Kellock



Thanks Fred,
 
On passing 'request' (why the extra argument anyway?) I 
got
 
Error Type: TypeErrorError 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>> >> Error Type: 
AttributeError>> Error Value: 'string' object has no attribute 
'password'>>  >> from the authenticate method which I'm 
passing self,password.>I think you should pass (self, password, 
request).>-- >Fred 
Yankowski   [EMAIL PROTECTED]  
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 6115Sales 
Manager    
Fax:  
+64 3 326 6115Credit Systems Control 
Ltd  
Web:   www.creditscore.co.nz  
"making decisions 
easy"-


[Zope] LoginManager dlpierson example

2001-01-30 Thread W. Robert Kellock




Hi,
 
I'm new to Zope and I've been examining the LoginManager 
example given by dlpierson (http://www.zope.org/Members/dlpierson/sqlLogin).  
Although I am nowhere near understanding what it is doing, I'm very close to 
getting it to work - I think!  It looks to me like I'm falling down in the 
PythonMethods (PythonScripts) in the Member ZClass.  Are PythonScript 
arguments typeless?  I keep getting an error
 
Error Type: AttributeErrorError 
Value: 'string' object has no attribute 'password'
 
from the authenticate method which I'm passing 
self,password.
 
Strangely following this error, I can hit the back button on 
my browser and reach the protected HTML page anyway!  Here is the 
traceback. Your help would be appreciated.


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