[Zope-CMF] Saving custom data in a MemberData-object frompython
Shane Hathaway
shane@digicool.com
Fri, 20 Apr 2001 15:55:33 -0400
marc lindahl wrote:
>
> Question: let's say you add some preference, like birth_date. How/where do
> you change the sign-up screen and the preferences screen to access that?
> And do some action like, don't allow signup for age<13....
Currently you'd have to subclass or replace portal_registration, which
you could do with ZClasses or a Python product. Invoking a customizable
script might be better.
Shane
>
> > From: Shane Hathaway <shane@digicool.com>
> >>>
> >>> 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.
> >
> > The method in the portal_memberdata tool is private. It is supposed to
> > be invoked only by portal_registration.setProperties() because
> > portal_registration can enforce member property policies.
>
> _______________________________________________
> 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