Hi, I'm experimenting with Trac plugin development, and I'd like to
make a plugin that changes some of the templates. I have the following
in my python code:

# ITemplateProvider methods
  def get_templates_dirs(self):
    """Return a list of directories containing the provided
ClearSilver templates"""
    from pkg_resources import resource_filename
    return [resource_filename(__name__, 'templates')]

I have all my templates (*.cs files) in a directory called
'templates', and added "package_data={'tracplugin': ['templates/
*.cs']}" to my setup.py, but when I install the plugin and restart
trac, none of the templates "take". Is there something else I need to
do? I'm developing on trac 0.10.3. Thanks for any help.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to