[Zope] Custom register script

Dieter Maurer dieter at handshake.de
Wed Oct 22 14:48:11 EDT 2003

Declan Shanaghy wrote at 2003-10-21 14:49 -0700:
 > I have done some customization to the register script for my portal.
 > Everything works fine when a Manager uses the register script to
 > register other users.
 > However when an anonymous user tries to register himself it barfs
 > because of the last line of the following code.
 > portal_registration.addMember(REQUEST['username'], password,
 > properties=REQUEST)
 > homeFolder = portal.portal_membership.getHomeFolder(id=username)
 > if homeFolder:
 >   homeFolder.setTitle (Name + "'s Home")
 > That line is just setting the title on the users home folder. 
 > Shouldn't this be allowed?

The user is not yet authenticated.

Therefore: while you know that "homeFolder" will become this
user's home folder, Zope does not yet know this.


More information about the Zope mailing list