equal
deleted
inserted
replaced
1 """mime type transformation engine for cubicweb, based on mtconverter |
1 """mime type transformation engine for cubicweb, based on mtconverter |
2 |
2 |
3 :organization: Logilab |
3 :organization: Logilab |
4 :copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
6 """ |
6 """ |
7 __docformat__ = "restructuredtext en" |
7 __docformat__ = "restructuredtext en" |
8 |
8 |
9 from logilab import mtconverter |
9 from logilab import mtconverter |
12 from logilab.mtconverter.transform import Transform |
12 from logilab.mtconverter.transform import Transform |
13 from logilab.mtconverter import (register_base_transforms, |
13 from logilab.mtconverter import (register_base_transforms, |
14 register_pil_transforms, |
14 register_pil_transforms, |
15 register_pygments_transforms) |
15 register_pygments_transforms) |
16 |
16 |
17 from cubicweb.common.uilib import rest_publish, html_publish, remove_html_tags |
17 from cubicweb.common.uilib import rest_publish, html_publish |
18 |
18 |
19 HTML_MIMETYPES = ('text/html', 'text/xhtml', 'application/xhtml+xml') |
19 HTML_MIMETYPES = ('text/html', 'text/xhtml', 'application/xhtml+xml') |
20 |
20 |
21 # CubicWeb specific transformations |
21 # CubicWeb specific transformations |
22 |
22 |