source:
ticketsidebarproviderplugin/0.11/ticketsidebarprovider/interface.py
| Last change on this file was 5529, checked in by , 14 years ago | |
|---|---|
| File size: 336 bytes | |
| Rev | Line | |
|---|---|---|
| [5529] | 1 | """ |
| 2 | interface to programatically provide custom ticket fields | |
| 3 | """ | |
| 4 | ||
| 5 | from trac.core import Interface | |
| 6 | ||
| 7 | class ITicketSidebarProvider(Interface): | |
| 8 | ||
| 9 | def enabled(req, ticket): | |
| 10 | """returns whether this plugin should be rendered for this ticket""" | |
| 11 | ||
| 12 | def content(req, ticket): | |
| 13 | """content to be rendered in the sidebar""" |
Note: See TracBrowser
for help on using the repository browser.
