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

list of plone_scripts to get rid of #1801

Open
4 of 13 tasks
jensens opened this issue Oct 21, 2016 · 10 comments
Open
4 of 13 tasks

list of plone_scripts to get rid of #1801

jensens opened this issue Oct 21, 2016 · 10 comments

Comments

@jensens
Copy link
Member

jensens commented Oct 21, 2016

I just checked the state of skins/plone_scripts and it looks there are some low hanging fruits around.

[Checked for Plone 6.0 on 2022-08-24]

  • browserDefault.py
    • plone/app/content/browser/reviewlist.py
    • plone/app/content/browser/templates/content_status_history.pt
    • plone/app/querystring/tests/testQueryBuilder.py
  • content_status_modify from /plone_form_scripts
  • externalEditorEnabled.py
    • Products.CMFPlone/Products/CMFPlone/profiles/default/actions.xml
    • Products.CMFPlone/Products/CMFPlone/tests/testExternalEditorEnabled.py
    • Products.CMFPlone/Products/CMFPlone/utils.py
  • external_edit.py
    • Products.CMFPlone/Products/CMFPlone/profiles/default/actions.xml
    • Products.CMFPlone/Products/CMFPlone/profiles/default/types/Discussion_Item.xml
    • Products.CMFPlone/Products/CMFPlone/skins/plone_scripts/add_ext_editor.py
    • Products.CMFPlone/Products/CMFPlone/skins/plone_scripts/external_edit.py
    • Products.CMFPlone/Products/CMFPlone/tests/testExternalEditorEnabled.py
  • folder_publish.cpy
    • plone.app.content/plone/app/content/browser/content_status_history.py
    • Products.CMFPlone/Products/CMFPlone/tests/testContentPublishing.py
  • getFolderContents.py
    • plone.app.content/plone/app/content/browser/selection.py
    • plone.app.content/plone/app/content/tests/test_actions.py
    • plone.app.contentlisting/README.rst
    • Products.CMFPlone/Products/CMFPlone/skins/plone_content/folder_listing.pt
    • Products.CMFPlone/Products/CMFPlone/tests/testNavTree.py
    • Products.CMFPlone/Products/CMFPlone/tests/testSecurity.py
  • pretty_title_or_id.py
    • various places, need detailed check
  • queryCatalog.py
  • toLocalizedTime.py
    • various places, needs detailed check
  • translate.py
    • various places, needs detailed check
  • unique.py
    difficult to grep for, needs detailed check
    tested in scripts.txt
  • utranslate.py
  • Add comment to Plone 6.1 Upgrade Guide

various places, needs detailed check

@jensens
Copy link
Member Author

jensens commented Oct 21, 2016

see also #1802

jensens added a commit that referenced this issue Mar 9, 2017
jensens added a commit that referenced this issue Mar 9, 2017
jensens added a commit that referenced this issue Aug 13, 2018
sunew added a commit to plone/plone.app.upgrade that referenced this issue Sep 6, 2018
…- plone_ecmascript skin layer. See https://github.com/plone/Products.CMFPlone/pull/1963/commits and plone/Products.CMFPlone#1811 plone/Products.CMFPlone#1801

removing records (wip)

remove jquery-highlightsearchterms from the plone-legacy bundle

c
sunew pushed a commit that referenced this issue Sep 6, 2018
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Sep 9, 2018
Branch: refs/heads/master
Date: 2018-09-06T18:21:00+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@6bab181

remove the jquery-highlightsearchterms resource, and the - now empty - plone_ecmascript skin layer. See https://github.com/plone/Products.CMFPlone/pull/1963/commits and plone/Products.CMFPlone#1811 plone/Products.CMFPlone#1801

removing records (wip)

remove jquery-highlightsearchterms from the plone-legacy bundle

c

Files changed:
A plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
M CHANGES.rst
M plone/app/upgrade/v52/alphas.py
M plone/app/upgrade/v52/profiles/to_alpha1/skins.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-06T20:23:08+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@c979968

Also remove the jquery-highlightsearchterms resource, and the plone_ecmascript skin layer for plone 5.1.4

Files changed:
A plone/app/upgrade/v51/profiles/to_514/skins.xml
M CHANGES.rst
M plone/app/upgrade/v51/configure.zcml
M plone/app/upgrade/v51/final.py
M plone/app/upgrade/v51/profiles/to_514/registry.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-08T12:26:59+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@0c1c1ee

