wiki:AllAttachmentsMacro

Version 9 (modified by rjollos, 4 years ago) (diff)

Removing link to fork since it has been pulled in. Adding mitar as a contributor.

List attachments from Trac site

Description

Adds a wiki macro that shows all attachments uploaded on a Trac site. The attachments are displayed as a list of filenames, showing filesize, author and the source of the attachment (wikipage or ticket). The macro was previously hosted on an external site.

Bugs/Feature Requests

Existing bugs and feature requests for AllAttachmentsMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

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

Example

[[AllAttachments()]]		Show all attachments
[[AllAttachments(ticket)]]	Show the attachments that are linked to tickets
[[AllAttachments(wiki)]]	Show the attachments that are linked to wiki pages

Recent Changes

[14371] by rjollos on 2015-01-18 09:01:44
Fixed compatibility with Trac 1.1.2 and KeyError when milestone has attachments.
[14370] by rjollos on 2015-01-18 08:54:54
Created branch for Trac 1.0 and later.
[14369] by rjollos on 2015-01-18 08:54:32
PEP-0008 coding style changes.

Author/Contributors

Author: daan
Maintainer: rjollos
Contributors: mitar