[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)
/* styles for access control forms)
*
* :organization: Logilab
* :copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
* :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
*/
/******************************************************************************/
/* security edition form (views/management.py) web/views/schema.py */
/******************************************************************************/
h2.schema{
color: %(aColor)s;
}
table.schemaInfo td a.users{
color : #00CC33;
font-weight: bold;
}
table.schemaInfo td a.guests{
color: #ff7700;
font-weight: bold;
}
table.schemaInfo td a.owners{
color: #8b0000;
font-weight: bold;
}
table.schemaInfo td a.managers{
color: #000000;
font-weight: bold;
}
.discret,
table.schemaInfo td a.grey{
color:#666;
}
a.grey:hover{
color:#000;
}
.red{
color: #ff7700;
}
div#schema_security{
width:100%;
}