Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: CMF

Catalog aware folders

 

 

Zope cmf RSS feed   Index | Next | Previous | View Threaded


charlie at begeistert

Jun 30, 2008, 2:42 AM

Post #1 of 2 (804 views)
Permalink
Catalog aware folders

Hi,

just noticed something a bit weird: got my own Folderish object that a
minimally customised PortalFolder but it's important that it's in the
catalog. Although PortalFolderBase already inherits from
CMFCatalogAware I've had to explicitly inherit again from
CMFCatalogAware in my class.

ie. I have the following hierarchy.


class PortalFolderBase(DynamicType, CMFCatalogAware, Folder):

"""Base class for portal folder.
"""

class PortalFolder(OrderSupport, PortalFolderBase):

"""Implements portal content management, but not UI details.
"""

class CatalogFolder(CMFCatalogAware, PortalFolder):

"""Folder that will appear in the catalog"""

I've just checked some of my other sites and folders are not
catalogued. Is this a bug?

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226



_______________________________________________
Zope-CMF maillist - Zope-CMF [at] lists
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


y.2008 at wcm-solutions

Jun 30, 2008, 3:44 AM

Post #2 of 2 (749 views)
Permalink
Re: Catalog aware folders [In reply to]

Hi!


Charlie Clark wrote:
> just noticed something a bit weird: got my own Folderish object that a
> minimally customised PortalFolder but it's important that it's in the
> catalog. Although PortalFolderBase already inherits from CMFCatalogAware
> I've had to explicitly inherit again from CMFCatalogAware in my class.

Yes. The class hierarchy is wired. I'm not sure if it is still necessary
to inherit PortalFolderBase from CMFCatalogAware.

> class PortalFolderBase(DynamicType, CMFCatalogAware, Folder):
>
> """Base class for portal folder.
> """
>
> class PortalFolder(OrderSupport, PortalFolderBase):
>
> """Implements portal content management, but not UI details.
> """
>
> class CatalogFolder(CMFCatalogAware, PortalFolder):
>
> """Folder that will appear in the catalog"""
>
> I've just checked some of my other sites and folders are not catalogued.
> Is this a bug?

No. By default folders are not content, just structure. SkinnedFolder
does what you want. If you use CMF trunk, your code will not be
sufficient. handleContentishEvent is registered for IContentish objects,
not for default folders.


Cheers,

Yuppie

_______________________________________________
Zope-CMF maillist - Zope-CMF [at] lists
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Zope cmf RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.