1

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.

4

1 回答 1

1

我认为这个提交解决了你的问题:

使用 Dexterity,GeoreferencingAnnotator 的上下文由 Acquisition 包装。现在我已经用 Acquisition.aq_base 展开了上下文

于 2013-04-24T16:12:52.050 回答