Changeset 1698


Ignore:
Timestamp:
05/04/07 11:12:47 (12 years ago)
Author:
pjotr
Message:

Default view for trash folder and a method for getting content of trash folder from catalog

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LargeSectionFolder.py

    r1691 r1698  
    10411041    allowed_content_types = ALL_CONTENT_TYPES 
    10421042    filter_content_types = False 
     1043    default_view = ('lemill_trash_view') 
    10431044    security = ClassSecurityInfo() 
     1045 
     1046    def getTrashFolderContents(self): 
     1047        """ Get contents for trash folder """ 
     1048        catalog = getToolByName(self, 'portal_catalog') 
     1049        results = catalog.searchResults(path = {'query' : '/'.join(self.getPhysicalPath()), 
     1050                                                'depth' : 1 }, 
     1051                                        sort_on = 'getObjPositionInParent', 
     1052                                        ) 
     1053        return results 
    10441054 
    10451055         
Note: See TracChangeset for help on using the changeset viewer.