Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WrongContainedType in registry while upgrading from Plone 4 to 5 #102

Open
agitator opened this issue Oct 27, 2017 · 0 comments
Open

WrongContainedType in registry while upgrading from Plone 4 to 5 #102

agitator opened this issue Oct 27, 2017 · 0 comments
Labels

Comments

@agitator
Copy link
Member

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.GenericSetup.tool, line 579, in manage_importAllSteps
  Module Products.GenericSetup.tool, line 388, in runAllImportStepsFromProfile
   - __traceback_info__: profile-bda.plone.shop:default
  Module Products.GenericSetup.tool, line 1433, in _runImportStepsFromContext
  Module Products.GenericSetup.tool, line 1245, in _doRunImportStep
   - __traceback_info__: plone.app.registry
  Module plone.app.registry.exportimport.handler, line 70, in importRegistry
  Module plone.app.registry.exportimport.handler, line 125, in importDocument
  Module plone.app.registry.exportimport.handler, line 412, in importRecords
   - __traceback_info__: records name: bda.plone.shop.interfaces.IShopShippingSettings
  Module plone.app.registry.exportimport.handler, line 329, in importRecord
   - __traceback_info__: record name: bda.plone.shop.interfaces.IShopShippingSettings.available_shipping_methods
  Module plone.registry.record, line 82, in _set_value
  Module zope.schema._bootstrapfields, line 183, in validate
  Module zope.schema._field, line 527, in _validate
WrongContainedType: ([WrongType(u'default_shipping', <type 'str'>, ''), WrongType(u'cash_and_carry', <type 'str'>, '')], 'value')

Removing purge="false" or setting it to true did work as workaround
https://github.com/bluedynamics/bda.plone.shop/blob/master/src/bda/plone/shop/profiles/base/registry.xml#L39
also in https://github.com/bluedynamics/bda.plone.shop/blob/master/src/bda/plone/shop/profiles/base/registry.xml#L74

@agitator agitator added the bug label Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant