[Zope-CMF] Better Membership and MemberData tools
Dieter Maurer
dieter at handshake.de
Sun Nov 9 02:50:05 EST 2003
Florent Guillaume wrote at 2003-11-7 18:12 +0100:
> [Please keep zope-cmf at zope.org in all Ccs]
>
> Ok here's my plan for the week-end:
>
> - modify MembershipTool and MemberDataTool so that for all their
> userfolder-related stuff they call a standardized API on the
> userfolder. This includes:
When you are modifying "MemberDataTool", please replace the
direct reference to "MemberData" in "MemberDataTool.wrapUser"
by a reference to a "MemberDataTool" class variable.
This will make it *much* easier to derive from "MemberDataTool"
in order to provide a customized "MemberData" implementation.
What I have in our Zope/CMF version looks like:
Products/CMFCore/MemberDataTool.py:
...
class MemberDataTool (UniqueObject, SimpleItem, PropertyManager, ActionProviderBase):
...
def wrapUser(self, u):
...
base = aq_base(self)
# DM: improve derivability
# m = MemberData(base, id)
m = self._MemberDataClass(base, id)
...
class MemberData (SimpleItem):
...
InitializeClass(MemberData)
MemberDataTool._MemberDataClass= MemberData
>...
> I'll implement this as monkey-patches first as I need it in CPS
> yesterday :-) but I'll do it so that it's suitable for inclusion in
> CMF.
Thus, implementation of my request must wait at least until
you really modify the "MemberDataTool" sources.
--
Dieter
More information about the Zope-CMF
mailing list