Modify ↓
Opened 6 years ago
Closed 6 years ago
#13453 closed defect (fixed)
Missing prefix in return value of get_htdocs_dirs()
Reported by: | Jun Omae | Owned by: | Sergio Talens-Oliag |
---|---|---|---|
Priority: | normal | Component: | TracAsciidoctorPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
I get 404 Not found while trying TracAsciidoctorPlugin.
192.168.11.29 - - [13/Jul/2018 18:14:41] "GET /tracenv/chrome/tracasciidoctor/css/asciidoc.css HTTP/1.1" 404 -
The plugin uses tracasciidoctor
as prefix for htdocs but get_htdocs_dirs()
doesn't return the prefix.
-
tracasciidoctorplugin/1.0/tracasciidoctor/tracasciidoctor.py
diff --git a/tracasciidoctorplugin/1.0/tracasciidoctor/tracasciidoctor.py b/tracasciidoctorplugin/1.0/tracasciidoctor/tracasciidoctor.py index f2ea89bb6..915aa182d 100644
a b class AsciidocRenderer(Component): 54 54 55 55 def get_htdocs_dirs(self): 56 56 from pkg_resources import resource_filename 57 return [ resource_filename(__name__, 'htdocs')]57 return [('tracasciidoctor', resource_filename(__name__, 'htdocs'))]
Attachments (0)
Note: See
TracTickets for help on using
tickets.
In 17244: