Migration plone 5中plone灵巧性内容类型的内容迁移

Migration plone 5中plone灵巧性内容类型的内容迁移,migration,plone,plone-5.x,Migration,Plone,Plone 5.x,我在Employee.xml中有一个定义为model的灵巧内容类型 <model xmlns="http://namespaces.plone.org/supermodel/schema" xmlns:marshal="http://namespaces.plone.org/supermodel/marshal" xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="plone"> <s

我在Employee.xml中有一个定义为model的灵巧内容类型

<model xmlns="http://namespaces.plone.org/supermodel/schema"
   xmlns:marshal="http://namespaces.plone.org/supermodel/marshal"
   xmlns:i18n="http://xml.zope.org/namespaces/i18n"
   i18n:domain="plone">
  <schema>
    <field name="fullname" type="zope.schema.TextLine">
      <description />
      <required>True</required>
      <title>Firstname and Surname</title>
    </field>
    <field name="position" type="zope.schema.TextLine">
      <description />
      <required>True</required>
      <title>Position</title>
    </field>
  </schema>
</model>
我的数据库中有一些Employee的实例

现在我想给我的内容类型添加一个新功能

class Employee(Item):
    """Convenience subclass for ``Employee`` portal type
    """

    def Title(self):
        return self.fullname
现在我可以在文件夹内容视图中看到员工的全名。但它仅适用于修改后添加的实例。“旧”内容似乎需要迁移。 我的问题是:如何?
这些文件没有帮助。()

旧实例尚未重新编制索引,因此基于目录的所有内容(集合、导航、搜索、文件夹内容等)都无法识别其新的标题属性


只需重新索引您的门户目录即可。

您在我们论坛上发布的问题将获得更多视图。。。
class Employee(Item):
    """Convenience subclass for ``Employee`` portal type
    """

    def Title(self):
        return self.fullname