摆脱Plone4Artists日历-从Plone3.3.5迁移到Plone4.0.7

摆脱Plone4Artists日历-从Plone3.3.5迁移到Plone4.0.7,plone,Plone,我正在尝试从Plone 3.3.5站点中删除日历,以将其升级到Plone 4.0.7 我运行了一个脚本来从所有对象中删除所有接口,特别是: 我正在使用的脚本使用zope.interfaces.noLongerProvides除去对象。首先,我进行目录搜索,找到带有接口的对象,然后再不提供(对象,接口) 完成此操作后,我可以删除所有接口,但“p4a.calendar.interfaces.IPossibleCalendar”除外。这个界面似乎适用于网站上的所有文件夹和集合,当试图删除它们时,我得到

我正在尝试从Plone 3.3.5站点中删除日历,以将其升级到Plone 4.0.7

我运行了一个脚本来从所有对象中删除所有接口,特别是:

我正在使用的脚本使用zope.interfaces.noLongerProvides除去对象。首先,我进行目录搜索,找到带有接口的对象,然后再不提供(对象,接口)

完成此操作后,我可以删除所有接口,但“p4a.calendar.interfaces.IPossibleCalendar”除外。这个界面似乎适用于网站上的所有文件夹和集合,当试图删除它们时,我得到一个例外。有人知道更多关于这个界面的信息吗?正确的方法是什么

编辑:

以下是我的脚本生成的错误消息:

Exception at removeinterfaces for interface p4a.calendar.interfaces.IPossibleCalendar 
Exception type: exceptions.ValueError 
Exception value: Can only remove directly provided interfaces. 
Exception traceback (starting next line):
File "remove-p4a.py", line 53, in removeinterfaces
  noLongerProvides(obj, interface)
File "d:\plone-3.3.5-teste-20110927\zope2\lib\python\zope\interface\declarations.py",line 969, in noLongerProvides
  raise ValueError("Can only remove directly provided interfaces.")

这些似乎是仅在启动时通过zcml应用的接口。因此,删除它们的唯一方法是从设置中删除产品

资料来源:

Exception at removeinterfaces for interface p4a.calendar.interfaces.IPossibleCalendar 
Exception type: exceptions.ValueError 
Exception value: Can only remove directly provided interfaces. 
Exception traceback (starting next line):
File "remove-p4a.py", line 53, in removeinterfaces
  noLongerProvides(obj, interface)
File "d:\plone-3.3.5-teste-20110927\zope2\lib\python\zope\interface\declarations.py",line 969, in noLongerProvides
  raise ValueError("Can only remove directly provided interfaces.")