##// END OF EJS Templates
Use istype() when checking if canned object is a dict...
Use istype() when checking if canned object is a dict Using istype(canned, dict) instead of isinstance(canned, dict) ensures that dict subclasses retain their type during unserialization. This also agrees with the implementation of serialize_object().

File last commit:

r11086:c137395d
r12199:6a72b2cc
Show More
display_priority.tplx
39 lines | 1.1 KiB | text/plain | TextLexer
((= autogenerated file do not edit =))
((*- extends 'null.tplx' -*))
((=display data priority=))
((*- block data_priority scoped -*))
((*- for type in output | filter_data_type -*))
((*- if type in ['pdf']*))
((*- block data_pdf -*))
((*- endblock -*))
((*- endif -*))
((*- if type in ['svg']*))
((*- block data_svg -*))
((*- endblock -*))
((*- endif -*))
((*- if type in ['png']*))
((*- block data_png -*))
((*- endblock -*))
((*- endif -*))
((*- if type in ['html']*))
((*- block data_html -*))
((*- endblock -*))
((*- endif -*))
((*- if type in ['jpeg']*))
((*- block data_jpg -*))
((*- endblock -*))
((*- endif -*))
((*- if type in ['text']*))
((*- block data_text -*))
((*- endblock -*))
((*- endif -*))
((*- if type in ['latex']*))
((*- block data_latex -*))
((*- endblock -*))
((*- endif -*))
((*- endfor -*))
((*- endblock data_priority -*))