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): 
    5454
    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 6 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
Action
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.