25 Feb
2005
25 Feb
'05
10:22 a.m.
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