MCPcopy Create free account
hub / github.com/django/code.djangoproject.com / CustomWikiModule

Class CustomWikiModule

DjangoPlugin/tracdjangoplugin/plugins.py:29–39  ·  view source on GitHub ↗

Works in combination with the CustomNavigationBar and replaces the default wiki module. Has a different logic for active item handling.

Source from the content-addressed store, hash-verified

27
28
29class 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
42class CustomNewTicket(Component):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected