Re: LDAPUserFolder: Suche nach Roles

Jan Leonhardt <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Jung schrieb:
> Jan Leonhardt wrote:
>> Wie kann ich mir die Nutzer zu einer (nicht im AD hinterlegten!) Rolle
>> holen?
> Schau Dir mal den Code von zopyx.cassandra an.
> 
> -aj

Meinst Du folgende Ausschnitte?:

usernames       context/acl_users/getUserIds;

tal:repeat="name usernames"


Ich benötige das ganze in einem Python-Script. Also habe ich folgendes
versucht:


usernames = context.acl_users.getUserIds;
for user in usernames:
  print user

return printed


Auch das bringt nicht den gewünschten Erfolg.

Warum funktioniert

context.acl_users.users_with_local_role('Test')

in diesem Context nicht? Das ist doch eigentlich genau das was ich brauche?

- --
Mit freundlichen Grüßen / With kind regards

Jan Leonhardt

IT Entwickler
IT Konsultat
Administration
Softwareentwicklung

WWW:  http://cyberdesigner.net
Mail: mailto:[email protected]
Fon:  +49 172 137 1740

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuh6ZMACgkQKGMAkLB23LgrIQCg1JkCHQM+XPmj41YLXNnfp/V5
iPkAnRzpmh2aSJrpKhomVouObjRWJNOt
=3FNF
-----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.