[CMF-checkins] CVS: CMF - clearCookie.dtml:1.1.10.1 folder_contents.dtml:1.7.4.1

tseaver@digicool.com tseaver@digicool.com
Tue, 19 Jun 2001 15:05:31 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault/skins/generic
In directory korak.digicool.com:/tmp/cvs-serv18095/CMFDefault/skins/generic

Modified Files:
      Tag: listfoldercontents-branch
	clearCookie.dtml folder_contents.dtml 
Log Message:


 - Implement new "List folder contents" permission (Tracker #320).



--- Updated File clearCookie.dtml in package CMF --
--- clearCookie.dtml	2001/02/23 14:24:09	1.1
+++ clearCookie.dtml	2001/06/19 19:05:30	1.1.10.1
@@ -1,2 +1,5 @@
-<dtml-call "RESPONSE.expireCookie('folderfilter', path='/')">
-<dtml-call "RESPONSE.redirect(absolute_url() + '/folder_contents')">
+<dtml-call expr="RESPONSE.expireCookie('folderfilter', path='/')">
+<dtml-call expr="RESPONSE.redirect( absolute_url()
+                                  + '/folder_contents'
+                                  + '?portal_status_message=Filter+cleared.'
+                                  )">

--- Updated File folder_contents.dtml in package CMF --
--- folder_contents.dtml	2001/06/11 20:54:42	1.7
+++ folder_contents.dtml	2001/06/19 19:05:30	1.7.4.1
@@ -21,7 +21,7 @@
 <dtml-call "REQUEST.set('isDesktop', 1)">
 <dtml-var standard_html_header>
 
-<dtml-if "not portal_membership.checkPermission('Access contents information'
+<dtml-if "not portal_membership.checkPermission('List folder contents'
                                                , this())">
  <dtml-call "RESPONSE.redirect(absolute_url())">
 </dtml-if>
@@ -36,7 +36,7 @@
   <tr>
    <td valign="top">
     <table class="ContentsList">
-     <dtml-if "portal_membership.checkPermission( 'Access contents information'
+     <dtml-if "portal_membership.checkPermission( 'List folder contents'
                                                 , this(), 'aq_parent')">
       <dtml-let upNav="_.hasattr(this().aq_parent, 'portal_url')"
                 upID="this().aq_parent.getId()"
@@ -62,8 +62,10 @@
      </dtml-if>
 
 
-<dtml-in expr="contentValues(filter=decodeFolderFilter(
-         REQUEST.get('folderfilter', '')))"
+<dtml-let filterString="REQUEST.get( 'folderfilter', '' )"
+          filter="decodeFolderFilter( filterString )"
+>
+<dtml-in expr="listFolderContents( filter=filter )"
          sort="getId" size="19" start=qs skip_unauthorized>
  <dtml-if next-sequence>
   <dtml-call "REQUEST.set('next-sequence'
@@ -117,6 +119,7 @@
   </dtml-if>
  </dtml-let>
 </dtml-in>
+</dtml-let>
     </table>
    </td>
   </tr>