plone.app.z3cform/1.0.x: Depend on plone.app.widgets, below version 2

Fred van Dijk <jenkins-z4DKO/[email protected]> Tue, 01 Aug 2017 08:33:33 -0700 (PDT)
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: plone.app.z3cform
Branch: refs/heads/1.0.x
Date: 2017-08-01T17:33:16+02:00
Author: Fred van Dijk (fredvd) <[email protected]>
Commit: https://github.com/plone/plone.app.z3cform/commit/485e57e701a453c8508ac1e2a8b22cf98340a149

Depend on plone.app.widgets, below version 2
which is for Plone 5. Add a section to the README why you want to use plone.app.z3cform 1.0.x

Files changed:
M CHANGES.rst
M README.rst
M setup.py

diff --git a/CHANGES.rst b/CHANGES.rst
index 6a0ceb8..472f082 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,6 +4,11 @@ Changelog
 1.0.2 (unreleased)
 ------------------
 
+- Depend on plone.app.widgets, below version 2 which is for Plone 5. Add a
+  section to the README for which Plone version plone.app.z3cform 1.0.x is
+  useful. (Plone 4.3 with plone.app.widgets 1.x)
+  [fredvd]
+
 - Remove enableFormTabbing css class from forms, since 1.0 this packages depends
   on plone.app.widgets's GS profile, so pat-autotoc should work. This allows
   you to still enable form_tabbing.js if other add'ons still depend on
diff --git a/README.rst b/README.rst
index 522eecc..4f4d67d 100644
--- a/README.rst
+++ b/README.rst
@@ -18,6 +18,20 @@ that package contains the "active" parts that you need to know about, and
 this package provides "passive" overrides that make the forms integrate with
 Plone.
 
+Plone versions < 5.0
+====================
+
+This plone.app.z3cform 1.0.x branch is only useful if you want to use
+plone.app.widgets 1.x in a Plone 4.3 site. plone.app.widgets upgrades many
+field widgets to newer javascript integrations from the Plone Mockup project
+used by default in Plone 5, but Mockup also supports patterns for field
+validation and formtabbing. These latter patterns are activated by the
+templates in plone.app.z3cform 1.0.x, which contains scaffolding around the
+autogenerated (z3c.)forms generated from Zope schema's.
+
+If you use a normal Plone 4.3 site without plone.app.widgets, use
+plone.app.z3cform 0.7.x only.
+
 Installation
 ============
 
diff --git a/setup.py b/setup.py
index 00b5dd6..c3c22c6 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@ def read(*rnames):
         'Products.CMFCore',
         'Products.CMFPlone',
         'Zope2',  # Products.Five
-        'plone.app.widgets',
+        'plone.app.widgets<2.0',
         'plone.protect',
         'plone.z3cform>=0.5.11dev',
         'z3c.form >= 3.0',



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot