[Zope-CMF] Proposal: MemberDataFactory
Jens Vagelpohl
jens at dataflake.org
Wed Mar 18 11:21:19 EDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mar 18, 2009, at 16:12 , Wichert Akkerman wrote:
> Previously Miles wrote:
>> We have quite a lot of copy-and-paste code here in order to support
>> using a custom MemberData class for members in particular sites.
>>
>> The reason for this is that the only way to use a different
>> MemberData
>> class is to provide a custom wrapUser method.
>>
>> I'd like to propose that this is changed to use a factory registered
>> through the CA to create new MemberData objects, in order that this
>> is
>> pluggable without requiring a custom MemberDataTool.
>
> Can you explain the use case? I suspect you can also solve this with
> PAS
> and a custom user factory PAS plugin.
One use case I have: I need a different Member Data object (and thus
the whole overridden tool) for Products.CMFLDAP in order to have
custom overridden methods on those MemberData objects that call non-
standard methods on the user folder.
jens
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAknBEW8ACgkQRAx5nvEhZLJdXgCdF7XYKGyVQ1pTyPlLckpdXy2Z
0hIAn2loLaw6WY9CyiLAa+hqwu8V6QMI
=15IO
-----END PGP SIGNATURE-----
More information about the Zope-CMF
mailing list