Ejemplo n.º 1
0
 def logout_SSO_hook(self, req, form):
     """Script triggered by the display of the centralized SSO logout
     dialog. It logouts the user from Invenio and stream back the
     expected picture."""
     logoutUser(req)
     req.content_type = 'image/gif'
     req.encoding = None
     req.filename = 'wsignout.gif'
     req.headers_out["Content-Disposition"] = "inline; filename=wsignout.gif"
     req.set_content_length(os.path.getsize('%s/img/wsignout.gif' % CFG_WEBDIR))
     req.send_http_header()
     req.sendfile('%s/img/wsignout.gif' % CFG_WEBDIR)
Ejemplo n.º 2
0
 def logout_SSO_hook(self, req, form):
     """Script triggered by the display of the centralized SSO logout
     dialog. It logouts the user from Invenio and stream back the
     expected picture."""
     logoutUser(req)
     req.content_type = 'image/gif'
     req.encoding = None
     req.filename = 'wsignout.gif'
     req.headers_out["Content-Disposition"] = "inline; filename=wsignout.gif"
     req.set_content_length(os.path.getsize('%s/img/wsignout.gif' % CFG_WEBDIR))
     req.send_http_header()
     req.sendfile('%s/img/wsignout.gif' % CFG_WEBDIR)