Edgewall Software
Modify

Ticket #8309 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Make [inherit] plugins_dir and templates_dir support relative paths

Reported by: osimons Owned by: osimons
Priority: normal Milestone: 0.11.5
Component: general Version: 0.11-stable
Severity: normal Keywords: config
Cc:
Release Notes:
API Changes:

Description

Currently only absolute paths are supported for these two settings. Simple fixes needed for the two places we read those config settings.

I'll prepare a patch.

Attachments

Change History

comment:1 Changed 3 years ago by osimons

  • Status changed from new to assigned

Actually, only one was incorrect (shared plugins dir):

  • trac/env.py

    a b  
    197197        self._href = self._abs_href = None 
    198198 
    199199        from trac.loader import load_components 
    200         plugins_dir = self.config.get('inherit', 'plugins_dir') 
     200        plugins_dir = self.shared_plugins_dir 
    201201        load_components(self, plugins_dir and (plugins_dir,)) 
    202202 
    203203        if create: 

comment:2 Changed 3 years ago by cboos

Looks good to me.

comment:3 Changed 3 years ago by osimons

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in [8214] (0.11) and [8220] (0.12).

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from osimons. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.