Edgewall Software

Changes between Version 2 and Version 3 of TracDev/PluginDevelopment/ExtensionPoints/trac.admin.api.IAdminPanelProvider


Ignore:
Timestamp:
Aug 3, 2011, 11:10:29 AM (11 years ago)
Author:
anonymous
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PluginDevelopment/ExtensionPoints/trac.admin.api.IAdminPanelProvider

    v2 v3  
    2929from trac.core import *
    3030from trac.admin import IAdminPanelProvider
    31 from trac.web.chrome import add_notice, add_warning
     31from trac.web.chrome import ITemplateProvider, add_notice, add_warning
    3232from trac.util.text import exception_to_unicode
    3333
     
    6060        return 'admin_query.html', dict((option, self.config.get('query', option))
    6161                                        for option in options)
     62   
     63    # ITemplateProvider methods
     64    # Used to add the plugin's templates and htdocs
     65    def get_templates_dirs(self):
     66        from pkg_resources import resource_filename
     67        return [resource_filename(__name__, 'templates')]
    6268}}}
    6369