cam: fix preinscription

This commit is contained in:
Jérôme Schneider 2014-01-13 19:24:27 +01:00
parent 2ad09b8bee
commit cb342cd6ad
2 changed files with 16 additions and 2 deletions

View File

@ -52,7 +52,8 @@ archimed_mapping = [
},
{
'filter': archimed.rewrite_logged_box
},]
},
]
},
{
'path': r'/mandaye/login$',
@ -79,6 +80,16 @@ archimed_mapping = [
'filter': auth.slo,
}]
},
{
'path': r'/preinscription$',
'method': 'GET',
'target': 'http://oai.mediatheques.montpellier-agglo.com/camo/GuestRegister.csp?Profile=Default&OpacLanguage=fre'
},
{
'path': r'/vubisie.css$',
'method': 'GET',
'target': 'http://oai.mediatheques.montpellier-agglo.com/camo/vubisie.css'
},
{
'path': r'%s$' % auth.config.END_POINTS_PATH['metadata'],
'method': 'GET',

View File

@ -152,7 +152,10 @@ def rewrite_login_box(env, values, request, response):
\2""",
response.msg)
response.msg = resp
response.msg = resp.replace(
'http://oai.mediatheques.montpellier-agglo.com/camo/GuestRegister.csp?Profile=Default&OpacLanguage=fre',
'/preinscription'
)
return response
def rewrite_logged_box(env, values, request, response):