Modify

Opened 16 years ago

Last modified 2 years ago

#5447 new defect

Ability to specify the author and creation time for ticket attachments

Reported by: Thijs Triemstra Owned by: osimons
Priority: high Component: XmlRpcPlugin
Severity: major Keywords:
Cc: Thijs Triemstra Trac Release: 0.11

Description

It's currently not possible to specify the creation time or author for a ticket attachment. The attached patch should fix this problem.

Attachments (1)

attachment-author-time.patch (1.2 KB) - added by Thijs Triemstra 16 years ago.

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by Thijs Triemstra

comment:1 Changed 16 years ago by osimons

Hmm. Perhaps adding an attributes={} parameter to the end of the signature? That could then contain author and time_created keys? Ideally I would also like description to be in that dictionary, as unlike the other parameters it is just an optional extra.

Technically it would perhaps be possible to change description to attributes, and then (at least for a time) test the input - if input is a string then save as description, if it is an dictionary then update whatever attributes it contains or use any default values (like req.authname).

comment:2 Changed 14 years ago by osimons

See also #5445 for ~same request for ticket updates.

comment:3 Changed 14 years ago by osimons

Priority: normalhigh

With #5445 + #3988 completed, the same principles should be applied to ticket attachments too. Should add 'author' and 'when' as optional arguments at the end (no need to break the API), and also add test(s) to make sure it works.

comment:4 Changed 11 years ago by Olemis Lang

See these tickets for a similar problem solved using a different approach (still WiP) .

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain osimons.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.