Menu

Commit [r5444]  Maximize  Restore  History

WorkFlow: some interface changes for the ITicketActionController

- `render_ticket_action_control` returns now a `(label, control, hint)` tuple.
The `hint` will be used to inform the user about what will happen if the action is performed.
- `get_ticket_changes` now returns simply the dictionary containing the ticket changes, instead of that dictionary plus a description of the change. That description was barely used (only by one sample plugin), and if there's a need to warn the user, the standard `req.warning` mechanism will achieve the same effect.

Also:
- further improvements to the documentation
- adapt the sample plugins to the above API changes (well, for those not already anticipating it!)
- the !CodeReview sample plugin has also been refactored a bit

cboos 2007-05-20

changed /trunk/sample-plugins/workflow/CodeReview.py
changed /trunk/sample-plugins/workflow/DeleteTicket.py
changed /trunk/sample-plugins/workflow/StatusFixer.py
changed /trunk/sample-plugins/workflow/VoteOperation.py
changed /trunk/trac/htdocs/css/trac.css
changed /trunk/trac/ticket/api.py
changed /trunk/trac/ticket/default_workflow.py
changed /trunk/trac/ticket/templates/ticket.html
changed /trunk/trac/ticket/web_ui.py
/trunk/sample-plugins/workflow/CodeReview.py Diff Switch to side-by-side view
Loading...
/trunk/sample-plugins/workflow/DeleteTicket.py Diff Switch to side-by-side view
Loading...
/trunk/sample-plugins/workflow/StatusFixer.py Diff Switch to side-by-side view
Loading...
/trunk/sample-plugins/workflow/VoteOperation.py Diff Switch to side-by-side view
Loading...
/trunk/trac/htdocs/css/trac.css Diff Switch to side-by-side view
Loading...
/trunk/trac/ticket/api.py Diff Switch to side-by-side view
Loading...
/trunk/trac/ticket/default_workflow.py Diff Switch to side-by-side view
Loading...
/trunk/trac/ticket/templates/ticket.html Diff Switch to side-by-side view
Loading...
/trunk/trac/ticket/web_ui.py Diff Switch to side-by-side view
Loading...