-
Notifications
You must be signed in to change notification settings - Fork 7
Repository-Manager: Replace __init__.py by YAML #423
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
Conversation
drfho
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, thus manually much better editable. The quotation-marks around the values seem to arbitray; maybe can be ommited generally.
Just "default" is critical: here the block-scalar | might appropriate for the formerly non-editable multiline codes, e.g.
type: interface
default: |
##
return context.getTextFormatDefault()eae18f6 to
ad9b31d
Compare
7ff1dbf to
9f8391c
Compare
…/ZMS into fb_conf_init_yaml
|
@zmsdev
manage_tab_statistics:
action: %smanage_executeMetacmd?id=manage_tab_statistics
icon_clazz: icon-cogs fas fa-chart-bar
id: manage_tab_statistics
meta_types:
- ZMS
name: Statistics
nodes: {$}
revision: 5.2.0
roles:
- ZMSAdministrator
stereotype: tab
title: Content object usage statistics
Impl:
- id: manage_tab_statistics
type: Page Template |
|
@zmsdev : getInitYaml can create invalid yaml
I tried to add a workaround for fixing the ZMS creates yaml |
|
@zmsdev ZMS/Products/zms/repositoryutil.py Lines 403 to 435 in 11a895d
called ZMS/Products/zms/repositoryutil.py Lines 438 to 480 in 11a895d
To make the alternative function ZMS/Products/zms/repositoryutil.py Line 270 in 11a895d
What YAML-Lib: As YAML-lib not PYYAML but ruamel.yaml is applied, because PYYAML seems to force element sorting of the source-dict. In genereal: when the output is a normalized YAML it is easier to transform it back to a dict just by ZMS/Products/zms/repositoryutil.py Lines 119 to 120 in 11a895d
Any workaround for 'special' YAML dialects are not needed anymore: ZMS/Products/zms/repositoryutil.py Lines 91 to 95 in 11a895d
Example:
B. ZMSFlexbox (wrong list-block processing with str_yaml() )
|
26b78f9 to
14b383f
Compare
|
Use PyYAML consequently on reduced repo-dict |




Uh oh!
There was an error while loading. Please reload this page.