[CMF-checkins] CVS: Products/CMFDefault/skins/zpt_generic - breadcrumbs.py:1.5 clearCookie.py:1.2 filterCookie.py:1.2 truncID.py:1.2

Yvo Schubbe y.2004_ at wcm-solutions.de
Tue Aug 3 09:30:12 EDT 2004


Update of /cvs-repository/Products/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv4494/CMFDefault/skins/zpt_generic

Modified Files:
	breadcrumbs.py clearCookie.py filterCookie.py truncID.py 
Log Message:
- removed $Revision$
- some other cleanup


=== Products/CMFDefault/skins/zpt_generic/breadcrumbs.py 1.4 => 1.5 ===
--- Products/CMFDefault/skins/zpt_generic/breadcrumbs.py:1.4	Mon Dec  1 08:55:45 2003
+++ Products/CMFDefault/skins/zpt_generic/breadcrumbs.py	Tue Aug  3 09:30:11 2004
@@ -1,4 +1,3 @@
-## Script (Python) "breadcrumbs.py $Revision$"
 ##parameters=include_root=1
 ##title=Return breadcrumbs
 ##


=== Products/CMFDefault/skins/zpt_generic/clearCookie.py 1.1 => 1.2 ===
--- Products/CMFDefault/skins/zpt_generic/clearCookie.py:1.1	Tue Jul  6 18:04:50 2004
+++ Products/CMFDefault/skins/zpt_generic/clearCookie.py	Tue Aug  3 09:30:11 2004
@@ -1,8 +1,6 @@
-## Script (Python) "clearCookie.py $Revision$"
 ##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.')
-


=== Products/CMFDefault/skins/zpt_generic/filterCookie.py 1.1 => 1.2 ===
--- Products/CMFDefault/skins/zpt_generic/filterCookie.py:1.1	Tue Jul  6 18:04:50 2004
+++ Products/CMFDefault/skins/zpt_generic/filterCookie.py	Tue Aug  3 09:30:11 2004
@@ -1,14 +1,13 @@
-## Script (Python) "filterCookie.py $Revision$"
 ##parameters=
 ##title=Manage filter cookie
 ##
 REQUEST=context.REQUEST
 if REQUEST.get('clear_view_filter', 0):
-  context.clearCookie()
-  REQUEST.set('folderfilter', '')
-  REQUEST.set('close_filter_form', '1')
+    context.clearCookie()
+    REQUEST.set('folderfilter', '')
+    REQUEST.set('close_filter_form', '1')
 elif REQUEST.get('set_view_filter', 0):
-  filter=context.encodeFolderFilter(REQUEST)
-  REQUEST.RESPONSE.setCookie('folderfilter', filter, path='/',
-                              expires='Wed, 19 Feb 2020 14:28:00 GMT')
-  REQUEST.set('folderfilter', '%s' % filter)
+    filter=context.encodeFolderFilter(REQUEST)
+    REQUEST.RESPONSE.setCookie('folderfilter', filter, path='/',
+                               expires='Wed, 19 Feb 2020 14:28:00 GMT')
+    REQUEST.set('folderfilter', '%s' % filter)


=== Products/CMFDefault/skins/zpt_generic/truncID.py 1.1 => 1.2 ===
--- Products/CMFDefault/skins/zpt_generic/truncID.py:1.1	Tue Jul  6 18:04:50 2004
+++ Products/CMFDefault/skins/zpt_generic/truncID.py	Tue Aug  3 09:30:11 2004
@@ -1,8 +1,7 @@
-## Script (Python) "truncID.py $Revision$"
-##parameters=objID, size 
+##parameters=objID, size
 ##title=return truncated objID
 ##
 if len(objID) > size:
     return objID[:size] + '...'
 else:
-   return objID
+    return objID



More information about the CMF-checkins mailing list