Homec4science

testutils: add new relative url function

Authored by Jan Aage Lavik <jan.age.lavik@cern.ch> on Sep 17 2013, 12:25.

Description

testutils: add new relative url function

  • Adds a new function in similar lines as make_url and make_surl called make_rurl which uses CFG_BASE_URL to return a relative URL.

WebSearch: fix regression test failures

  • Opensearch meta descriptions are now properly using CFG_SITE_URL instead of CFG_BASE_URL.
  • Fixes a problem while querying the database for unknown collection-names introduced after a pep8 fix as the function get_coll_normalized_name() now returns None, instead of having an IndexError exception, when no results are found.
  • Amends the WebSearch regression tests to take new CFG_BASE_URL into account, replacing CFG_SITE_URL.

BibFormat: CFG_BASE_URL test fixes

  • Amends missing formats as necessary to use CFG_BASE_URL as pointed out by regression tests.

WebComment: use CFG_BASE_URL in template

  • Now WebComment templates uses CFG_BASE_URL in several places.

Details

Committed
Samuele Kaplun <samuele.kaplun@cern.ch>Dec 18 2013, 16:22
Parents
R3600:35ef4eb34500: testutils: regression_tests fix
Branches
Unknown
Tags
Unknown

Event Timeline

Samuele Kaplun <samuele.kaplun@cern.ch> committed R3600:78a417ec423c: testutils: add new relative url function (authored by Jan Aage Lavik <jan.age.lavik@cern.ch>).Dec 18 2013, 16:22