121 | | TODO: document the various new trac.util modules. |
| 121 | There are a few new utilities of general interest: |
| 122 | - [source:tags/trac-0.11b2/trac/util/presentation.py presentation.py] - various helper functions that are intended to be used in Genshi templates |
| 123 | - [source:tags/trac-0.11b2/trac/util/translation.py translation.py] - ["TracL10N" i18n] utilities. Those are placeholders for now, but you can already pick the habit of enclosing your human-readable strings in `_(...)` calls, it may pay off one day... |
| 124 | - [source:tags/trac-0.11b2/trac/util/compat.py compat.py] - make available some usefull new utilities to older Python versions. Those used to live in `trac.util.__init__.py` are still importable through the `trac.util` module. |
| 125 | |
| 126 | Also of interest are a few helper functions in [source:tags/trac-0.11b2/trac/web/chrome.py#L108 trac.web.chrome] that can be used to add warnings and notifications at the top of the page (`add_warning`, `add_notice`) and contextual navigation links (`add_context_nav`) at the upper right corner of the page. |