-
Notifications
You must be signed in to change notification settings - Fork 17
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
Component conversation_view not available when executing view export_content() from the Plone CLI #92
Comments
Related: #93 |
Aha:
All of my content objects raise What gives? Is my |
The snippet of code in
Why is the conversation view not registered for my Dexterity content? This happens for all my sites, even freshly-created ones. I have to conclude there is something about running from the Plone debug CLI that causes this. How can I trace the situation to the problem? Thanks in advance. |
By the way, the export from CLI problem happens in both Plone 5.x and Plone 6. |
Note that I have verified that the |
OK. Using the CLI:
Using the Web UI:
The differences are stark in what interfaces are provided by the object when requested via the CLI, vs. when requested via the Web UI. Why!? |
Uh there's also no difference what request I use (tried both Is there some special initialization I need to be doing right before I call the |
Could it be that the call to |
Updated gist of code: https://gist.github.com/Rudd-O/4e657a90b8bc405de08d143221cee5ac (the part where "content" is skipped should be removed). To be run using |
I hae a snippet of code that is supposed to export (and it works with all exports other than content), but when I try it with content export, I get a zero-bytes JSON file. This snippet of code runs as an entry point of my
bin/client
program.Does anyone know what the problem with the export is?
Code: https://gist.github.com/Rudd-O/f46154c80eb9937ec387e2b460ebbe8b
EDIT:
Ultimately the goal is to be able to command an export of everything via the Plone CLI (
bin/client -c export.py
), primarily for (but not limited to) migration automation and testing. All other exports work correctly using this code — only the content one does not.The text was updated successfully, but these errors were encountered: