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

Include more migrations in default content migration #73

Open
pbauer opened this issue Nov 30, 2021 · 2 comments
Open

Include more migrations in default content migration #73

pbauer opened this issue Nov 30, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@pbauer
Copy link
Member

pbauer commented Nov 30, 2021

Some export/imports that do not rely on other content (that might not yet exists at the time of importing) could be included in the default export/import of content. One example is constrains which is implemented like that in #71

Other options are:

  • local roles
  • discussions/comments
  • portlets - I think portlets are safe to include because they can't hold relations or binary data, right?

We could add hooks like item = self.export_constrain(item, obj) and self.import_constrain(obj, item) for each to make it easy to override. We could also add checkboxes so enable/disable these extra-steps during export.

In client projects I also export/import some marker-interfaces and annotations but I don't think that could be generalized.
It would probably be enough to add some more dokumentation with simple examples how that do that.

@pbauer pbauer added the enhancement New feature or request label Dec 2, 2021
@mauritsvanrees
Copy link
Member

Portlets can contain relations, for example the Collection portlet points to a Collection. I guess this is with a relation.

@pbauer
Copy link
Member Author

pbauer commented Dec 6, 2021

No, it only stores a uuid:

    widget(
        'uid',
        RelatedItemsFieldWidget,
        pattern_options={
            'selectableTypes': ['Collection']
        }
    )
    uid = schema.Choice(
        title=_(u"Target collection"),
        description=_(u"Find the collection which provides the items to list"),
        required=True,
        vocabulary='plone.app.vocabularies.Catalog',
    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants