Permalink
Browse files

Support more webob versions. Fixes #77

  • Loading branch information...
Gregg Espirit authored and ralphbean committed Mar 15, 2013
1 parent 53284c5 commit e071e9d3386c7d73ce6037ba7fac7ff0527b1f5b
Showing with 5 additions and 1 deletion.
  1. +5 −1 tw2/core/validation.py
@@ -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

0 comments on commit e071e9d

Please sign in to comment.