Update the compilation date of the plone-legacy bundle, to force recompilation

Files changed:
M plone/app/upgrade/v51/profiles/to_514/registry.xml
M plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-09T08:41:13+02:00
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at>
Commit: plone/plone.app.upgrade@8d8f25d

Merge pull request #170 from plone/remove-highlightsearchterms

Remove jquery-highlightsearchterms and plone_ecmascript layer

Files changed:
A plone/app/upgrade/v51/profiles/to_514/skins.xml
A plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
M CHANGES.rst
M plone/app/upgrade/v51/configure.zcml
M plone/app/upgrade/v51/final.py
M plone/app/upgrade/v51/profiles/to_514/registry.xml
M plone/app/upgrade/v52/alphas.py
M plone/app/upgrade/v52/profiles/to_alpha1/skins.xml
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Sep 9, 2018
Branch: refs/heads/master
Date: 2018-09-06T18:21:00+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@6bab181

remove the jquery-highlightsearchterms resource, and the - now empty - plone_ecmascript skin layer. See https://github.com/plone/Products.CMFPlone/pull/1963/commits and plone/Products.CMFPlone#1811 plone/Products.CMFPlone#1801

removing records (wip)

remove jquery-highlightsearchterms from the plone-legacy bundle

c

Files changed:
A plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
M CHANGES.rst
M plone/app/upgrade/v52/alphas.py
M plone/app/upgrade/v52/profiles/to_alpha1/skins.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-06T20:23:08+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@c979968

Also remove the jquery-highlightsearchterms resource, and the plone_ecmascript skin layer for plone 5.1.4

Files changed:
A plone/app/upgrade/v51/profiles/to_514/skins.xml
M CHANGES.rst
M plone/app/upgrade/v51/configure.zcml
M plone/app/upgrade/v51/final.py
M plone/app/upgrade/v51/profiles/to_514/registry.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-08T12:26:59+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@0c1c1ee

Update the compilation date of the plone-legacy bundle, to force recompilation

Files changed:
M plone/app/upgrade/v51/profiles/to_514/registry.xml
M plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-09T08:41:13+02:00
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at>
Commit: plone/plone.app.upgrade@8d8f25d

Merge pull request #170 from plone/remove-highlightsearchterms

Remove jquery-highlightsearchterms and plone_ecmascript layer

Files changed:
A plone/app/upgrade/v51/profiles/to_514/skins.xml
A plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
M CHANGES.rst
M plone/app/upgrade/v51/configure.zcml
M plone/app/upgrade/v51/final.py
M plone/app/upgrade/v51/profiles/to_514/registry.xml
M plone/app/upgrade/v52/alphas.py
M plone/app/upgrade/v52/profiles/to_alpha1/skins.xml
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Sep 9, 2018
Branch: refs/heads/master
Date: 2018-09-06T18:21:00+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@6bab181

remove the jquery-highlightsearchterms resource, and the - now empty - plone_ecmascript skin layer. See https://github.com/plone/Products.CMFPlone/pull/1963/commits and plone/Products.CMFPlone#1811 plone/Products.CMFPlone#1801

removing records (wip)

remove jquery-highlightsearchterms from the plone-legacy bundle

c

Files changed:
A plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
M CHANGES.rst
M plone/app/upgrade/v52/alphas.py
M plone/app/upgrade/v52/profiles/to_alpha1/skins.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-06T20:23:08+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@c979968

Also remove the jquery-highlightsearchterms resource, and the plone_ecmascript skin layer for plone 5.1.4

Files changed:
A plone/app/upgrade/v51/profiles/to_514/skins.xml
M CHANGES.rst
M plone/app/upgrade/v51/configure.zcml
M plone/app/upgrade/v51/final.py
M plone/app/upgrade/v51/profiles/to_514/registry.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-08T12:26:59+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@0c1c1ee

Update the compilation date of the plone-legacy bundle, to force recompilation

Files changed:
M plone/app/upgrade/v51/profiles/to_514/registry.xml
M plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-09T08:41:13+02:00
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at>
Commit: plone/plone.app.upgrade@8d8f25d

Merge pull request #170 from plone/remove-highlightsearchterms

Remove jquery-highlightsearchterms and plone_ecmascript layer

