common/mttransforms.py
changeset 2459 d088d0ff48a1
parent 1977 606923dff11b
child 2817 0313eecc707e
child 4212 ab6573088b4a
equal deleted inserted replaced
2458:4d114865098f 2459:d088d0ff48a1
    44 
    44 
    45 try:
    45 try:
    46     from cubicweb.ext.tal import compile_template
    46     from cubicweb.ext.tal import compile_template
    47 except ImportError:
    47 except ImportError:
    48     HAS_TAL = False
    48     HAS_TAL = False
    49     from cubicweb.schema import FormatConstraint
    49     from cubicweb import schema
    50     FormatConstraint.need_perm_formats.remove('text/cubicweb-page-template')
    50     schema.NEED_PERM_FORMATS.remove('text/cubicweb-page-template')
    51 
    51 
    52 else:
    52 else:
    53     HAS_TAL = True
    53     HAS_TAL = True
    54 
    54 
    55     class ept_to_html(Transform):
    55     class ept_to_html(Transform):