You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by rj...@apache.org on 2013/07/16 08:36:36 UTC

svn commit: r1503571 - /bloodhound/trunk/bloodhound_relations/bhrelations/web_ui.py

Author: rjollos
Date: Tue Jul 16 06:36:36 2013
New Revision: 1503571

URL: http://svn.apache.org/r1503571
Log:
!BloodhoundRelations `web_ui` module now returns an empty list since there are no static resource directories. Refs #519.

Modified:
    bloodhound/trunk/bloodhound_relations/bhrelations/web_ui.py

Modified: bloodhound/trunk/bloodhound_relations/bhrelations/web_ui.py
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_relations/bhrelations/web_ui.py?rev=1503571&r1=1503570&r2=1503571&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_relations/bhrelations/web_ui.py (original)
+++ bloodhound/trunk/bloodhound_relations/bhrelations/web_ui.py Tue Jul 16 06:36:36 2013
@@ -25,7 +25,6 @@ Ticket relations user interface.
 """
 
 import re
-import pkg_resources
 
 from trac.core import Component, implements, TracError
 from trac.resource import get_resource_url, Resource
@@ -119,12 +118,11 @@ class RelationManagementModule(Component
 
     # ITemplateProvider methods
     def get_htdocs_dirs(self):
-        resource_filename = pkg_resources.resource_filename
-        return [('relations', resource_filename('bhrelations', 'htdocs')), ]
+        return []
 
     def get_templates_dirs(self):
-        resource_filename = pkg_resources.resource_filename
-        return [resource_filename('bhrelations', 'templates'), ]
+        from pkg_resources import resource_filename
+        return [resource_filename('bhrelations', 'templates')]
 
     # IRequestFilter methods
     def pre_process_request(self, req, handler):