Bda.plone.shop development focus/direction?

add to https://github.com/bluedynamics/bda.plone.shipping to your checkouts and import the Uninstall bda.plone.shipping from your management view at /managein portal_setup -> Import. This will remove the deprecated IShippingExtensionLayer.

Hi Peter

in folder zinstance/src/bda.plone.shop/devsrc
I run
git clone https://github.com/bluedynamics/bda.plone.shipping.git

and then back to zinstance folder
vi buildout.cfg

add bda.plone.shipping to eggs list
add src/bda.plone.shop/devsrc/bda.plone.shipping to develop list
run bin/buildout

in front page, site setup/add-ons
install bda.plone.shipping(uninstall)

in portal_setup/manage_fullImport
select bda.plone.shipping(uninstall) click import all steps button

back to site setup/add-ons
install upgrade policyGS profile to 3
also failed:

We’re sorry, but there seems to be an error…

Here is the full error message:

Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 162, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 359, in publish_module
  Module ZPublisher.WSGIPublisher, line 262, in publish
  Module ZPublisher.mapply, line 85, in mapply
  Module ZPublisher.WSGIPublisher, line 63, in call_object
  Module Products.CMFPlone.controlpanel.browser.quickinstaller, line 689, in __call__
  Module Products.CMFPlone.controlpanel.browser.quickinstaller, line 454, in install_product
  Module Products.GenericSetup.tool, line 396, in runAllImportStepsFromProfile
   - __traceback_info__: profile-bda.plone.shop.upgrades:2_to_3
  Module Products.GenericSetup.tool, line 1468, in _runImportStepsFromContext
  Module Products.GenericSetup.tool, line 1280, in _doRunImportStep
   - __traceback_info__: plone.app.registry
  Module plone.app.registry.exportimport.handler, line 79, in importRegistry
   - __traceback_info__: registry.xml
  Module plone.app.registry.exportimport.handler, line 127, in importDocument
  Module plone.app.registry.exportimport.handler, line 414, in importRecords
   - __traceback_info__: records name: bda.plone.shop.interfaces.IShopShippingSettings
  Module plone.app.registry.exportimport.handler, line 273, in importRecord
   - __traceback_info__: record name: bda.plone.shop.interfaces.IShopShippingSettings.include_shipping_costs
ValueError: Cannot find a field for the record bda.plone.shop.interfaces.IShopShippingSettings.include_shipping_costs. Add a <field /> element or reference an interface and field name.

Peter Holzer via Plone Community <community@plone.org> 于2020年10月20日周二 下午2:09写道:

You have to add it to the checkouts of buildout as @espenmn described.
Shouldn't matter if in addons or portal_setup.
It could be that you have to install bda.plone.shipping first, run the upgrade and then uninstall...

@kyholdings Things are going to be more complex using code-sources instead of packages from PyPI. I think your main problem is missing understanding how zc.buildout and it's extension mr.developer are working.

mr.developer is used to do both, cloning the needed resources from Github and registering them as development-egg in the buildout (named development because the are editable if this is needed.

I would recommend investing some minutes to learn about both. A good resource is in out training pages at https://training.plone.org/5/mastering-plone/buildout_1.html
If there are any questions left do not hesitate to ask here!