branch | tls-sprint |
changeset 715 | 83228d379cbe |
parent 705 | 937dd226f72a |
child 745 | 3e46854acf58 |
--- a/schema.py Tue Feb 17 23:00:28 2009 +0100 +++ b/schema.py Tue Feb 17 23:08:21 2009 +0100 @@ -954,13 +954,8 @@ # translation PERM_USE_TEMPLATE_FORMAT = _('use_template_format') -from cubicweb.mttransforms import HAS_TAL - class FormatConstraint(StaticVocabularyConstraint): - if HAS_TAL: - need_perm_formats = (_('text/cubicweb-page-template'),) - else: - need_perm_formats = () + need_perm_formats = [_('text/cubicweb-page-template')] regular_formats = (_('text/rest'), _('text/html'),