[Zope-CMF] [PATCH] - glitch in registered.py

Jonathan Corbet corbet-cmf@lwn.net
Thu, 28 Jun 2001 16:13:41 -0600


Howdy,

I did a cvs update today for the first time in a little while, and quickly
found that the "join" option generated a traceback.  I guess that, in the
transition from DTML to .py, somebody forgot that the username and password
needed to be passed through.

Here's a quick, hacky fix:

Index: CMFDefault/skins/control/register.py
===================================================================
RCS file: /cvs-repository/CMF/CMFDefault/skins/control/register.py,v
retrieving revision 1.1
diff -r1.1 register.py
22c22,24
<     return REQUEST.RESPONSE.redirect(context.absolute_url() + '/registered')
---
>     return REQUEST.RESPONSE.redirect(context.absolute_url() + '/registered' +
>                                      '?username=%s' % REQUEST['username'] +
>                                      '&password=%s' % password)

jon