Zope Script

if context.REQUEST.has_key ( 'username' ) and context.REQUEST.has_key ( 'password' ) and context.REQUEST.has_key ( 'email' ):
   if hasattr ( container.users, context.REQUEST.username ):
      return 'Sorry, someone else has registered with your username.'
   password = container.hash ( context.REQUEST.password )
   container.users.manage_addProduct [ 'OFSP' ].manage_addFile ( context.REQUEST.username )
   userObject = getattr ( container.users,context.REQUEST.username )
   userObject.manage_addProperty ( 'password', password, 'string' )
   userObject.manage_addProperty ( 'email', context.REQUEST.email, 'string' )
   return 'Your account has been created.'
return False