Preserve response provided by a HTTPException
commit626b4b40c3b9a3dfce2c93f19938f49fa8cf2a75
authorAdrian Moennich <adrian.moennich@cern.ch>
Mon, 13 Jul 2015 14:03:23 +0000 (13 16:03 +0200)
committerAdrian Moennich <adrian.moennich@cern.ch>
Mon, 13 Jul 2015 14:08:35 +0000 (13 16:08 +0200)
treea5d0941058e7ce5d5285d83114ca8f265c201a64
parent9b24258e9cdb3d0aaf3bad2233585033beda52d1
Preserve response provided by a HTTPException

This allows you to do something like this:

    raise Forbidden(response=redirect_to_login(reason='...'))

Also show a nicer message on the login page when you got there from a
Forbidden error
indico/MaKaC/webinterface/rh/base.py