[Zope-CMF] can not add new CMF-type

Robert Rottermann robert@redcor.ch
Sun, 29 Jul 2001 09:24:14 +0200


Thanks for your tip,

I see that the list is filtered. However I do not find the piece of code
where that list is built.

When I look at the html code that is sent to the browser I find
"folder_factories" as the method that is called.
But alas, searching all files does not reveal such a method.

Robert

----- Original Message -----
From: "seb bacon" <seb@jamkit.com>
To: "Robert Rottermann" <robert@redcor.ch>
Sent: Saturday, July 28, 2001 9:29 PM
Subject: Re: [Zope-CMF] can not add new CMF-type


> This can be hard to debug.  The list is filtered by the
> allowedContentTypes method in PortalFolder, which lists products,
> checks they're permitted by the 'filter content types' Type attribute,
> and tries to work out the permission on the factory method of the
> Type.  First you should check the 'filter content types' stuff in the
> TypesTool.  Then it could be one of a number of problems with the
> TypeInformation, such as the wrong product name, the wrong factory
> name, etc.  However, because you can add something through the ZMI,
> this is unlikely.
>
> Anyway, hope that helps a bit.
>
> seb
>
> * Robert Rottermann <robert@redcor.ch> [010728 19:17]:
> > Hi there,
> >
> > I created a new portal type based on portal folder.
> >
> > Now I can add it to a site while in the ZMI. However when I am in
"Folder
> > contents" in that same site I can not add it because it does not show up
in
> > the list of objects.
> > I spent some time looking where and how that list of types is created
but it
> > is still a mystery to me.
> >
> > My questions:
> >  Where is the selection of portal_types created that is presented when
> > adding a new element .
> >  What can prevent a portal_type to be included.
> >
> > Thanks for your time and have a nice weekend
> >
> > Robert
>