[Zope-PAS] PlonePAS using SQL get AttributeError

James J Myers myersjj at pacbell.net
Fri Apr 13 12:11:48 EDT 2007


I've written a PlonePAS plugin loosely based on SQLPASPlugin for 
authentication.

Sometimes it works and sometimes it doesn't.

The code creates a zsql method in source_users which I can verify via 
the ZMI that it is there. When the authenticate credentials plugin is 
called it appears to always be in the source_users folder, yet sometimes 
it works and sometimes it fails as shown below - not able to find the 
zsql method.

Why would be it fail sometimes and not others? How do I make it work 
reliably?

2007-04-07T18:02:10 INFO RACPASPlugin Traceback (most recent call last):
authenticateCredentials: getUserInfo:   File 
"/usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py", 
line 104, in authenticateCredentials
    res = self.getUserInfo(login)
authenticateCredentials: getUserInfo:   File 
"/usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py", 
line 253, in getUserInfo
    query = getattr(self, _UserQueryId)
authenticateCredentials: getUserInfo: AttributeError: RACPAS_getUserInfo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myersjj.vcf
Type: text/x-vcard
Size: 248 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-pas/attachments/20070413/56ebc52a/myersjj.vcf


More information about the Zope-PAS mailing list