[Zope-CMF] Saving custom data in a MemberData-object from python

Phil Dodderidge pdodde@poyntz.com
Fri, 20 Apr 2001 14:50:49 +0000


Shane Hathaway wrote:

> Sigve Tjora wrote:
> >
> > Hi!
> >
> > I want to save some data about users in their MemberData-object, and I use
> > python for the task. Is it ok just to set a propertie on an
> > MemberData-object or is there a better way?
> >
> > Eg. can I just write
> >   user=portal_membership.getAuthenticatedUser()
> >   user.myData="Just an object or a text..."
>
> In the member data tool, add a property called "myData".  Then change
> the code above to:
>
> portal_registration.setProperties(myData="some special preference")

Is this last line right?  I thought that the setProperties function was in the
MemberData class.

>
>
> Shane
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests