Commit 8b8552b5 authored by Jérome Perrin's avatar Jérome Perrin

use types tool API.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35148 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 638ee29e
......@@ -1425,7 +1425,7 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn,
def contentValues(self, *args, **kw):
# Returns a list of documents contained in this folder.
# ( no docstring to prevent publishing )
portal_type_id_list = self._getTypesTool().objectIds()
portal_type_id_list = self._getTypesTool().listContentTypes()
filter_kw = kw.pop('filter', None) or {}
portal_type = kw.pop('portal_type', None)
if 'portal_type' in filter_kw:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment