common/mttransforms.py
branchtls-sprint
changeset 715 83228d379cbe
parent 704 0c2c8f0a6ded
child 1132 96752791c2b6
--- a/common/mttransforms.py	Tue Feb 17 23:00:28 2009 +0100
+++ b/common/mttransforms.py	Tue Feb 17 23:08:21 2009 +0100
@@ -42,9 +42,12 @@
 ENGINE.add_transform(html_to_html())
 
 try:
-    from cubicweb.common.tal import compile_template
+    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')
+    
 else:
     HAS_TAL = True