##// END OF EJS Templates
remove inappropriate 'pdf' key...
MinRK -
Show More
@@ -36,7 +36,7 b' class TestDataTypeFilter(TestsBase):'
36 36 """Can the DataTypeFilter pickout a useful type from a list of junk types?"""
37 37 filter = DataTypeFilter()
38 38 assert "png" in filter(["hair", "water", "png", "rock"])
39 assert "pdf" in filter(["pdf", "hair", "water", "png", "rock"])
39 assert "application/pdf" in filter(["application/pdf", "hair", "water", "png", "rock"])
40 40 self.assertEqual(filter(["hair", "water", "rock"]), [])
41 41
42 42
@@ -173,7 +173,7 b' This template does not define a docclass, the inheriting class must define this.'
173 173 ((*- block data_png -*))((( draw_figure(output.png_filename) )))((*- endblock -*))
174 174 ((*- block data_jpg -*))((( draw_figure(output.jpeg_filename) )))((*- endblock -*))
175 175 ((*- block data_svg -*))((( draw_figure(output.svg_filename) )))((*- endblock -*))
176 ((*- block data_pdf -*))((( draw_figure(output.pdf_filename) )))((*- endblock -*))
176 ((*- block data_pdf -*))((( draw_figure(output['application/pdf_filename']) )))((*- endblock -*))
177 177
178 178 % Draw a figure using the graphicx package.
179 179 ((* macro draw_figure(filename) -*))
@@ -9,7 +9,7 b''
9 9
10 10 ((*- block data_priority scoped -*))
11 11 ((*- for type in output | filter_data_type -*))
12 ((*- if type in ['pdf', 'application/pdf']*))
12 ((*- if type in ['application/pdf']*))
13 13 ((*- block data_pdf -*))
14 14 ((*- endblock -*))
15 15 ((*- endif -*))
@@ -5,7 +5,7 b''
5 5
6 6 {%- block data_priority scoped -%}
7 7 {%- for type in output | filter_data_type -%}
8 {%- if type in ['pdf', 'application/pdf']%}
8 {%- if type in ['application/pdf']%}
9 9 {%- block data_pdf -%}
10 10 {%- endblock -%}
11 11 {%- endif -%}
@@ -25,7 +25,7 b' class NbConvertBase(LoggingConfigurable):'
25 25 Useful for display data priority that might be use by many transformers
26 26 """
27 27
28 display_data_priority = List(['html', 'application/pdf', 'pdf', 'svg', 'latex', 'png', 'jpg', 'jpeg' , 'text'],
28 display_data_priority = List(['html', 'application/pdf', 'svg', 'latex', 'png', 'jpg', 'jpeg' , 'text'],
29 29 config=True,
30 30 help= """
31 31 An ordered list of preferred output type, the first
General Comments 0
You need to be logged in to leave comments. Login now