[Zope-CMF] modifying default user creation

seb bacon seb@jamkit.com
Tue, 19 Jun 2001 13:39:55 +0100


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.  

A hint on how I find out things like this: if you're on unix, grep is
your friend.  For example, you know that the default member content
contains the words 'Default page for', so 

  grep -ir 'default page for' .

will get you a long way to working something like this out.  I'm sure
you can do a find in windows along the same lines.  Remember that
CMFDefault is _an_example_ of how to use the CMF services provided in
CMFCore, so if you want to do something slightly differently, the code
itself usually holds the answer somewhere.

hth

seb

* Cyrille Giquello <cyrille@ktaland.com> [010619 12:36]:
> Hi,
> I'm ever learning how to use CMF ...
> 
> I try to change the behavior at member creation.
> 
> By default, at member registration, a home folder with a index-html is
> created.
> 
> I would like to create more files, like presentation-html, contact-html,
> ...
> 
> And I try to find how to do, but I failed to find where to add the code.
> 
> Please, is there someone who get some time to explain where to change
> this behavior ?
> 
> Cheers,
> Cyrille
> 
> 
> 
> 
> _______________________________________________
> 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

-- 

   [] j a m k i t 
           
        seb bacon
T:  020 7749 7218
F:  020 7739 8683
M:  07968 301 336
W: www.jamkit.com