]> asedeno.scripts.mit.edu Git - bluechips.git/blobdiff - bluechips/lib/base.py
Work around a webhelpers/Pylons incompatibility
[bluechips.git] / bluechips / lib / base.py
index e485c5732139b9768f4ba9be38821565615763f3..9862d8ffcc3e8e5fe11c84f53e3196118c4d50a1 100644 (file)
@@ -3,6 +3,14 @@
 Provides the BaseController class for subclassing.
 """
 
+# Monkey-patch around a webhelpers/Pylons incompatibility
+try:
+    import webhelpers.pylonslib.secure_form
+    import webhelpers.html
+    webhelpers.html.secure_form = webhelpers.pylonslib.secure_form
+except ImportError:
+    pass
+
 from decorator import decorator
 
 from pylons import request, session, tmpl_context as c