[Zope] SimpleUserFolder
Chris Withers
chris at simplistix.co.uk
Fri Feb 25 05:22:42 EST 2005
David Hassalevris wrote:
> Im a little confused by your question so forgive if Im off the mark.
> But shouldn't you determine whether or not you wish to add a user
> *before* you call addUser?
Indeed, but if you really want to do things arse-about-face you can set
a message on the REQUEST object in your addUser script (something like
context.REQUEST.set('add_user_error','You smell funny')) and then catch
the exception in the templating you're building for user management and
display the message from the request.
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list