Trouble calling external method from userAuthenticate in GUF
Hi, Here I am banging my head on the wall once again. Zope treats me so cruelly, it entices me with goodies but just when the plum is in my hand...it vanishes. I'm now trying to use GenericUserFolder to do a complex authentication procedure on a "members" page. I've wrapped GUF.userAuthenticate around an external method that resides in the acl_users folder, but Zope refuses to acknowledge the existence of the method. The GUF SQL How-To talks about using ZSQL methods, can I not use external methods inside the GUF hook functions? Thank you for your patience in dealing with this troubled newbie. ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com Owner http://www.corrada.com/mamey Mamey Phone: (413) 587-9595 ------------------------------------------------------
On Tue, 30 Nov 1999, Andres Corrada wrote:
Here I am banging my head on the wall once again. Zope treats me so cruelly, it entices me with goodies but just when the plum is in my hand...it vanishes. I'm now trying to use GenericUserFolder to do a complex authentication procedure on a "members" page. I've wrapped GUF.userAuthenticate around an external method that resides in the acl_users folder, but Zope refuses to acknowledge the existence of the method.
Make sure: You can call the external method successfully when logged on as Manager You can call the userAuthenticate method successfully when logged on as Manager You have given userAuthenticate a proxy role of 'Manager' (or whatever is appropriate) You can also start up Zope in debugging mode and watch the console for messages like 'userAuthenticate raised an exception'. If all this fails, you may have found a bug so let me know. -- ___ // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au // E N Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen
Stuart 'Zen' Bishop wrote:
Make sure: You can call the external method successfully when logged on as Manager
You can call the userAuthenticate method successfully when logged on as Manager
You have given userAuthenticate a proxy role of 'Manager' (or whatever is appropriate)
The problem was solved by giving userAuthenticate a proxy role of 'Manager'. Thank you. ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com Owner http://www.corrada.com/mamey Mamey Phone: (413) 587-9595 ------------------------------------------------------
participants (2)
-
Andres Corrada -
Stuart 'Zen' Bishop