Opened 16 years ago
Last modified 8 years ago
#3551 new enhancement
[Patch] Automatic insertion and removal of dowloads from server directory.
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | DownloadsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
I've written a replacement api.py for version 0.10 trac that you can use, it auto-detects new files in the releases directory and adds them to the downloads list, and it also removes nonexistent files. It also uses heuristics to guess several columns for the download table. The code explains itself
Attachments (4)
Change History (13)
Changed 16 years ago by
comment:1 Changed 16 years ago by
Status: | new → assigned |
---|
Thanks a lot, I'll apply it to repository sequentally.
comment:2 Changed 16 years ago by
I added a patch for 0.11. Works fine.
Hey, your package doesnt have a manifest.in file, it makes impossible to build RPM because the templates and htdocs do not get included! Watch out!
I have RPMs built correctly too.
comment:3 Changed 16 years ago by
I added a patch that sorts files added by date, to mimic the original semantics of the application.
Changed 16 years ago by
Attachment: | TracDownloads-api.py.3.patch added |
---|
this patch sorts in REVERSE by default, as you generally want the top downloads to be the most recent ones
comment:4 Changed 16 years ago by
I like both auto upload and having recent files at the top.
Do they need to be applied sequentially, or do I just need the last one?
I'm currently using 0.2 of this plugin on Trac 0.11 and it works fine.
comment:5 Changed 16 years ago by
Summary: | Downloads plugin requires too much manual intervention → PATCH: Automatic insertion and removal of dowloads from server directory. |
---|
I won't apply the patch in this state since there has to be preserved downloads in directories per ID for unique_filename = false
and because it's rather obsolete. I also don't understand what that multikeys
stuff does.
comment:6 Changed 15 years ago by
Summary: | PATCH: Automatic insertion and removal of dowloads from server directory. → [Patch] Automatic insertion and removal of dowloads from server directory. |
---|
comment:7 Changed 11 years ago by
Owner: | changed from Radek Bartoň to Ryan J Ollos |
---|
comment:8 Changed 8 years ago by
Status: | assigned → new |
---|
comment:9 Changed 8 years ago by
Owner: | Ryan J Ollos deleted |
---|
Interesting idea, but a new patch would need to be generated against the latest code.
Replacement api.py