[Zope-CMF] Re: Copy folder contents on first login?

Raphael Ritz r.ritz at biologie.hu-berlin.de
Tue Dec 27 06:32:25 EST 2005


Ignacio Valdes wrote:
> Hello all,
> 
> It has been years since I've last developed in CMF 1.0 for Linux Medical 
> News http://www.linuxmednews.com project database. I'm back, this time 
> working on a new web application for a research project on clinical 
> outcomes using Plone 2.1.1
> 
> I would like to copy the contents of folder 'default' at 
> home/members/webmaster's home/default the first time a new member logs 
> in. I've looked around on Zopelabs and found this: 
> http://www.zopelabs.com/cookbook/1042820556
> 
> I plan on customizing portal_skins/plone_login/login_initial but am not 
> sure how exactly to code this since I've done miniscule amounts of 
> Python. Please give me a nudge in the right direction.

You might want to consider using the hooks provided
by the MembershipTool for that. In Plone - I think -
it is still 'notifyMemberAreaCreated' while in
CMFDefault it is 'createMemberContent'.

But a Python script with this id in one of your
skin folders and do whatever content creation/customization
you see fit.

Rapahel

> 
> Thanks!
> 
> -- IV
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF at lists.zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
> 
> See http://collector.zope.org/CMF for bug reports and feature requests
> 
> 



More information about the Zope-CMF mailing list