Git Product home page Git Product logo

Comments (4)

pbauer avatar pbauer commented on September 24, 2024 1

That sentence may be confusing. It means that you do not have to install it in the Add-on controlpanel (https://demo.plone.org/prefs_install_products_form) to be able to use the forms @@export_content and @@import_content in your site.
You still have to to add it to you buildout configuration and run buildout to make these features available at all. See https://docs.plone.org/manage/installing/installing_addons.html for details.

from collective.exportimport.

fredvd avatar fredvd commented on September 24, 2024 1

Hi @TechnologyClassroom ,

This is one of the layer issues I tried to address in my '7 things that might surprise you...' from thursday. The relevant slide:

IMG_0478

As Philip explains there are multiple cases of installing. The collective.exportimport add'on needs to be available on the sys.path of they Python interpreter process when it starts up. This is typically done by buildout at the moment (in the near future possible pip) which downloads the add'on from pypi, installs it in a subdirectory and adds the path to the sys.path (PYTHON_PATH) in bin/instance. And also the configure.zcml is registered in another directory.

Then when Python starts up, ZCA is activated and the views (@@export_content / @@imnport_content) are registered on the Plone Site Root object.

The install that is NOT happening is the installation in the add'on controls panel, behind the scenes the GenericSetup step. This step would modify required persistent 'configuration objects' in the ZODB for other functionality that is in Plone, but which this add'on doesn't need (registering content types for example, it modifies the portal_types object, in the Plone Site Root). You can only see this tool if you go to the ZMI.

That's why this add'on is 'non invasive' and without install risk. If you remove it from your buildout config and rerun bin/buildout, or it is gone from the PYTHON_PATH / bin/instance by some other scaffolding tool , nothing will break your site, as nothing else in the zodb/object tree is referencing any code in the add'on on filesystem Only the 2 views are necessary.

You see this a lot with other 'admin category' tools as well.

Hope this helps. I'm actually interested if showing you these layers makes things 'click' for you on what actually is happening during startup/install.

from collective.exportimport.

tkimnguyen avatar tkimnguyen commented on September 24, 2024 1

I think we should update the docs to clarify what @TechnologyClassroom found confusing

from collective.exportimport.

TechnologyClassroom avatar TechnologyClassroom commented on September 24, 2024

@pbauer @fredvd, thank you for clarifying! Thank you both for the migration talks as well! The 7 things talk was very good. If it was cleaned up into documentation format, I believe it would help newcomers understand the big picture of how Plone works and become a great resource.

@tkimnguyen, that documentation change makes sense. Thank you!

from collective.exportimport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.