Skip to content

A <records /> node must have an 'interface' attribute. #80

@1letter

Description

@1letter

What i have installed:

  • Plone 5.1.14
  • plone.app.mosaic Stack 2.1.1 include
  • plone.app.blocks 4.1.1

What i do:

  1. Export the XML Snippet in Configuration Registry for "plone.defaultSiteLayout"
<?xml version='1.0' encoding='UTF-8'?>
<registry>
  <records prefix="plone.defaultSiteLayout">
    <value>++sitelayout++mytheme/singlepage.html</value>
  </records>
</registry>
  1. add this XML Snippet to my AddOn registry.xml File in an Upgrade Step
  2. run my Upgrade Step

Traceback:

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.GenericSetup.tool, line 1089, in manage_doUpgrades
  Module Products.GenericSetup.upgrade, line 166, in doStep
  Module mytheme.singlepage.upgrades, line 54, in setup_site_props
  Module Products.GenericSetup.tool, line 358, in runImportStepFromProfile
  Module Products.GenericSetup.tool, line 1281, in _doRunImportStep
   - __traceback_info__: plone.app.registry
  Module plone.app.registry.exportimport.handler, line 79, in importRegistry
   - __traceback_info__: registry/mosaic.xml
  Module plone.app.registry.exportimport.handler, line 127, in importDocument
  Module plone.app.registry.exportimport.handler, line 343, in importRecords
KeyError: u"A <records /> node must have an 'interface' attribute."

Question: What is the right Interface ?

The Definition via XML should be:

<?xml version='1.0' encoding='UTF-8'?>
<registry>
  <records prefix="plone.defaultSiteLayout" interface="....????...">
    <value>++sitelayout++mytheme/singlepage.html</value>
  </records>
</registry>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions