Works in combination with the CustomNavigationBar and replaces the default wiki module. Has a different logic for active item handling.
| 27 | |
| 28 | |
| 29 | class CustomWikiModule(WikiModule): |
| 30 | """Works in combination with the CustomNavigationBar and replaces |
| 31 | the default wiki module. Has a different logic for active item |
| 32 | handling. |
| 33 | """ |
| 34 | |
| 35 | def get_active_navigation_item(self, req): |
| 36 | pagename = req.args.get("page") |
| 37 | if pagename == "Reports": |
| 38 | return "custom_reports" |
| 39 | return "wiki" |
| 40 | |
| 41 | |
| 42 | class CustomNewTicket(Component): |
nothing calls this directly
no outgoing calls
no test coverage detected