[Zope] CreateMemberData for all users in my LDAP directory...

Gelin Patrick Patrick.Gelin at rpn.ch
Tue Sep 16 02:12:54 EDT 2003


Hi,

I have to assign localRoles to some users which are stored in my LDAP
directory. To do this I need to create member data. My first idea is to
create a python script to make this administration task. I'm a beginner
in Python and I'm curently testing getPersonnalFolder API. The script
below show a getPersonalFolder attribut error... Why ?


pf = []
portal = context.portal_url.getPortalObject()
md = portal.portal_memberdata
for u in portal.acl_users.getUsers():
    pf.append(md.getPersonalFolder(member_id='student1'))
return pf

-----------------------------------------------------------
Patrick Gelin 

Chef de projet du portail RPN
Office de la Statistique et de l'Informatique Scolaire (OSIS)
CH-2300 La Chaux-de-Fonds
Telephone: +41 (0)32 919 79 13
Email: patrick.gelin at rpn.ch



More information about the Zope mailing list