Homec4science

WebBasket: migrate to exception logging

Description

WebBasket: migrate to exception logging

  • Migrates error logging to new exception-based technique. (addresses #580)
  • Creates class 'InvenioWebBasketWarning' for warnings.
  • Deletes var CFG_WEBBASKET_WARNING_MESSAGES.
  • Deletes warnings var whenever it is needed.
  • Modifies 'tmpl_warnings'.
  • Updates the comments of functions.
  • Adds warnings in 'perform_request_create_basket'.
  • Removes warning ERR_WEBBASKET_NOT_OWNER not defined.
  • Adds 'req' parameter in calls to 'register_exception' whenever it is available.
  • Adds calls to 'gettext_set_language' to translate the exception messages.
  • Merge notes:
    • Fixed uninitialised variable cases with warnings_rights.
    • Fixed return tuple in perform_request_display_public().

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Jun 29 2011, 18:33
Parents
R3600:3d4a7756aa80: WebComment: migrate to exception logging
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:7e175834282c: WebBasket: migrate to exception logging (authored by Raquel Jimenez Encinar <raquel.jimenez.encinar@cern.ch>).Jun 29 2011, 18:33