Wednesday, July 1, 2015¶
Testing the fields of form panels¶
How to specify an “or” operation for required_roles¶
I noticed that the test for demo user Theresia (reception clerk) was
being skipped. This made me discover a new trick: how to
specify an “or” operation for the
lino.modlib.office.roles.OfficeUser are exclusive: normal
users want either one or the other, but not both.
For example, a reception clerk is an office operator, not an office user. Which means that she does not want to see menu commands like “My events” or “My visitors”. The social agents are office users, not office operators. They want to see what’s happening at the reception, but not everything. For example they don’t want to see thecommand because they have their specific commands for that ( or or ).
But then the reception module has certain commands which both
operators and users want to have: for example the global list of
See also the source code of