[Zope-CMF] modifying default user creation

seb bacon seb@jamkit.com
Tue, 19 Jun 2001 13:59:37 +0100


* Cyrille Giquello <cyrille@ktaland.com> [010619 13:19]:
> seb bacon a écrit :
> 
> > Cyrille,
> >
> > Look at the code in CMFDefault/MembershipTool.py: you'll see a line
> > starting Document.addDocument.  You'll be able to copy the code
> > there.  It's not ideal, and hopefully this behaviour will be
> > modifiable TTW from the portal_membership tool eventually.  But this
> > is how to do it for now.
> 
> It isn't overlodable with skin ?
> Perhaps somewhere in skin, there is a line wich calling a MembershipTool's method,
> and I'll add my code just after it.
> But I can't find this line.

Yes, the method being called is addMember().  The recommended way of
extending its functionality is to subclass or replace modules in
CMFDefault. By keeping control stuff out of your skins, you will make
it easier to drop in new skins when you need them without causing
errors. 

cheers,

seb