Version 5 (modified by Blackhex, 9 years ago) (diff)

Installation notes and features description.

Downloads Plugin


This plugin provides downloads section which may contain release or other files. It is administrable via WebAdminPlugin and shows informations about uploaded files such as description, component, version, size, architecture and type which is download related to. It collects information about number of downloads too.

Bugs/Feature Requests

Existing bugs and feature requests for DownloadsPlugin are here.

If you have any issues, create a new ticket but read BugReporting page first, please.


Download the zipped source from [download:downloadsplugin here].


You can check out DownloadsPlugin from here using Subversion, or browse the source with Trac.


DownloadsPlugin depends on WebAdminPlugin since many configuration options are avaiable only on apropriate WebAdminPlugin's pages. Support for TagsPlugin is planned too.


After installing plugin's egg you can set up few configuration variables in trac.ini. Their default values are displayed bellow:


title = Downloads
path = /var/lib/trac/downloads
ext = zip gz bz2 rar
visible_fields = id file description size time count author tags component version architecture platform type # Currently not implemented.

Variable title sets text of main navigation bar button. path is location where uploaded downloads are stored. It has to be accesible for writing to web server. Setting ext variable restricts allowed extensions of uploaded files. Finally visibled_field variable controls appearance of downloads table columns in Downloads sections.

If you run Trac in environment which needs to enable plugins explicitly put in trac.ini these lines:

tracdownloads.api.DownloadsApi = enabled
tracdownloads.admin.DownloadsWebAdmin = enabled
tracdownloads.core.DownloadsCore = enabled
tracdownloads.init.DownloadsInit = enabled
tracdownloads.timeline.DownloadsTimeline = enabled = enabled

The next step is to upgrade your environment:

# trac-admin <path_to_environment> upgrade


DownloadsPlugin defines two permissions DOWNLOADS_VIEW for normal users and DOWNLOADS_ADMIN for people who uploads and administrates downloads.

You can grant them using these commands:

# trac-admin <path_to_environment> permission add <user> DOWNLOADS_VIEW
# trac-admin <path_to_environment> permission add <user> DOWNLOADS_ADMIN


There is only macro for downloads referencing on wiki pages:

[download:<download_id> <text>]

Recent Changes

15264 by rjollos on 2016-02-11 05:22:34
Remove unnecessary svn:mime-type on py files

svn:mime-type was set to "plain" for many files.

14882 by rjollos on 2015-08-13 22:09:47
0.3dev: Don't rely on transitive imports. Refs #12482.

from tracdownloads.api import * brings in to_datetime and utc.

14881 by rjollos on 2015-08-13 22:06:38
0.3dev: Returning a datetime object is enforced in Trac 1.1.3 and later.

Patch by sdegrande. Fixes #12482.



Author: Blackhex