I just checked the state of skins/plone_scripts
and it looks there are some low hanging fruits around.
- add_ext_editor.py
- seems completly outdated, I doubt this one is used anywhere
- author_find_content.py
- this is not used on core at any place
- browserDefault.py
- more complex to figure out if this is used as a script, because the name is used in different context
- canSelectDefaultPage.py
- plone.app.content/plone/app/content/browser/templates/select_default_view.pt Products.CMFPlone/Products/CMFPlone/skins/plone_scripts/canSelectDefaultPage.py Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefaultScripts.py Products.CMFPlone/Products/CMFPlone/tests/testPloneView.py
- check_id.py
- various places in AT world
- createMultiColumnList.py
- Products.CMFPlone/Products/CMFPlone/browser/templates/search.pt
- create_query_string.py
- this is not used on core at any place
- date_components_support.py
- Products.Archetypes/Products/Archetypes/browser/templates/calendar_macros.pt
- displayContentsTab.py
- only place this string appears is Products.CMFPlone/Products/CMFPlone/browser/interfaces.py where it is defined on IPlone interface. fishy.
- enableHTTPCompression.py
- plone.app.layout/plone/app/layout/viewlets/httpheaders.py
- externalEditorEnabled.py
- plone.app.blob/src/plone/app/blob/profiles/file-replacement/types/ATFile.xml plone.app.blob/src/plone/app/blob/profiles/image-replacement/types/ATImage.xml plone.app.blob/src/plone/app/blob/profiles/sample/types/Blob.xml Products.ATContentTypes/Products/ATContentTypes/profiles/default/types/Document.xml Products.ATContentTypes/Products/ATContentTypes/profiles/default/types/Event.xml Products.ATContentTypes/Products/ATContentTypes/profiles/default/types/File.xml Products.ATContentTypes/Products/ATContentTypes/profiles/default/types/Image.xml Products.ATContentTypes/Products/ATContentTypes/profiles/default/types/Link.xml Products.ATContentTypes/Products/ATContentTypes/profiles/default/types/News_Item.xml Products.CMFPlone/Products/CMFPlone/profiles/default/actions.xml Products.CMFPlone/Products/CMFPlone/tests/testExternalEditorEnabled.py Products.CMFPlone/Products/CMFPlone/utils.py
- external_edit.py
- plone.app.blob/src/plone/app/blob/profiles/file-replacement/types/ATFile.xml plone.app.blob/src/plone/app/blob/profiles/image-replacement/types/ATImage.xml plone.app.blob/src/plone/app/blob/profiles/sample/types/Blob.xml plone.app.upgrade/plone/app/upgrade/v40/alphas.py Products.ATContentTypes/Products/ATContentTypes/profiles/default/types/Document.xml Products.ATContentTypes/Products/ATContentTypes/profiles/default/types/Event.xml Products.ATContentTypes/Products/ATContentTypes/profiles/default/types/File.xml Products.ATContentTypes/Products/ATContentTypes/profiles/default/types/Image.xml Products.ATContentTypes/Products/ATContentTypes/profiles/default/types/Link.xml Products.ATContentTypes/Products/ATContentTypes/profiles/default/types/News_Item.xml 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 Products.contentmigration/Products/contentmigration/profiles/testing/types/CMF_Document.xml
- folder_publish.cpy
- Products.CMFFormController/Products/CMFFormController/tests/testRedirectTo.py plone.app.content/plone/app/content/browser/content_status_history.py Products.CMFPlone/Products/CMFPlone/skins/plone_scripts/folder_publish.cpy Products.CMFPlone/Products/CMFPlone/tests/testContentPublishing.py
- formatColumns.py
- this is not used on core at any place, except in its own test at Products.CMFPlone/Products/CMFPlone/tests/testSecurity.py
- generateUniqueId.py
- Products.LinguaPlone/Products/LinguaPlone/tests/test_api.py archetypes.multilingual/archetypes/multilingual/browser/add.py Products.Archetypes/Products/Archetypes/skins/archetypes/createObject.cpy Products.Archetypes/Products/Archetypes/skins/archetypes/add_reference.cpy Products.CMFPlone/Products/CMFPlone/tests/testNavigationView.py
- getAllowedTypes.py
- only place this string appears is Products.CMFPlone/Products/CMFPlone/browser/interfaces.py where it is defined on IPlone interface. fishy.
- 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.ATContentTypes/Products/ATContentTypes/skins/ATContentTypes/atct_topic_subtopics.pt Products.ATContentTypes/Products/ATContentTypes/skins/ATContentTypes/atctListAlbum.py Products.ATContentTypes/Products/ATContentTypes/tests/test_browserdefaultmixin.py Products.CMFPlone/Products/CMFPlone/skins/plone_content/folder_listing.pt Products.CMFPlone/Products/CMFPlone/tests/testNavTree.py Products.CMFPlone/Products/CMFPlone/tests/testSecurity.py
- getGlobalPortalRoles.py
- this is not used in core at any place
- getNotAddableTypes.py
- Products.CMFPlone/Products/CMFPlone/skins/plone_scripts/getAllowedTypes.py
- getObjectsFromPathList.py
- plone.app.content/plone/app/content/browser/templates/content_status_history.pt
- getObjSize.py
- used at several places, needs check if its always this script or some other method.
- getPopupScript.py
- this is not used in core at any place
- getPortalTypeList.py
- this is not used in core at any place
- getPortalTypes.py
- this is not used in core at any place
- getSelectableViews.py
- only used it its own test Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefaultScripts.p
- hasIndexHtml.py
- only used in its own test Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefaultScripts.p
- isExpired.py
- plone.app.content/plone/app/content/browser/reviewlist.py plone.app.content/plone/app/content/browser/templates/content_status_history.pt Products.ATContentTypes/Products/ATContentTypes/skins/ATContentTypes/atct_topic_subtopics.pt Products.CMFPlone/Products/CMFPlone/tests/testContentPublishing.py
- mail_password.py
- difficult to figure out (term used in other ways), needs deeper investigations
- my_worklist.py
- plone.app.content/plone/app/content/browser/reviewlist.py plone.app.workflow/plone/app/workflow/tests/test_plone_workflow.py Products.CMFPlacefulWorkflow/Products/CMFPlacefulWorkflow/tests/testCMFPlacefulWorkflow.py
- navigationParent.py
- only used in its own test Products.CMFPlone/Products/CMFPlone/tests/testNavigationParent.py
- plone.css.py
- plone.app.debugtoolbar/src/plone/app/debugtoolbar/browser/theme.pt Products.LinguaPlone/Products/LinguaPlone/skins/LinguaPlone/translationbrowser_popup.pt Products.ResourceRegistries/Products/ResourceRegistries/www/csscomposition.zpt
- plone_log.py
- last occurrence was in CMFEditions, which was recently removed
- pretty_title_or_id.py
- various places, need detailed check
- queryCatalog.py
- conflicts with other method of same name, needs detailed check
- raiseUnauthorized.py
- Products.CMFPlacefulWorkflow/Products/CMFPlacefulWorkflow/skins/CMFPlacefulWorkflow/prefs_workflow_localpolicies_form.pt
- redirectToReferrer.py
- plone.app.content/plone/app/content/browser/templates/content_status_history.pt
- returnNone.py
- Products.CMFPlone/Products/CMFPlone/controlpanel/browser/usergroups_groupdetails.pt and tests
- reverseList.py
- only in own tests Products.CMFPlone/Products/CMFPlone/tests/scripts.txt
- setAuthCookie.py
- Products.CMFCore/Products/CMFCore/CookieCrumbler.py Products.PlonePAS/src/Products/PlonePAS/plugins/cookie_handler.py
- show_id.py
- Products.Archetypes/Products/Archetypes/skins/archetypes/widgets/zid.pt
- sort_modified_ascending.py
- this is not used in core at any place
- sortObjects.py
- Products.CMFPlone/Products/CMFPlone/skins/plone_scripts/getAllowedTypes.py Products.CMFPlone/Products/CMFPlone/tests/testSortObjects.py
- toLocalizedTime.py
- various places, needs detailed check
- translate.py
- various places, needs detailed check
- unique.py
- difficult to grep for, needs detailed check
- utranslate.py
- various places, needs detailed check