2013-04-23 22 views
1

当我尝试对我的敏捷内容类型(名为profilmembre)使用collective.geo.behavior时,出现了一个奇怪的问题。我使用文件系统的方式来创建内容类型(而不是TTW)。使用collective.geo.behaviour和灵活性会导致站点故障

没有collective.geo.behavior我可以在Plone网站的根目录或任何文件夹子目录下创建profilmembre。那就对了。

随着collective.geo.behavior行为我可以创建Plone站点的根目录里面profilmembre但如果创建此内容类型的经典文件夹我的Plone站点开车撞(浏览器)内:

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.)

这消息不会出现仅用于内容视图,但对于整个站点(已损坏)

要恢复,我需要在portal_catalog中进行“清除并重建”。允许我看到memberprofil和文件夹的内容,而我(在GitHub上谟:https://github.com/tristanlt/iuem.cargo)创建memberprofil再次

下面是内容创建后的调试跟踪:

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. 

非常感谢你。

回答

1

我觉得这个承诺解决您的问题:

使用敏捷,GeoreferencingAnnotator的背景下被收购包裹。 现在我用Acquisition.aq_base

+0

打开上下文是的,没事!谢谢。 – TristanLT 2013-04-25 09:49:52

+1

我已经恢复了这个提交,因为它引发了c.geo.contentlocations的一些错误。修复已移到c.geo.behavior - https://github.com/collective/collective.geo.behaviour/commit/e25ef7085f173c9c9f6607ca7a5a3984f990c94d – gborelli 2013-05-05 21:52:52