From 7cd7775e1f68fe7ba24651cf415f3c3356512a1f Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Mon, 27 Nov 2017 14:15:49 +0100 Subject: [PATCH] Implement changes suggested by @mgedmin in review. --- docs/mustread/{forms.rst => form.rst} | 0 docs/mustread/index.rst | 2 +- src/z3c/form/browser/checkbox.rst | 2 +- src/z3c/form/field.rst | 2 +- tox.ini | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename docs/mustread/{forms.rst => form.rst} (100%) diff --git a/docs/mustread/forms.rst b/docs/mustread/form.rst similarity index 100% rename from docs/mustread/forms.rst rename to docs/mustread/form.rst diff --git a/docs/mustread/index.rst b/docs/mustread/index.rst index 34baa259..9ea873fa 100644 --- a/docs/mustread/index.rst +++ b/docs/mustread/index.rst @@ -5,7 +5,7 @@ Must read :numbered: :maxdepth: 1 - Forms - Setup and usage of forms including structure of form components + Forms - Setup and usage of forms including structure of form components
Group Forms - Implementation and usage of widget groups Sub-Forms - Introduction into sub-forms and the implemented two classes of thereof field diff --git a/src/z3c/form/browser/checkbox.rst b/src/z3c/form/browser/checkbox.rst index bb69a00b..65114917 100644 --- a/src/z3c/form/browser/checkbox.rst +++ b/src/z3c/form/browser/checkbox.rst @@ -1,4 +1,4 @@ -CheckBox Widget +Checkbox Widget --------------- Note: the checkbox widget isn't registered for a field by default. You can use diff --git a/src/z3c/form/field.rst b/src/z3c/form/field.rst index 491ef032..0be27da0 100644 --- a/src/z3c/form/field.rst +++ b/src/z3c/form/field.rst @@ -387,7 +387,7 @@ Next we need a form that specifies the fields to be added: ... fields = field.Fields(IPerson) >>> personForm = PersonForm() -For more details on how to define fields within a form, see ``form.rst``. We +For more details on how to define fields within a form, see :doc:`form`. We can now create the fields widget manager. Its discriminators are the form for which the widgets are created, the request, and the context that is being manipulated. In the simplest case the context is ``None`` and ignored, as it diff --git a/tox.ini b/tox.ini index 168500b8..45c057ed 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,7 @@ usedevelop = true basepython = python2.7 commands = - coverage run -m zope.testrunner --test-path=src --auto-color -vv [] + coverage run -m zope.testrunner --test-path=src {posargs:--auto-color -vv} coverage report --fail-under=96 deps = {[testenv]deps}