common/mttransforms.py
changeset 2459 d088d0ff48a1
parent 1977 606923dff11b
child 2817 0313eecc707e
child 4212 ab6573088b4a
--- a/common/mttransforms.py	Thu Jul 23 15:33:03 2009 +0200
+++ b/common/mttransforms.py	Thu Jul 23 15:57:15 2009 +0200
@@ -46,8 +46,8 @@
     from cubicweb.ext.tal import compile_template
 except ImportError:
     HAS_TAL = False
-    from cubicweb.schema import FormatConstraint
-    FormatConstraint.need_perm_formats.remove('text/cubicweb-page-template')
+    from cubicweb import schema
+    schema.NEED_PERM_FORMATS.remove('text/cubicweb-page-template')
 
 else:
     HAS_TAL = True