[Zope-CMF] how to edit portal_memberdata on behalf of CMF members?
Chris Withers
chrisw@nipltd.com
Wed, 16 Oct 2002 12:05:47 +0100
Wostenberg wrote:
> Is there a tool I can use out of the box CMF to edit properties of
> portal_memberdata without loggiing in as the member? Or do I need to
> develop a form similar to personalize_form, and login as member?
The editMember method of CMFDefault's portal_registration tool si probabyl what
you want:
security.declareProtected(ManagePortal, 'editMember')
def editMember( self
, member_id
, properties=None
, password=None
, roles=None
, domains=None
):
""" Edit a user's properties and security settings
o Checks should be done before this method is called using
testPropertiesValidity and testPasswordValidity
"""
cheers,
Chris