From 22518e16c03660d05ee44f790b0c7f5e148936b4 Mon Sep 17 00:00:00 2001 From: Bill Fenner Date: Wed, 16 May 2007 03:47:53 +0000 Subject: [PATCH] Switch from pickle to str(). This may be wallpapering over the problem, but apparently data that looks the same was pickling differently, so was causing a checksum failure. - Legacy-Id: 134 --- ietf/contrib/wizard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ietf/contrib/wizard.py b/ietf/contrib/wizard.py index 3dd8b4112..c1639f3a0 100644 --- a/ietf/contrib/wizard.py +++ b/ietf/contrib/wizard.py @@ -137,7 +137,8 @@ class Wizard( object ): data = [(bf.name, bf.data) for bf in form] + [settings.SECRET_KEY] # Use HIGHEST_PROTOCOL because it's the most efficient. It requires # Python 2.3, but Django requires 2.3 anyway, so that's OK. - pickled = pickle.dumps(data, protocol=pickle.HIGHEST_PROTOCOL) + #pickled = pickle.dumps(data, protocol=pickle.HIGHEST_PROTOCOL) + pickled = str(data) #XXX return md5.new(pickled).hexdigest() def parse_params( self, request, *args, **kwargs ):