Skip to content

Commit

Permalink
Merge pull request #259 from plone/deprecate-plone-app-widgets
Browse files Browse the repository at this point in the history
Fix import of deprecated `plone.app.widgets` utility
  • Loading branch information
gforcada authored Dec 22, 2023
2 parents 73b45f0 + ee01e09 commit fb3cd9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions news/259.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Change import from deprecated ``plone.app.widgets`` to ``plone.app.z3cform``
[petschki]
4 changes: 2 additions & 2 deletions plone/app/content/browser/contents/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from plone.app.content.browser.contents import ContentsBaseAction
from plone.app.content.interfaces import IStructureAction
from plone.app.dexterity.behaviors.metadata import ICategorization
from plone.app.widgets.utils import get_datetime_options
from plone.app.z3cform.widgets.datetime import get_date_options
from plone.base import PloneMessageFactory as _
from plone.base.defaultpage import check_default_page_via_view
from Products.CMFCore.interfaces._content import IFolderish
Expand Down Expand Up @@ -38,7 +38,7 @@ def get_options(self):
),
"template": self.template(
vocabulary_url="%splone.app.vocabularies.Users" % (base_vocabulary),
pattern_options=json.dumps(get_datetime_options(self.request)),
pattern_options=json.dumps(get_date_options(self.request)),
),
"dataUrl": self.context.absolute_url() + "/@@fc-properties",
},
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"plone.app.querystring",
"plone.app.uuid",
"plone.app.vocabularies>4.1.2",
"plone.app.widgets",
"plone.app.z3cform",
"plone.autoform",
"plone.base",
Expand Down

0 comments on commit fb3cd9d

Please sign in to comment.