Ticket #435 (closed enhancement: wontfix)

Opened 5 years ago

Last modified 5 years ago

backup filenames: custom fields (timestamp, comment)

Reported by: FND Owned by: FND
Priority: minor Milestone: 2.3.1
Component: core Version:
Severity: low Keywords:
Cc:

Description

Further pursuing the enhancements of #226 (changeset:2713), the attached patch allows for customized filenames in backups.

This includes parameters for a custom timestamp format, as well as an optional comment string (e.g. an edit summary) to be added to the filename:
original filename + timestamp + comment + extension


Note:
Currently, saveBackup() cannot simply be called on its own because of its dependence on localPath and original (both determined in saveChanges()).
It might be sensible to move those calculations into a separate function, then calling that function from within both saveChanges() and saveBackup() if necessary - thus enabling plugins/macros to simply call saveBackup() with the respective custom parameters at any time.

Attachments

ticket435.patch Download (2.0 KB) - added by FND 5 years ago.

Change History

Changed 5 years ago by FND

Changed 5 years ago by FND

  • owner changed from JeremyRuston to FND
  • status changed from new to assigned

Changed 5 years ago by MartinBudden

  • milestone set to 2.3.1

Changed 5 years ago by JeremyRuston

  • status changed from assigned to closed
  • resolution set to fixed

Concerned that this enhancement isn't of general enough utility. Perhaps we could refactor enough of the core to allow this functionality to be easily added as a plugin?

Changed 5 years ago by JeremyRuston

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 5 years ago by JeremyRuston

  • status changed from reopened to closed
  • resolution set to wontfix
Note: See TracTickets for help on using tickets.