#580: errorlib: migrate old ERR logging style to exception logging
-----------------------+----------------------
Reporter: simko | Owner: rajimene
Type: defect | Status: in_merge
Priority: major | Milestone:
Component: MiscUtil | Version:
Resolution: | Keywords:
-----------------------+----------------------
Comment (by Raquel Jimenez Encinar <raquel.jimenez.encinar@…>):
In [d948dc2d5f6832efef39d62e01650c7dd115a3a1]:
{{{
#!CommitTicketReference repository=""
revision="d948dc2d5f6832efef39d62e01650c7dd115a3a1"
WebSession: migrate to exception logging
* Migrates error logging to new exception-based technique. (addresses
#580)
* Creates classes 'InvenioWebSessionError' for errors and
'InvenioWebSessionWarning' for warnings in 'websession_config.py'.
* Creates function 'tmpl_error()' to display errors.
* Removes function 'tmpl_warning' and rename function 'tmpl_warnings'
with 'tmpl_warning'.
* Deletes CFG_WEBSESSION_ERROR_MESSAGES and
CFG_WEBSESSION_WARNING_MESSAGES vars.
* Deletes errors var whenever it is needed.
* Updates the comments of functions.
}}}
--
Ticket URL: </ticket/580#comment:5>
Invenio <http://invenio-software.org>