[Zope-CMF] How to list objects of custom type and not of their base type?
Florent Guillaume
fg@nuxeo.com
Fri, 7 Jun 2002 15:43:00 +0000 (UTC)
I believe it's a bug, see if http://www.zope.org/Products/PTK/Tracker/483/1
matches your problem.
In my sites I use a customized folder listing because of this, one that
doesn't call listFolderContents. With your example I'd call
objectValues('Document') and then filter by hand on portal_type.
(BTW you say content_meta_type but the attribute you want is really
portal_type. content_meta_type is an attribute of the portal type itself.)
Florent
David (Hamish) Harvey <david.harvey@bristol.ac.uk> wrote:
> I'm having trouble getting objects of a custom type to show up in folder
> listings - it goes as follows:
>
> 1) I created a new factory based type info, from Document, changing only
> the meta type. Lets call it "Fred".
> 2) I removed View permission from "Document" for everyone except Manager
> (that's me) in order to stop members from being able to add Documents.
> 3) I left View permission for Members on the new type info ("Fred") object.
>
> With these settings, it seems that nothing with the meta_type (as distinct,
> I believe, from content_meta_type) Document will show in folder listings.
> People are allowed to create objects of type "Fred", but not see them in
> listings.
>
> Is there any way round this? How can I get objects of type
> content_meta_type "Fred" but not of content_meta_type "Document" to show
> up, where both have meta_type "Document"?
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com