Get all user folder instances
Hi I'm try to know the complet list of users in a Zope point with this structure: root acl_users (user folder) Folder1 acl_users (Pluggable user folder) Folder2 acl_users (Another user folder) Object1 Object2 how could I retrive the list of user folders (in this case: /acl_users, /Folder1/acl_users and /Folder1/Folder2/acl_users) It would be perfect something like: Object1.superValues('User Folder') But this only retrive User Folder's not Pluggable user folder's nor Another user folder's Is there any kind of method to query for security list of users? Thanks a lot!!
--On Sonntag, 3. April 2005 17:36 Uhr +0200 Garito <garito@sistes.net> wrote:
It would be perfect something like: Object1.superValues('User Folder')
You have to walk from the object up to the Zope root by following the objects 'aq_parent' attribute giving you the parent object. There you can check if there exists a user folder (check for acl_users).
Is there any kind of method to query for security list of users?
What shall that mean? -aj
Garito wrote at 2005-4-3 17:36 +0200:
root acl_users (user folder) Folder1 acl_users (Pluggable user folder) Folder2 acl_users (Another user folder) Object1 Object2
how could I retrive the list of user folders (in this case: /acl_users, /Folder1/acl_users and /Folder1/Folder2/acl_users)
The best method would be to know the meta types of all UserFolders you are using...
It would be perfect something like: Object1.superValues('User Folder')
"superValues" allows also a sequence of meta types (rather than a single one). -- Dieter
participants (3)
-
Andreas Jung -
Dieter Maurer -
Garito