Files changed:
A plone/app/upgrade/v51/profiles/to_514/skins.xml
A plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
M CHANGES.rst
M plone/app/upgrade/v51/configure.zcml
M plone/app/upgrade/v51/final.py
M plone/app/upgrade/v51/profiles/to_514/registry.xml
M plone/app/upgrade/v52/alphas.py
M plone/app/upgrade/v52/profiles/to_alpha1/skins.xml
erral pushed a commit that referenced this issue Sep 14, 2018
@ksuess ksuess self-assigned this Oct 1, 2018
@reinhardt reinhardt self-assigned this Oct 1, 2018
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Oct 5, 2018
Branch: refs/heads/master
Date: 2018-10-02T18:09:50+02:00
Author: Manuel Reinhardt (reinhardt) <reinhardt@syslab.com>
Commit: plone/plone.app.blob@130d380

Removed usage of getObjSize script from tests.
Also declared dependency on Products.CMFPlone.
plone/Products.CMFPlone#1801

Files changed:
M setup.py
M src/plone/app/blob/tests/test_replacements.py
Repository: plone.app.blob

Branch: refs/heads/master
Date: 2018-10-02T18:14:23+02:00
Author: Manuel Reinhardt (reinhardt) <reinhardt@syslab.com>
Commit: plone/plone.app.blob@dfaf548

Added changelog entry.

Files changed:
M CHANGES.rst
Repository: plone.app.blob

Branch: refs/heads/master
Date: 2018-10-05T20:16:16+02:00
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at>
Commit: plone/plone.app.blob@4de7add

Merge pull request #52 from plone/1801-get-size

Removed usage of getObjSize script from tests.

Files changed:
M CHANGES.rst
M setup.py
M src/plone/app/blob/tests/test_replacements.py
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Oct 5, 2018
Branch: refs/heads/master
Date: 2018-10-05T12:02:57+02:00
Author: Manuel Reinhardt (reinhardt) <reinhardt@syslab.com>
Commit: plone/plone.app.content@738b89b

Replaced another usage of getObjSize.
plone/Products.CMFPlone#1801

Files changed:
M plone/app/content/browser/content_status_history.py
M plone/app/content/browser/templates/content_status_history.pt
Repository: plone.app.content

Branch: refs/heads/master
Date: 2018-10-05T20:17:18+02:00
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at>
Commit: plone/plone.app.content@6031bad

Merge pull request #169 from plone/1801-get-size-part-2

Replaced another usage of getObjSize

Files changed:
M plone/app/content/browser/content_status_history.py
M plone/app/content/browser/templates/content_status_history.pt
@mauritsvanrees
Copy link
Member

Status as of 22 October 2018: 12 scripts to go in Products.CMFPlone/skins/plone_scripts:

browserDefault.py
externalEditorEnabled.py
external_edit.py
folder_publish.cpy
generateUniqueId.py
getFolderContents.py
pretty_title_or_id.py
queryCatalog.py
toLocalizedTime.py
translate.py
unique.py
utranslate.py

(The list in the main text of this issue is leading.)

@pbauer
Copy link
Member

pbauer commented Apr 15, 2019

Also content_status_modify from plone_form_scripts

@jensens
Copy link
Member Author

jensens commented Apr 16, 2019

added to the list

@fulv
Copy link
Member

fulv commented Apr 18, 2019 via email

@ksuess ksuess removed their assignment Mar 19, 2020
jensens pushed a commit that referenced this issue Nov 12, 2021
Actually, it might be possible to delete the enable_compression method
entirely, it doesn't seem to be used by Plone. I'm just not sure whether
3rd-party code might rely on it even though I think it's unlikely.
jensens pushed a commit that referenced this issue Nov 12, 2021
re #1801: Remove enable_compression while removing skin script.
@jensens jensens added this to the Plone 6.1 milestone Mar 13, 2023
@jensens
Copy link
Member Author

jensens commented Mar 13, 2023

The scripts are still there in Plone 6. It is a task for Plone 6.1 to remove them all.

@gforcada
Copy link
Member

Some of them, might be refactored and moved to plone.base, or? 🤔

@jensens
Copy link
Member Author

jensens commented Mar 13, 2023

I think most of these scripts already have alternatives. Just that they are not used in the code.

@gforcada
Copy link
Member

Oh, that's even better, if we get a mapping, then creating the fixing code should be relatively easy to do 👍🏾

Even better if we post it on community.plone.org so a GSOC student picks it up so s/he proofs her/himself 😄

@mauritsvanrees
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants