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

Mailing List Archive: Zope: CMF

[CMF 2.1] Opaque items

 

 

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


lists at zopyx

Jun 28, 2009, 11:40 PM

Post #1 of 4 (497 views)
Permalink
[CMF 2.1] Opaque items

Hi there,

I am currently migrating our CMS from CMF 1.X to CMF 2.1.

The following error is raised because the original content classes
are not derived from CMFCatalogAware.

# Module Products.HaufeCMS.DataLevel.Folder, line 170, in addDocument
# Module Products.BTreeFolder2.BTreeFolder2, line 428, in _setObject
# Module zope.event, line 23, in notify
# Module zope.component.event, line 26, in dispatch
# Module zope.component._api, line 130, in subscribers
# Module zope.component.registry, line 290, in subscribers
# Module zope.interface.adapter, line 535, in subscribers
# Module zope.component.event, line 33, in objectEventNotify
# Module zope.component._api, line 130, in subscribers
# Module zope.component.registry, line 290, in subscribers
# Module zope.interface.adapter, line 535, in subscribers
# Module Products.CMFCore.CMFCatalogAware, line 280, in dispatchToOpaqueItems
# Module Products.HaufeCMS.DataLevel.Component.Component, line 829, in
__getattr__
# Module Products.HaufeCMS.DataLevel.MetaData, line 116, in __getattr__

Is it now a requirement in CMF 2.x to derive from CMFCatalogAware or would it be sufficient to implement the opaqueXXX() methods on our own?

Andreas
Attachments: lists.vcf (0.31 KB)


davidglick at onenw

Jun 28, 2009, 11:43 PM

Post #2 of 4 (464 views)
Permalink
Re: [CMF 2.1] Opaque items [In reply to]

On Jun 28, 2009, at 11:40 PM, Andreas Jung wrote:
>
> Hi there,
>
> I am currently migrating our CMS from CMF 1.X to CMF 2.1.
>
> The following error is raised because the original content classes
> are not derived from CMFCatalogAware.
>
> # Module Products.HaufeCMS.DataLevel.Folder, line 170, in addDocument
> # Module Products.BTreeFolder2.BTreeFolder2, line 428, in _setObject
> # Module zope.event, line 23, in notify
> # Module zope.component.event, line 26, in dispatch
> # Module zope.component._api, line 130, in subscribers
> # Module zope.component.registry, line 290, in subscribers
> # Module zope.interface.adapter, line 535, in subscribers
> # Module zope.component.event, line 33, in objectEventNotify
> # Module zope.component._api, line 130, in subscribers
> # Module zope.component.registry, line 290, in subscribers
> # Module zope.interface.adapter, line 535, in subscribers
> # Module Products.CMFCore.CMFCatalogAware, line 280, in
> dispatchToOpaqueItems
> # Module Products.HaufeCMS.DataLevel.Component.Component, line 829, in
> __getattr__
> # Module Products.HaufeCMS.DataLevel.MetaData, line 116, in
> __getattr__
>
> Is it now a requirement in CMF 2.x to derive from CMFCatalogAware or
> would it be sufficient to implement the opaqueXXX() methods on our
> own?



From http://dev.plone.org/old/plone/browser/plone.app.discussion/trunk/plone/app/discussion/comment.py#L83
and following lines it would appear you can do the latter.


David Glick
Web Developer
ONE/Northwest

New tools and strategies for engaging people in protecting the
environment

http://www.onenw.org
davidglick[at]onenw.org
work: (206) 286-1235 x32
mobile: (206) 679-3833

Subscribe to ONEList, our email newsletter!
Practical advice for effective online engagement
http://www.onenw.org/full_signup




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

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests


lists at zopyx

Jun 28, 2009, 11:55 PM

Post #3 of 4 (461 views)
Permalink
Re: [CMF 2.1] Opaque items [In reply to]

On 29.06.09 08:43, David Glick wrote:
>
>
>
> From
> http://dev.plone.org/old/plone/browser/plone.app.discussion/trunk/plone/app/discussion/comment.py#L83 and
> following lines it would appear you can do the latter.

Thanks - adding the related hooks returning () solves the problem. The
strange thing
in my case is that CMFCatalogAware tried to call opaqueValues() for an
instance of
a class derived from CMFSite :->

Andreas
Attachments: lists.vcf (0.31 KB)


y.2009 at wcm-solutions

Jun 29, 2009, 1:52 AM

Post #4 of 4 (459 views)
Permalink
Re: [CMF 2.1] Opaque items [In reply to]

Hi!


Andreas Jung wrote:
> I am currently migrating our CMS from CMF 1.X to CMF 2.1.
>
> The following error is raised because the original content classes
> are not derived from CMFCatalogAware.
[...]
> # Module Products.CMFCore.CMFCatalogAware, line 280, in dispatchToOpaqueItems
> # Module Products.HaufeCMS.DataLevel.Component.Component, line 829, in
> __getattr__
> # Module Products.HaufeCMS.DataLevel.MetaData, line 116, in __getattr__
>
> Is it now a requirement in CMF 2.x to derive from CMFCatalogAware or would it be sufficient to implement the opaqueXXX() methods on our own?

Please note that this is a CMF 2.1 specific issue.

CMF trunk (2.2) has a separate IOpaqueItemManager interface,
dispatchToOpaqueItems is no longer registered for IDynamicType:

http://svn.zope.org/?view=rev&rev=85187

CHANGES.txt says:
"In the long run ICatalogAware, IWorkflowAware and IOpaqueItemManager
will become deprecated. Don't expect that CMF content always implements
them."


Cheers,

Yuppie

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

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

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


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.