[selectors] modify workflow selectors: is_in_state, on_transition
- factorize `is_on_state` selector
- add new `on_transition` selector
Especially useful to match pending transitions to enable notifications when
your workflow allows several transition to the same states.
Note that if workflow `change_state` adapter method is used, this selector
will not be triggered.
In debug mode:
These both selectors will check against the entity current workflow if expected
values given in selector argument are valid.
ValueError exception will be raised for unmatching state/transition
names against the current workflow (generic etype workflow).
(check against custom workflow is not implemented)
Any authenticated user can defines its own bookmarks in the application. They
are similar to bookmarks in a browser but are dedicated to link into the
application and they are stored in the database (and so you'll get them from any
browser you use to connect to the application. They are available through the
bookmarks box, on the left of the screen.
To add a bookmark on the page you're seeing, simply click on the "bookmark this
page" link in the "manage bookmarks" dropdown-menu. You'll then be asked to give
it a title. Once created, it will appear in the bookmarks box.
In this dropdown-menu, the "pick existing bookmarks" link will show you a list
of bookmarks already defined by the other users of the application. If you are
interested by one of them, simply click the `[+]` sign to the left of it to add it
to your bookmarks.
The "edit bookmarks" link will show you a form to edit your current bookmarks,
for instance to change their title. If you are using share bookmarks (picked
from another user), those bookmarks won't appear in the form unless you're
allowed to modify them.
To remove a bookmark, simply click the `[-]` sign to the left of it.