[Zope-CMF] XUF, cmfPropSource and roles unaware AuthSource

Sylvain Thénault Sylvain Thénault
Fri, 24 Jan 2003 10:07:12 +0100


hi !

I've a problem trying to use XUF with a cmfPropSource and a roles unware
AuthSource (by this I mean an auth source which rely on the prop source
to get user's reles, like etcAuthSource for instance).
The problem is that there is a cycle in functions call so that I got a
"maximum recursion depth exceeded" error.
Here is the cycle :

call to XUFAuthSource.listOneUser(username)
/-> call to
XUFPropertySource.getUserProperty(username=username,key='_roles')
|   -> call to portal_membership.getMemberById(username)
|      -> call to acl_users.getUser(id) where acl_user is XUF
|         -> call to XUFAuthSource.listOneUser(username)
|         |
|_______ /

does someone had this problem before ? Is there a solution to this pb ?

TIA
-- 
Sylvain Thénault                               LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org