In depth analysis of plone.app.widgets.utils and their usage
NotImplemented exception -> plone.app.z3cform
get_date_options and get_datetime_options can be simplified to get_date_options only -> plone.app.z3cform and plone.app.content (though I think this is unused since the implementation of native date and datetime-local input fields)
get_ajaxselect_options already marked as deprecated for Plone 6
get_relateditems_options -> plone.app.z3cform and Products.CMFPlone
get_querystring_options -> plone.app.z3cform
get_tinymce_options -> plone.app.z3cform
get_portal, get_portal_url and get_context_url -> plone.app.z3cform
get_widget_form -> plone.app.z3cform
Resolvement
[x] move utils to their usage in plone.app.z3cform.widgets.<widget module>
[x] move general utils get_portal, get_portal_url, get_context_url and get_widget_form to plone.app.z3cform.utils
[x] check if get_datetime_options is needed at all -> can be replaced by get_date_options
Summarized Tasks which are needed to deprecate this package (see discussion here https://github.com/plone/plone.app.z3cform/issues/19#issuecomment-1331759185)
Refactorings
plone.app.widgets.utils
methods to another place (see details below)plone.app.widgets.base
widget classes toplone.app.z3cform.widget
zope.deprecation
mentioning the removal in Plone 7 (https://github.com/plone/plone.app.widgets/pull/221)In depth analysis of
plone.app.widgets.utils
and their usageNotImplemented
exception ->plone.app.z3cform
get_date_options
andget_datetime_options
can be simplified toget_date_options
only ->plone.app.z3cform
andplone.app.content
(though I think this is unused since the implementation of nativedate
anddatetime-local
input fields)get_ajaxselect_options
already marked as deprecated for Plone 6get_relateditems_options
->plone.app.z3cform
andProducts.CMFPlone
get_querystring_options
->plone.app.z3cform
get_tinymce_options
->plone.app.z3cform
get_portal
,get_portal_url
andget_context_url
->plone.app.z3cform
get_widget_form
->plone.app.z3cform
Resolvement
plone.app.z3cform.widgets.<widget module>
get_portal
,get_portal_url
,get_context_url
andget_widget_form
toplone.app.z3cform.utils
get_datetime_options
is needed at all -> can be replaced byget_date_options
Create Issue/PR in depending packages
plone.app.dexterity
(https://github.com/plone/plone.app.dexterity/pull/355)plone.app.relationfield
(https://github.com/plone/plone.app.relationfield/pull/36)plone.app.z3cform
(https://github.com/plone/plone.app.z3cform/pull/155)the following PRs depend on merged
plone.app.z3cform#155
:plone.app.content
(https://github.com/plone/plone.app.content/pull/259)plone.app.widgets
(https://github.com/plone/plone.app.widgets/pull/221)Products.CMFPlone
(https://github.com/plone/Products.CMFPlone/pull/3686)Minor updates
plone.app.locales
plone.formwidget.recurrence
(comment only)plone.app.vocabularies
(comments only)