Re: LDAPUserFolder: Suche nach Roles

Jens Vagelpohl <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization Zetwork GmbH
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 3/18/10 09:52 , Jan Leonhardt wrote:
> Warum funktioniert
> 
> context.acl_users.users_with_local_role('Test')
> 
> in diesem Context nicht? Das ist doch eigentlich genau das was ich brauche?

Diese Methode auf dem user folder aufzurufen ist Unsinn. Der user folder
hat nämlich keine Ahnung, wo welcher Benutzer welche lokale Rolle
zugewiesen bekommen hat.

Lokale Rollen sind auf dem Objekt gespeichert, auf dem sie z.B. durch
die ZMI gesetzt wurden, meist wird dies ein Verzeichnis sein. Dort kann
man diese Methode anwenden.

jens

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkuh8GUACgkQRAx5nvEhZLLD0ACfeSj3GTSYvlzpWXqwthKE0rLQ
Hq0AniWbIfKDPfryI6kipmBchBWe7wYJ
=ZFvF
-----END PGP SIGNATURE-----



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.