Skip to content

Commit

Permalink
Support more webob versions. Fixes #77
Browse files Browse the repository at this point in the history
  • Loading branch information
gespiri2 authored and ralphbean committed Mar 15, 2013
1 parent 53284c5 commit e071e9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tw2/core/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@

# This hack helps work with different versions of WebOb
if not hasattr(webob, 'MultiDict'):
webob.MultiDict = webob.multidict.MultiDict
# Check for webob versions with UnicodeMultiDict
if hasattr(webob.multidict, 'UnicodeMultiDict'):
webob.MultiDict = webob.multidict.UnicodeMultiDict
else:
webob.MultiDict = webob.multidict.MultiDict

try:
import formencode
Expand Down

0 comments on commit e071e9d

Please sign in to comment.