[Zope-CMF] can not add new CMF-type
Robert Rottermann
robert@redcor.ch
Sun, 29 Jul 2001 12:58:22 +0200
Thanks,
sometimes one just does not see the trees looking at all that wood..
Robert
PS:
don't forget
its Sunday, the sun is shining..
Just perfect to go and have a swim
It is what I am goanna do now
(in the Aare which happens to be the river flowing trough Bern)
----- Original Message -----
From: "seb bacon" <seb@jamkit.com>
To: "Robert Rottermann" <robert@redcor.ch>
Sent: Sunday, July 29, 2001 12:23 PM
Subject: Re: [Zope-CMF] can not add new CMF-type
> > I see that the list is filtered. However I do not find the piece of code
> > where that list is built.
>
> From CMFDefault/skins/generic/folder_factories.dtml:
>
> <dtml-in allowedContentTypes>
>
> ... radio buttons, titles, descriptions ...
>
> </dtml-in>
>
> From CMFDefault/PortalFolder.py:
>
> security.declarePublic('allowedContentTypes')
> def allowedContentTypes( self ):
> """
> List type info objects for types which can be added in
> this folder.
> """
>
> hth,
>
> seb
>
> > > 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]:
> > > > 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.
>