2013-04-23 21 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