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