Question

I have a strange problem when I attempt to use collective.geo.behavior with my dexterity content type (named profilmembre). I used the filesystem way to create content type (not TTW).

Without collective.geo.behavior I can create profilmembre inside Plone site's root or as any folder child. That's right.

With collective.geo.behavior behaviour I can create profilmembre inside Plone site's root but if create this content-type inside a classic Folder my plone site crashed with (in browser):

ValueError('No object with id "" exists.',) (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: No object with id "" exists.)

This message doesn't appear only for content view but for entire site (which is broken)

To restore, I need making "Clear and rebuild" in portal_catalog. Permitting me seeing memberprofil and folder content while I created memberprofil once again

(projet on github : https://github.com/tristanlt/iuem.cargo )

Here is the debug trace after content creation :

  Module zope.contentprovider.tales, line 77, in __call__
  Module zope.viewlet.manager, line 112, in update
  Module zope.viewlet.manager, line 118, in _updateViewlets
  Module plone.app.layout.viewlets.common, line 187, in update
  Module Products.CMFPlone.browser.navigation, line 183, in topLevelTabs
  Module Products.CMFPlone.CatalogTool, line 428, in searchResults
  Module Products.ZCatalog.ZCatalog, line 604, in searchResults
  Module Products.ZCatalog.Catalog, line 907, in searchResults
  Module Products.ZCatalog.Catalog, line 656, in search
  Module Products.ZCatalog.Catalog, line 676, in sortResults
  Module plone.app.folder.nogopip, line 104, in documentToKeyMap
  Module plone.folder.ordered, line 102, in getObjectPosition
  Module plone.folder.default, line 128, in getObjectPosition
ValueError: No object with id "" exists.

Thank you very much.

Was it helpful?

Solution

I think this commit fix your problem:

Using Dexterity, the context of GeoreferencingAnnotator was wrapped by Acquisition. Now I have unwrapped the context with Acquisition.aq_base

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top