Changes between Version 44 and Version 45 of TracDownloaderPlugin


Ignore:
Timestamp:
Sep 7, 2016, 8:45:12 PM (8 years ago)
Author:
figaro
Comment:

Further cosmetic changes: removed reference to Trac 0.9

Legend:

Unmodified
Added
Removed
Modified
  • TracDownloaderPlugin

    v44 v45  
    99See also DownloadsPlugin.
    1010
    11 '''Screenshots:'''
     11=== Screenshots
     12
    1213 * [attachment:04_downloads.png View on Main list of downloads]
    1314 * [attachment:08_questionnaire.png Questionnaire with captha to get information about user who downloads]
    1415 * [attachment:01_files_admin.png Administration of files for download]
    15  * [attachment:03_stats_admin.png Administration of statistics and questionnaire fill up's]
     16 * [attachment:03_stats_admin.png Administration of statistics and questionnaire fill ups]
    1617 * [attachment:06_year_stats.png Statistics of downloads by years]
    1718 * [attachment:05_month_stats.png Statistics of downloads by months]
     
    2021Plugin was tested on Python 2.3, Trac 0.9.6 and Trac 0.10.4. The first successful tests were made on Trac 0.11b1. But note that there may still be some bugs and please report every problem you find.
    2122
    22 == Planned features and improvements
     23=== Planned features and improvements
    2324
    2425 * Rewrite all templates from !ClearSilver to Genshi
     
    4142== Download
    4243
    43 If you don't like Subversion you can download the egg or the full source here:
     44If you don't like Subversion, you can download the egg or the full source here:
    4445 * [http://data.pevnosti.cz/tracdownloader/TracDownloader-0.1-trac-0.11.egg TracDownloader-0.1-trac-0.11.egg]
    4546 * [http://data.pevnosti.cz/tracdownloader/TracDownloader-0.1-trac-0.11.zip TracDownloader-0.1-trac-0.11.zip]
    4647 * [http://data.pevnosti.cz/tracdownloader/TracDownloader-0.1-trac-0.10.egg TracDownloader-0.1-trac-0.10.egg]
    4748 * [http://data.pevnosti.cz/tracdownloader/TracDownloader-0.1-trac-0.10.zip TracDownloader-0.1-trac-0.10.zip]
    48  * [http://data.pevnosti.cz/tracdownloader/TracDownloader-0.1-trac-0.9.egg TracDownloader-0.1-trac-0.9.egg]
    49  * [http://data.pevnosti.cz/tracdownloader/TracDownloader-0.1-trac-0.9.zip TracDownloader-0.1-trac-0.9.zip]
    5049
    5150Here are [http://data.pevnosti.cz/tracdownloader/ some screenshots] too.
    5251
    53 Download the zipped source for [export:tracdownloaderplugin/0.9 Trac 0.9], [export:tracdownloaderplugin/0.10 Trac 0.10], [export:tracdownloaderplugin/0.11 Trac 0.11] or [export:tracdownloaderplugin just everything].
     52Download the zipped source for [export:tracdownloaderplugin/0.10 Trac 0.10], [export:tracdownloaderplugin/0.11 Trac 0.11] or [export:tracdownloaderplugin just everything].
    5453
    5554== Source
     
    7170}}}
    7271
    73 '''Second and maybe better way''' is to download and unpack somewhere source zip package and then just run "setup.py install" (or on Windows maybe better "python setup.py install") or you can just use easy_install commands written above. ~~Setup should take care of all dependences (!PyCaptcha and PIL but it could get some errors while dowloading them so if automatic dependency resolution doesn't work use code above) and prepare plugin to be turned on in !WebAdmin/plugins.~~ Setup just installs TracDownloaderPlugin. If you like to use Captcha tests you have to install PIL and !PyCaptcha manually either (note that PIL is in most ''Linux distributions'' package named '''python-imaging''' so you don't need to install it by easy install but you can use your package manager).
     72'''Second and maybe better way''' is to download and unpack somewhere source zip package and then just run "setup.py install" (or on Windows maybe better "python setup.py install") or you can just use easy_install commands written above. Setup just installs TracDownloaderPlugin. If you like to use Captcha tests you have to install PIL and !PyCaptcha manually either (note that PIL is in most ''Linux distributions'' package named '''python-imaging''' so you don't need to install it by easy install but you can use your package manager).
    7473
    75 Then you must enable both Downloader modules in !TracAdmin/Plugins (or enable Downoader components in your envronment's `trac.ini` file - source bottom) and assign some permissions of downloader to someone and you can start trying Downloader plugin:
     74Then you must enable both Downloader modules in !TracAdmin/Plugins (or enable Downloader components in your environment's `trac.ini` file - source bottom) and assign some permissions of downloader to someone and you can start trying Downloader plugin:
    7675
    7776{{{#!ini
     
    9190Downloader plugin defines the following permissions:
    9291
    93 `DOWNLOADER_DOWNLOAD`: lets user to download things from main part of plugin, if you like to let all users download from donwloader, just get this permission to user anonymous.
     92`DOWNLOADER_DOWNLOAD`: lets user to download things from main part of plugin, if you like to let all users download from Downloader, just get this permission to user anonymous.
    9493`DOWNLOADER_STATS`: lets user to browse part of statistics in the main module of Downloader (user will be able to see links to statistics in the right top corner of the page).
    9594`DOWNLOADER_ADMIN`: lets user to upload files, manage files, releases and categories, browse fill up's of questionnaire, delete fill up's of questionnaire and manage settings of Downloader plugin. Note that this permission should never be given to user anonymous!
     
    102101
    103102{{{
    104 downloader:5 - Creates link to file with id 5 with it's name
     103downloader:5 - Creates link to file with id 5 with its name
    105104[downloader:5 click here] - Creates 'click here' link to file with id 5
    106105
    107 downloaderrel:23 - Creates link to release with id 23 with it's name
     106downloaderrel:23 - Creates link to release with id 23 with its name
    108107[downloaderrel:23 click here] - Creates 'click here' link to release with id 23
    109108
    110 downloadercat:43 - Creates link to category with id 43 with it's name
     109downloadercat:43 - Creates link to category with id 43 with its name
    111110[downloadercat:43 click here] - Creates 'click here' link to category with id 43
    112111}}}
    113112
    114 If item of that id doesn't exist, there is diplayed a dead link with title "id not found". If the file was deleted, it still displays its correct name, but does not link to anywhere.
     113If item of that id doesn't exist, there is displayed a dead link with title "id not found". If the file was deleted, it still displays its correct name, but does not link to anywhere.
    115114
    116115== Special features
     
    119118
    120119'''MIME list'''
    121 In tracdownloader directory there is a file mime_list.txt which contains list of known MIME types for downloader, you can easily add new ones or delete unneeded, if there is no record found for particular file extension in this list, Downloader uses MIME of application/octet-stream.
     120In tracdownloader directory there is a file mime_list.txt which contains list of known MIME types for Downloader, you can easily add new ones or delete unneeded, if there is no record found for particular file extension in this list, Downloader uses MIME of application/octet-stream.
    122121
    123122'''EDIT QUESTIONNAIRE'''