[CMF-checkins] CVS: CMF - clearCookie.py:1.1 folder_contents.dtml:1.9 clearCookie.dtml:NONE
andrew@digicool.com
andrew@digicool.com
Fri, 29 Jun 2001 15:23:44 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault/skins/generic
In directory korak.digicool.com:/tmp/cvs-serv27918/generic
Modified Files:
folder_contents.dtml
Added Files:
clearCookie.py
Removed Files:
clearCookie.dtml
Log Message:
*python script conversion.
--- Added File clearCookie.py in package CMF ---
## Script (Python) "clearCookie.py $Revision: 1.1 $"
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=clear browser cookie
##
REQUEST=context.REQUEST
REQUEST.RESPONSE.expireCookie('folderfilter', path='/')
REQUEST.RESPONSE.redirect( context.absolute_url() + '/folder_contents?portal_status_message=Filter+cleared.')
--- Updated File folder_contents.dtml in package CMF --
--- folder_contents.dtml 2001/06/19 19:14:56 1.8
+++ folder_contents.dtml 2001/06/29 19:23:43 1.9
@@ -3,7 +3,7 @@
</dtml-comment>
<dtml-if expr="REQUEST.get('clear_view_filter', 0)">
- <dtml-call expr="RESPONSE.expireCookie('folderfilter', path='/')">
+ <dtml-call clearCookie>
<dtml-call expr="REQUEST.set('folderfilter', '')">
<dtml-call expr="REQUEST.set('close_filter_form', '1')">
<dtml-elif expr="REQUEST.get('set_view_filter', 0)">
--- Removed file clearCookie.dtml from package CMF --