Changes between Version 8 and Version 9 of TracSecDlPlugin
- Timestamp:
- Mar 22, 2015, 1:09:06 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracSecDlPlugin
v8 v9 1 = Download plugin with advanced features = 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 [[PageOutline(2)]] 3 = Download plugin with advanced features 4 4 5 5 ---- 6 6 {{{ 7 7 #!html 8 <div class="system-message"><b>This plugin is actuallyhosted at <a href="https://bitbucket.org/goeb/tracsecdl">Bitbucket</a>, please visit this page for up to date information.</b></div>8 <div class="system-message"><b>This plugin is hosted at <a href="https://bitbucket.org/goeb/tracsecdl">Bitbucket</a>, please visit this page for up to date information.</b></div> 9 9 }}} 10 10 11 ''The text below is basicallya copy of the actual homepage, note however that I can only post five external links here, so you should visit the URL mentioned above for working links to the project's bug tracker etc.''11 ''The text below is a copy of the actual homepage, note however that I can only post five external links here, so you should visit the URL mentioned above for working links to the project's bug tracker etc.'' 12 12 ---- 13 13 14 == Description ==14 == Description 15 15 16 This plugin adds a download section to Trac. It was inspired by (and offers nearly all the features of) the [wiki:DownloadsPlugin DownloadsPlugin] (!TracSecDl currently lacks integration with the [wiki:TagsPlugin TagsPlugin] and [wiki:TracAdmin TracAdmin], and there is only a version for ''0.11'' available).16 This plugin adds a download section to Trac. It was inspired by and offers nearly all the features of the [wiki:DownloadsPlugin DownloadsPlugin]. !TracSecDl currently lacks integration with the [wiki:TagsPlugin TagsPlugin] and [wiki:TracAdmin TracAdmin], and there is only a version for ''0.11'' available. 17 17 18 The main features are:18 Key features: 19 19 20 20 * multiple ways to send a requested file to the client: … … 29 29 * [wiki:TracWiki Wiki] and [wiki:TracTimeline Timeline] integration 30 30 31 == Bugs And Feature Requests ==31 == Bugs And Feature Requests 32 32 33 33 Existing bugs and feature requests for !TracSecDl can be found at [https://bitbucket.org/goeb/tracsecdl/issues its bug tracker]. If you have any issues, please create a new ticket. 34 34 35 == Download And Source Code ==35 == Download And Source Code 36 36 37 37 Visit the plugin's homepage and check the download section for available files. You can also clone the repository with {{{git}}}: … … 40 40 }}} 41 41 42 == Dependencies ==42 == Dependencies 43 43 44 44 Trac 0.11 is required, other versions are currently not supported. 45 45 46 == Installation ==46 == Installation 47 47 48 Basically, download the source, extract it somewhere, change to the extracted directory ''!TracSecDl/0.11/'' (that one containing the ''setup.py'' file) and run 48 Basically, download the source, extract it somewhere, change to the extracted directory ''!TracSecDl/0.11/'' (that one containing the ''setup.py'' file) and run the following: 49 49 {{{ 50 #!python 50 51 python setup.py bdist_egg 51 52 }}} 52 This will create an ''.egg'' file somewhere (probably in the ''dist/'' folder). Place this file in a plugin directory where it can be found by Trac (eg. the [wiki:TracEnvironment environment's] ''plugins/'' directory). Enable the plugin by putting the following in your ''[wiki:TracIni trac.ini]'' (please do not disable individual parts of the plugin, this is not well tested): 53 54 This will create an ''.egg'' file somewhere (probably in the ''dist/'' folder). Place this file in a plugin directory where it can be found by Trac (eg. the [wiki:TracEnvironment environment's] ''plugins/'' directory). 55 56 Enable the plugin by putting the following in your ''[wiki:TracIni trac.ini]'': 53 57 {{{ 54 58 #!ini … … 57 61 }}} 58 62 63 Please do not disable individual parts of the plugin, this is not well tested. 64 59 65 Check the [wiki:TracPlugins TracPlugins installation guide], especially if you have trouble installing the plugin. 60 66 61 == Download Processing ==67 == Download Processing 62 68 63 69 When a user requests a download, the plugin will first check if the user's [#Permissions permissions] are sufficient to access the download. If the requested download is a remote one (ie. no file uploaded to the server but a remote URL specified instead) the plugin will simply send a 302 redirect to the remote URL. If it is a local download, the following three configuration options are checked (in that order): … … 86 92 The recommended setup is Lighttpd with mod_secdownload (hence the plugin's name), if you do not need to protect your downloads (if they are all public anyway) you can also use the regular download option. It is not recommended to use the {{{trac_downloads}}} option for FastCGI setups, since the number of FastCGI processes is usually limited and this will block one process for the time of the download. 87 93 88 == Configuration ==94 == Configuration 89 95 90 96 The plugin uses the following configuration options, the section in ''trac.ini'' is called {{{[secdl]}}}: … … 141 147 Comma separated list of prefixes used in the wiki to link to the downloads. The default value is {{{'download,secdownload'}}}. 142 148 143 === Additional Options ===149 === Additional Options 144 150 145 151 To change the order of the main navigation bar items use the {{{'secdl'}}} keyword, for example: … … 150 156 }}} 151 157 152 == Permissions ==158 == Permissions 153 159 154 160 The plugin defines three permissions: … … 158 164 * {{{SECDL_ADMIN}}}: access the [#Screenshots admin interface] to manage downloads (includes the other permissions) 159 165 160 == Macros ==166 == Macros 161 167 162 168 On wiki pages, the following macros can be used: … … 169 175 The examples above assume that {{{'download'}}} is included in the {{{wiki_prefix}}} [#Configuration configuration] option. 170 176 171 == Screenshots ==177 == Screenshots 172 178 173 179 The admin interface: … … 177 183 To take a look at the regular user interface go to the download section on !TracSecDl's homepage. 178 184 179 == Author ==185 == Author 180 186 181 187 '''Author:''' Stefan Göbel 182 188 183 == License ==189 == License 184 190 185 191 Copyright © 2010 Stefan Göbel