From ad48e0202f6778cc50303b9e6a3c1f7679eb24f0 Mon Sep 17 00:00:00 2001 From: Oshane Bailey Date: Thu, 17 Aug 2017 12:45:57 -0500 Subject: [PATCH] Added upgrade step to add JS Shortcut and JQTree to the resource registry for Plone 5.0 --- .gitignore | 1 + CHANGES.rst | 5 +++++ plone/app/upgrade/v50/configure.zcml | 4 ++-- plone/app/upgrade/v50/final.py | 5 +++++ plone/app/upgrade/v50/profiles.zcml | 9 +++++++++ plone/app/upgrade/v50/profiles/to_509/registry.xml | 13 +++++++++++++ 6 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 plone/app/upgrade/v50/profiles/to_509/registry.xml diff --git a/.gitignore b/.gitignore index 86621e44..5a3e3237 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.pyc *.pyo *.mo +*.orig diff --git a/CHANGES.rst b/CHANGES.rst index ebbd69a3..1546c394 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,6 +12,11 @@ New features: - *add item here* +- Add an upgrade step for Products.CMFPlone version 5020 + - add jqtree-contextmenu to the resource registry + - add js-shortcuts to the resource registry + [b4oshany] + Bug fixes: - *add item here* diff --git a/plone/app/upgrade/v50/configure.zcml b/plone/app/upgrade/v50/configure.zcml index 4ffc78a9..37fde6a2 100644 --- a/plone/app/upgrade/v50/configure.zcml +++ b/plone/app/upgrade/v50/configure.zcml @@ -376,9 +376,9 @@ profile="Products.CMFPlone:plone"> diff --git a/plone/app/upgrade/v50/final.py b/plone/app/upgrade/v50/final.py index 0f4b44a3..0b3c3e63 100644 --- a/plone/app/upgrade/v50/final.py +++ b/plone/app/upgrade/v50/final.py @@ -104,6 +104,11 @@ def to507(context): loadMigrationProfile(context, 'profile-plone.app.upgrade.v50:to507') +def to509(context): + """5.0.8 -> 5.0.9""" + loadMigrationProfile(context, 'profile-plone.app.upgrade.v50:to509') + + def fix_double_smaxage(context): """Fix caching definition. diff --git a/plone/app/upgrade/v50/profiles.zcml b/plone/app/upgrade/v50/profiles.zcml index c45f02c4..51e294ba 100644 --- a/plone/app/upgrade/v50/profiles.zcml +++ b/plone/app/upgrade/v50/profiles.zcml @@ -129,4 +129,13 @@ provides="Products.GenericSetup.interfaces.EXTENSION" /> + + diff --git a/plone/app/upgrade/v50/profiles/to_509/registry.xml b/plone/app/upgrade/v50/profiles/to_509/registry.xml new file mode 100644 index 00000000..f8f18bd5 --- /dev/null +++ b/plone/app/upgrade/v50/profiles/to_509/registry.xml @@ -0,0 +1,13 @@ + + + + ++plone++static/components/cs-jqtree-contextmenu/src/jqTreeContextMenu.js + jqtree + + + ++plone++static/components/js-shortcuts/js-shortcuts.js + jquery + +