G-Node/g-node-portal — Issue #6: Change Password: test bugfix
Author: asobolev
Created: 2012-01-18 12:50:15+00:00
State: open

Traceback (most recent call last):

File "/opt/g-node-portal/apps/lib/python2.5/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File "/opt/g-node-portal/apps/lib/python2.5/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)

File "/opt/g-node-portal/apps/g-node-portal/apps/account/views.py", line 179, in password_change
password_change_form.save()

File "/opt/g-node-portal/apps/g-node-portal/apps/account/forms.py", line 303, in save
if not (change == True):

UnboundLocalError: local variable 'change' referenced before assignment

,
POST:,
COOKIES:{'sessionid': 'd63df70e77b7b6dcbe4287c82f72ba1c'},
META:{'CONTENT_LENGTH': '83',
'CONTENT_TYPE': 'application/x-www-form-urlencoded',
'DOCUMENT_ROOT': '/data/web/vhosts/portal.g-node.org',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTPS': '1',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'sessionid=d63df70e77b7b6dcbe4287c82f72ba1c',
'HTTP_HOST': 'portal.g-node.org',
'HTTP_KEEP_ALIVE': '115',
'HTTP_REFERER': 'https://portal.g-node.org/data/account/password_change/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.25) Gecko/20111212 Firefox/3.6.25 ( .NET CLR 3.5.30729; .NET4.0E)',
'PATH': '/usr/local/bin:/usr/bin:/bin',
'PATH_INFO': u'/account/password_change/',
'PATH_TRANSLATED': '/data/web/vhosts/portal.g-node.org/account/password_change/',
'QUERY_STRING': '',
'REMOTE_ADDR': '141.5.20.126',
'REMOTE_PORT': '6705',
'REQUEST_METHOD': 'POST',
'REQUEST_URI': '/data/account/password_change/',
'SCRIPT_FILENAME': '/opt/g-node-portal/apps/g-node-portal/apache/django.wsgi',
'SCRIPT_NAME': u'/data',
'SCRIPT_URI': 'https://portal.g-node.org/data/account/password_change/',
'SCRIPT_URL': '/data/account/password_change/',
'SERVER_ADDR': '141.84.44.72',
'SERVER_ADMIN': 'admnin@g-node.org',
'SERVER_NAME': 'portal.g-node.org',
'SERVER_PORT': '443',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SIGNATURE': '

Apache/2.2.9 (Debian) DAV/2 PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2 Server at portal.g-node.org Port 443

\n',
'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) DAV/2 PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2',
'mod_wsgi.application_group': 'portal.g-node.org|/data',
'mod_wsgi.callable_object': 'application',
'mod_wsgi.listener_host': '141.84.44.72',
'mod_wsgi.listener_port': '443',
'mod_wsgi.process_group': '',
'mod_wsgi.reload_mechanism': '0',
'mod_wsgi.script_reloading': '1',
'mod_wsgi.version': (2, 5),
'wsgi.errors': ,
'wsgi.file_wrapper': ,
'wsgi.input': ,