Ticket #228 (new defect)

Opened 16 years ago

Last modified 14 years ago

Deletion of a document should be done by workflow

Reported by: fguillaume Owned by: fguillaume
Priority: P2 Milestone: CPS 3.5.7
Component: CPSDefault Version: unspecified
Severity: normal Keywords: workflow
Cc:

Description (last modified by fguillaume) (diff)

Deletion of a document should be done by workflow.

Needed to do special workflow actions during deletion. Also has the nice side-effect of making the deletion visible in the history.

This would means transitions with TRANSITION_BEHAVIOR_DELETE (there may be several transitions, not just one call 'delete', because depending on the state we may want different guards).

folder_delete.py would have to test for such transition and call them for each object to be deleted. This proably involves a "getActionsWithBehaviorFor" call. Or maybe reuse isBehaviorAllowedFor.

Attachments

wf_del.diff Download (16.2 KB) - added by disabled-hc@… 15 years ago.
Work done so far

Change History

comment:1 Changed 16 years ago by fguillaume

  • blocked set to 229

comment:2 Changed 16 years ago by fguillaume

  • Owner changed from ben@… to hc@…

comment:3 Changed 16 years ago by disabled-hc@…

  • Owner changed from hc@… to fg@…

Florent is now in charge of it. I enclosed the diff of the work I've done so far against a CVS checkout of HEAD.

comment:4 Changed 16 years ago by bdelbosc

  • Priority changed from P1 to P2

why is this a P1 ? back to P2

comment:5 Changed 15 years ago by madarche

This bug is related to "Deletion of a document should be done by workflow"  http://bugs.nuxeo.com/bugzilla/show_bug.cgi?id=494

Changed 15 years ago by disabled-hc@…

Work done so far

comment:6 Changed 14 years ago by fguillaume

  • Description modified (diff)
  • Milestone changed from unspecified to CPS 3.5.0

comment:7 Changed 14 years ago by fguillaume

Note that meanwhile an event is sent "by hand" from folder_delete.py, so actions can be taken on deletion in a limited manner.

Note: See TracTickets for help on using tickets.