##// END OF EJS Templates
DOC: Warn the user when they pass `default` to a TraitType....
DOC: Warn the user when they pass `default` to a TraitType. Most TraitType subclasses accept a `default_value` parameter. On more occasions than I care to admit, I've written something like: ``` class Foo(HasTraits): foo_int = Integer(default=5) ``` when what I actually meant was ``` class Foo(HasTraits): foo_int = Integer(default_value=5) ``` I suspect I'm not the only one who's had to track down this same bug multiple times.

File last commit:

r19918:b7ba30ad
r20649:fbe6a44e
Show More
display_priority.tplx
44 lines | 1.5 KiB | text/plain | TextLexer
((= Auto-generated template file, DO NOT edit directly!
To edit this file, please refer to ../../skeleton/README.md =))
((*- extends 'null.tplx' -*))
((=display data priority=))
((*- block data_priority scoped -*))
((*- for type in output.data | filter_data_type -*))
((*- if type == 'application/pdf' -*))
((*- block data_pdf -*))
((*- endblock -*))
((*- elif type == 'image/svg+xml' -*))
((*- block data_svg -*))
((*- endblock -*))
((*- elif type == 'image/png' -*))
((*- block data_png -*))
((*- endblock -*))
((*- elif type == 'text/html' -*))
((*- block data_html -*))
((*- endblock -*))
((*- elif type == 'text/markdown' -*))
((*- block data_markdown -*))
((*- endblock -*))
((*- elif type == 'image/jpeg' -*))
((*- block data_jpg -*))
((*- endblock -*))
((*- elif type == 'text/plain' -*))
((*- block data_text -*))
((*- endblock -*))
((*- elif type == 'text/latex' -*))
((*- block data_latex -*))
((*- endblock -*))
((*- elif type == 'application/javascript' -*))
((*- block data_javascript -*))
((*- endblock -*))
((*- else -*))
((*- block data_other -*))
((*- endblock -*))
((*- endif -*))
((*- endfor -*))
((*- endblock data_priority -*))