X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/3c4367d8e03450e9a73e61f4247145d2b6c86a33..959d888c17d1403d2eeecc19bc4b5e2c8d1debf6:/skins/photo_theme/logout.py?ds=inline diff --git a/skins/photo_theme/logout.py b/skins/photo_theme/logout.py deleted file mode 100755 index f3ec6fe..0000000 --- a/skins/photo_theme/logout.py +++ /dev/null @@ -1,17 +0,0 @@ -## Script (Python) "logout" -##title=Logout handler -##parameters=ajax='' -from Products.CMFCore.utils import getToolByName -from Products.CMFDefault.utils import translate -def _(msg) : return translate(msg, context) -utool = getToolByName(context, 'portal_url') -REQUEST = context.REQUEST -if REQUEST.has_key('portal_skin'): - context.portal_skins.clearSkinCookie() -REQUEST.RESPONSE.expireCookie('__ac', path='/') -session = REQUEST.SESSION -for k in session.keys() : - del session[k] -context.setStatus(True, _('You have been logged out.')) -portal = utool.getPortalObject() -return context.setRedirect(portal, 'object/view') \ No newline at end of file