Repository: plone/plone.formwidget.recurrence (language: python)

Issue:
Version 3 of this package should use plone.base to get rid of a deprecation warning



Discussion / hints:

Fix patch:
diff --git a/news/.gitkeep b/news/.gitkeep
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/news/.gitkeep
@@ -0,0 +1,1 @@
+
diff --git a/news/29.bugfix b/news/29.bugfix
new file mode 100644
index 0000000..3c5a408
--- /dev/null
+++ b/news/29.bugfix
@@ -0,0 +1,2 @@
+Use plone.base
+[ale-rt]
diff --git a/plone/formwidget/recurrence/browser/json_recurrence.py b/plone/formwidget/recurrence/browser/json_recurrence.py
index 76f1db4..f8f0bac 100644
--- a/plone/formwidget/recurrence/browser/json_recurrence.py
+++ b/plone/formwidget/recurrence/browser/json_recurrence.py
@@ -1,11 +1,11 @@
 from dateutil import rrule
-from Products.CMFPlone.i18nl10n import _interp_regex
-from Products.CMFPlone.i18nl10n import datetime_formatvariables
-from Products.CMFPlone.i18nl10n import monthname_msgid
-from Products.CMFPlone.i18nl10n import monthname_msgid_abbr
-from Products.CMFPlone.i18nl10n import name_formatvariables
-from Products.CMFPlone.i18nl10n import weekdayname_msgid
-from Products.CMFPlone.i18nl10n import weekdayname_msgid_abbr
+from plone.base.i18nl10n import _interp_regex
+from plone.base.i18nl10n import datetime_formatvariables
+from plone.base.i18nl10n import monthname_msgid
+from plone.base.i18nl10n import monthname_msgid_abbr
+from plone.base.i18nl10n import name_formatvariables
+from plone.base.i18nl10n import weekdayname_msgid
+from plone.base.i18nl10n import weekdayname_msgid_abbr
 from Products.Five import BrowserView
 from zope.i18n import interpolate
 from zope.i18n import translate
diff --git a/plone/formwidget/recurrence/configure.zcml b/plone/formwidget/recurrence/configure.zcml
index a699a49..a6bb555 100644
--- a/plone/formwidget/recurrence/configure.zcml
+++ b/plone/formwidget/recurrence/configure.zcml
@@ -14,7 +14,7 @@
       directory="profiles/default"
       title="plone.formwidget.recurrence"
       description="plone.formwidget.recurrence resource registration."
-      for="Products.CMFPlone.interfaces.IPloneSiteRoot"
+      for="plone.base.interfaces.IPloneSiteRoot"
       provides="Products.GenericSetup.interfaces.EXTENSION"
       />
 
diff --git a/setup.py b/setup.py
index 566c8ad..6e46f6b 100644
--- a/setup.py
+++ b/setup.py
@@ -32,8 +32,8 @@
     zip_safe=False,
     install_requires=[
         "setuptools",
+        "plone.base",
         "Products.CMFCore",
-        "Products.CMFPlone",
         "python-dateutil",
         "zope.component",
         "zope.i18n",


Test patch:
diff --git a/plone/formwidget/recurrence/tests/base.py b/plone/formwidget/recurrence/tests/base.py
index ec2bfd1..904a750 100644
--- a/plone/formwidget/recurrence/tests/base.py
+++ b/plone/formwidget/recurrence/tests/base.py
@@ -8,7 +8,6 @@
 
 
 class PloneFormwidgetRecurrenceLayer(PloneSandboxLayer):
-
     defaultBases = (PLONE_FIXTURE,)
 
     def setUpZope(self, app, configurationContext):