[Zope-CMF] is there a way to massupdate memberdata?
robert rottermann
robert@redcor.ch
Sun, 19 Jan 2003 21:18:45 +0100
Thanks,
My real problem is, I do not unterstand how Memberdata works.
There are two methods I found:
security.declareProtected(SetOwnProperties, 'setProperties')
def setProperties(self, properties=3DNone, **kw):
'''Allows the authenticated member to set his/her own properties.
Accepts either keyword arguments or a mapping for the "properties=
"
argument.
'''
Only allows the authenticated user to change its data
security.declarePrivate('setMemberProperties')
def setMemberProperties(self, mapping):
'''Sets the properties of the member.
'''
Is protected and can not be reached with a mere script
I of course can use an external script that uses the second method. But t=
his=20
is which is ugly and clumsy.
Is there no beter way to do it ?
Robert
Am Sonntag, 19. Januar 2003 19.58 schrieb Alan Runyan:
> get over the fear of using 'through the web' methods.
>
> use a external method. Zope's "ZMI" and TTW scripting
> is only meant to help extend the system. not change
> schema or do anything that could endanger your system.
>
> perferably get ZEO working.. using zctl.py
>
> ~runyaga
>
> ----- Original Message -----
> From: "robert rottermann" <robert@redcor.ch>
> To: <zope-cmf@zope.org>
> Sent: Thursday, January 16, 2003 12:46 PM
> Subject: [Zope-CMF] is there a way to massupdate memberdata?
>
> > I would like to change the emails of all users of a cmf site.
> > Which is the best way to do it?
> >
> > Looking trough the source I found in memberdata
> > setMemberProperties
> > however it is protected and therefor not accessible trough a script.
> >
> > thanks for your ideas.
> >
> > Robert
> >
> > _______________________________________________
> > Zope-CMF maillist - Zope-CMF@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-cmf
> >
> > See http://collector.zope.org/CMF for bug reports and feature request=
s
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests