Edgewall Software

Opened 9 years ago

Closed 9 years ago

Last modified 3 years ago

#10898 closed defect (worksforme)

Tracker variable in web/main.py should be configurable

Reported by: milburnd Owned by:
Priority: normal Milestone:
Component: web frontend Version: 0.12-stable
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


The tracker variable for displaying the search link on trac errors should be configurable. It can possibly be a Trac option to remove the need to modify core Trac code for patched versions of Trac.

Attachments (0)

Change History (3)

comment:1 by Christian Boos, 9 years ago

Resolution: worksforme
Status: newclosed

The use case I had in mind for default_tracker was for "big" modifications of Trac, à la AgiloForScrum, or BloodHound… In any case, for people adding code either by patching or by use of plugins.

If you're in the second situation, then adding the following two lines in your main plugin should work:

from trac.web import main
main.default_tracker = 'http://trac.elsewhere.org'

Even if you don't have plugins of your own yet and don't want to report bugs to us (isolated from the internet? want to keep all your nice internal errors for yourself? etc.), then creating a simple default_tracker.py file with nothing else but the above two lines and placing it in your <tracenv>/plugins directory should also work.

comment:2 by Ryan J Ollos, 6 years ago

You may also want to look at whether [project] admin_trac_url meets your needs. admin_trac_url determines where error reports are sent when creating an issue using the Create button on the error page.



Base URL of a Trac instance where errors in this Trac should be reported.

This can be an absolute or relative URL, or '.' to reference this Trac instance. An empty value will disable the reporting buttons.


Error reports are only sent to trac.edgewall.org or the plugin's project URL if a user has TRAC_ADMIN permission, therefore default_tracker will only be relevant in those cases. For users with TRAC_ADMIN, setting admin_trac_url to a value other than the default . will add a second Create button on the page for reporting the issue locally, in addition to the Create button for reporting the issue in the remote_tracker.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.