Opened 4 years ago

Closed 4 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:


I get 404 Not found while trying TracAsciidoctorPlugin. - - [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/

    diff --git a/tracasciidoctorplugin/1.0/tracasciidoctor/ b/tracasciidoctorplugin/1.0/tracasciidoctor/
    index f2ea89bb6..915aa182d 100644
    a b class AsciidocRenderer(Component): 
    5555    def get_htdocs_dirs(self):
    5656        from pkg_resources import resource_filename
    57         return [resource_filename(__name__, 'htdocs')]
     57        return [('tracasciidoctor', resource_filename(__name__, 'htdocs'))]

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 17244:

Fix missing htdocs prefix

Patch by Jun Omae.

Fixes #13453.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Sergio Talens-Oliag.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.