|
We have implemented a "delete/undelete" function for attachments which has the following basic charcteristics:
The DeleteAttachment topic is not only about deleting attachments, but also about version control. I like the idea of version controlling the attachments, this is a feature that has been requested sometimes. Thank you for sharing your ideas. Do you intend to share the Perl code as well? Very good idea to remove the file from the table when deleting the attachment, but to leave the actual file untouched. The main TWiki core should be extended with this feature. Some issues need to be addressed:
-r1.23 ) when
going through the download/edit/upload cycle.
oopsrev.tmpl template)
I am not sure how to solve issue 1. May be we could use the original file name for the first
revision, and then, when the file is updated, to rename the original file by appending a
revision number. Another possibility would be to use RCS in binary mode, that means there
would be a repository file besides the actual file.
-- PeterThoeny - 22 Jul 2000 I agree with PeterThoeny that the file name left as the original would be best. I think it was cleaver the way you took advantage of the current versioning to find the name(s) of the attachments. But my users and myself would prefer a versioning number that started as 1.1 and incremented monotonically. With the current scheme they would be confused. I think this is a good start and I will try to come up with some constructive sugestions later on this week. -- HaroldGottschalk - 22 Jul 2000 Thank you for your sugesstions regarding the file revision info and the update procedure! We have modified our concept as follows:
Here is an example for an attach - update session: A test page ...
the revision number is shown in a file revision column; a "delete" function is offered in the action column (by selecting the "delete" function the file is removed from the table) ...
the revision number is incremented (--r0002); the topic content is not modified;
This picture shows the Ooops dialog of the "undelete" function. It requests a new comment...
|
| I | Attachment | History | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|---|
| |
del01.gif | manage | 8.6 K | 2000-07-21 - 08:44 | UnknownUser | Picture01 | |
| |
del02.gif | manage | 8.3 K | 2000-07-21 - 08:45 | UnknownUser | Picture02 | |
| |
del03.gif | manage | 14.3 K | 2000-07-21 - 08:46 | UnknownUser | Picture03 | |
| |
del04.gif | manage | 12.1 K | 2000-07-21 - 08:46 | UnknownUser | Picture04 | |
| |
del05.gif | manage | 14.3 K | 2000-07-21 - 08:47 | UnknownUser | Picture05 | |
| |
del06.gif | manage | 16.3 K | 2000-07-21 - 08:47 | UnknownUser | Picture06 | |
| |
del07.gif | manage | 14.6 K | 2000-07-21 - 08:47 | UnknownUser | Picture07 | |
| |
del08.gif | manage | 14.5 K | 2000-07-21 - 08:48 | UnknownUser | Picture08 | |
| |
del09.gif | manage | 15.6 K | 2000-07-21 - 08:48 | UnknownUser | Picture09 | |
| |
del10.gif | manage | 8.3 K | 2000-07-28 - 14:42 | UnknownUser | Picture10 | |
| |
del11.gif | manage | 11.3 K | 2000-07-28 - 14:42 | UnknownUser | Picture11 | |
| |
del12.gif | manage | 14.2 K | 2000-07-28 - 14:43 | UnknownUser | Picture12 | |
| |
del13.gif | manage | 13.9 K | 2000-07-28 - 14:43 | UnknownUser | Picture13 | |
| |
del14.gif | manage | 14.3 K | 2000-07-28 - 14:44 | UnknownUser | Picture14 | |
| |
del15.gif | manage | 7.9 K | 2000-07-28 - 14:44 | UnknownUser | Picture15 |