weird issue when upgrading from webob 1.1 to 1.2.3

13 views
Skip to first unread message

iaindun...@gmail.com

unread,
Aug 23, 2013, 6:14:20 PM8/23/13
to paste...@googlegroups.com
Hey folks, I just tried upgrading an app from 1.1 to 1.2.3. Strangely, some pages were fine and some weren't, here's the traceback, anyone know what I should be looking for or why this would suddenly happen?

Here's the triggering code:
  
    fake_req = Request(self.request.environ)
    fake_req.GET['_revision'] = revision.id

And here's the traceback from the log:

2010   File "/home/SD37_2012/trunk/SD37/framework_src/xornot.cms/xornot/cms/fields/__init__.py", line 300, in get_subform_tmpl_dict
2011     fake_req.GET['_revision'] = revision.id
2012   File "/home/SD37_2012/trunk/SD37/eggs/WebOb-1.2.3-py2.6.egg/webob/multidict.py", line 300, in __setitem__
2013     self.on_change()
2014   File "/home/SD37_2012/trunk/SD37/eggs/WebOb-1.2.3-py2.6.egg/webob/multidict.py", line 294, in on_change
2015     data = [(e(k), e(v)) for k,v in self.items()]
2016   File "/home/SD37_2012/trunk/SD37/eggs/WebOb-1.2.3-py2.6.egg/webob/multidict.py", line 293, in <lambda>
2017     e = lambda t: t.encode('utf8')
2018 AttributeError: 'long' object has no attribute 'encode'
2019 ----------------------------------------
2020 14:50:45,328 INFO  [paste.httpserver.ThreadPool] kill_hung_threads status: 10 threads (3 working, 7 idle, 0 starting) ave time 83     .75sec, max time 251.24sec, killed 0 workers

Thanks!
iain


Reply all
Reply to author
Forward
0 new messages