#37: WebSession: more user-friendly /yourgroups messages
------------------------+---------------------------------------------------
Reporter: simko | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: WebSession | Version:
Keywords: |
------------------------+---------------------------------------------------
The output messages of /yourgroups subsystem should be prettified.
Currently, when you try to edit a group that you don't have rights for
(via URL mangling), the system says:
{{{
Error: Sorry there was an error with the database.
<type 'exceptions.TypeError'> 'dict' object is not callable
}}}
which is misleading. Moreover, {{{invenio.err}}} is unnecessarily
filled with {{{ERR_WEBSESSION_DB_ERROR}}} alarms.
The UI should report something more user friendly, like:
{{{
Error: Sorry, you don't have rights to edit this user group.
}}}
or:
{{{
Error: Sorry, group foo does not exist.
}}}
The database errors should be reported only when there are real
database problems.
--
Ticket URL: <http://cdswaredev.cern.ch/invenio/ticket/37>
Invenio <http://cdswaredev.cern.ch/invenio>