Homec4science

WebSession: migrate to exception logging

Description

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.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Jun 29 2011, 17:20
Parents
R3600:9ff698d20662: BibAuthorID: fix unreferenced variables
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:d948dc2d5f68: WebSession: migrate to exception logging (authored by Raquel Jimenez Encinar <raquel.jimenez.encinar@cern.ch>).Jun 29 2011, 17:20