[Zope-CMF] Re: allow managers to use setMemberProperties() method
David Bain
pigeonflight@yahoo.co.uk
Mon, 17 Mar 2003 12:48:33 -0500
You're going to have to hold my hand a bit with this.
would these steps be correct.
1. create the external method
2. call the external method from within a python script / zpt
with respect to self.portal_membership
if the information was sent through the REQUEST what would be the equivalent
of "self".
Troy Farrell wrote:
> I use an external method to accomplish this:
>
> def setAMembersProperties(self, uid, props):
> """ Set the properties in props (a mapping)
> for portal member with id uid.
> """
>
> mtool = self.portal_membership
> member = mtool.getMemberById(uid)
> member.setMemberProperties(props)
>
>
> Make sure you setup the permissions on the External method properly.
> Otherwise, bad things will happen. Bad things, man.
>
> Troy
>
> David Bain wrote:
>> Is there a workaround that will allow a manager to edit memberdata using
>> setMemberProperties().
>>
>> from my experience and according to the URL below
>>
http://cmf.zope.org/design/interfaces/membership/IF_Member/talkback/1010874477/view
>> it is currently not possible.
>>
>>
>
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests
--
-I don't have much use for this signature thing