[Zope-CMF] Registration Skin Broken?

Tres Seaver tseaver@digicool.com
Wed, 18 Jul 2001 12:59:10 -0400


Norbert Marrale wrote:

> After doing a checkout from the CVS today, I noticed a problem with 
> registering new portal members when Zope needs to generate a user 
> password.  
> 
> Invalid request
> The parameter, password, was omitted from the request.
> 
> The new "register" skin in portal_skins/control seems to be the culprit.   
> Copying the skin as released with CMF 1.1 to the custom skins folder 
> seems to help for now.  Any ideas on how to fix the pythonscript skin 
> and not having to revert to the old DTML one?


Fix the PythonScript to have default values for the two parameters,
e.g.::

diff -u -r1.3 register.py
--- register.py	12 Jul 2001 15:51:46 -0000	1.3
+++ register.py	18 Jul 2001 16:56:51 -0000
@@ -1,7 +1,7 @@
  ## Script (Python) "register"
  ##title=Register a user
  ##bind namespace=_
-##parameters=password, confirm
+##parameters=password='password', confirm='confirm'
  REQUEST=context.REQUEST
  portal_properties = context.portal_properties
  portal_registration = context.portal_registration

I will check this in now, so you can:

  - update from CVS

  - apply the patch locally

  - customize the method and apply the patch by hand.


> 
> Norbert
> (CMF site at http://www.attira.net)


Cool!

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@digicool.com
Digital Creations     "Zope Dealers"       http://www.zope.org