|Version 17 (modified by rjollos, 3 years ago) (diff)|
Adds an IAdminConsoleProvider Extension Point
Note: This plugin is deprecated as of 0.12 as the feature has been included in the Trac core.
This patch adds an IAdminConsoleProvider extension point to Trac that lets plugins add custom commands to TracAdmin.
If you have any issues, create a new ticket.
Example from DiscussionPlugin:
from trac.core import * from trac.admin.console import IAdminConsoleProvider class DiscussionConsole(Component): implements(IAdminConsoleProvider) def get_console_commands(self, tracadm): self.tracadm = tracadm yield ('forum', self._help_forum, self.do_forum, self.complete_forum) yield ('topic', self._help_topic, self.do_topic, self.complete_topic) ...