﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
7354	pickle.dumps on formwizard fails in python2.3 because of keyword argument	mage	nobody	"The summary says it all:




{{{
Traceback:
File ""/usr/lib/python2.3/site-packages/django/core/handlers/base.py"" in get_response
82. response = callback(request, *callback_args, **callback_kwargs)
File ""/usr/lib/python2.3/site-packages/django/contrib/formtools/wizard.py"" in __call__
95. return self.render(form, request, current_step)
File ""/usr/lib/python2.3/site-packages/django/contrib/formtools/wizard.py"" in render
108. prev_fields.append(hidden.render(hash_name, old_data.get(hash_name, self.security_hash(request, old_form))))
File ""/usr/lib/python2.3/site-packages/django/contrib/formtools/wizard.py"" in security_hash
152. pickled = pickle.dumps(data, protocol=pickle.HIGHEST_PROTOCOL)
 
Exception Type: TypeError at /snelboeken/
Exception Value: dumps() takes no keyword arguments
}}}

this can be fixed easily by changing line 152 to:

pickled = pickle.dumps(data, pickle.HIGHEST_PROTOCOL)

this is exactly the same as was fixed for form preview in: http://code.djangoproject.com/changeset/6754?format=diff&new=6754

"		closed	contrib.formtools	dev		fixed	wizard pickle	marijn@…	Ready for checkin	1	0	0	0	0	0
