Opened 17 years ago
Closed 16 years ago
#6023 closed enhancement (fixed)
trac-admin should support attachments
Reported by: | Owned by: | Remy Blank | |
---|---|---|---|
Priority: | normal | Milestone: | 0.12 |
Component: | admin/console | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It would be handy to manipulate attachments from trac-admin, especially for attaching large files that I already have on the server.
Attachments (1)
Change History (5)
by , 17 years ago
Attachment: | console.py.diff added |
---|
comment:1 by , 17 years ago
Milestone: | → 0.12 |
---|
Thanks for the patch, looks good.
I'll use that as a sample case for TracAdmin modularization.
comment:2 by , 16 years ago
Milestone: | 0.13 → 0.12 |
---|---|
Owner: | changed from | to
Now that TracAdmin is modularized, this patch could be adapted and implemented cleanly in the attachment module. I'll give it a try.
I'll probably also add attachment get
, as it's not quite trivial to get it directly from the environment folder, due to file name encoding.
comment:4 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
New commands added in [7939]:
attachment add
: Attach a file to a resource.attachment export
: Export an attachment from a resource to a file or stdout.attachment list
: List attachments of a resource.attachment remove
: Remove an attachment from a resource.
Contrary to the patch in attachment:console.py.diff, the resource is not specified as separate realm
and id
arguments, but in the more familiar realm:id
format.
Ben, thanks for your patch. Even though I couldn't use it as-is, it contained all the necessary logic.
Implementation of attachment add|list|remove