## Controller Python Script "validate_folder_edit"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind state=state
##bind subpath=traverse_subpath
##parameters=email=''
##title=validates folder edit

if state.getErrors():
    return state.set(status='failure',
                     portal_status_message='Please correct the indicated errors.')

return state.set(portal_status_message='You have been registered.')
