wiki:AdminConsoleProviderPatch

Adds an IAdminConsoleProvider Extension Point

Notice: This plugin is deprecated. The feature has been included in Trac 0.12. See wiki:TracDev/ApiChanges/0.12#IAdminCommandProvider for more details.

Description

This patch adds an IAdminConsoleProvider extension point to Trac that lets plugins add custom commands to TracAdmin.

Bugs/Feature Requests

Existing bugs and feature requests for AdminConsoleProviderPatch are here.

If you have any issues, create a new ticket.

Download

Download Source.

Source

You can check out AdminConsoleProviderPatch from here using Subversion, or browse the source with Trac.

Example

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)
...

Author/Contributors

Author: athomas
Maintainer: none
Contributors: progrium

Last modified 2 months ago Last modified on Aug 17, 2014 9:11:47 PM