From 9c6fb22c311d6b468e89f16ed8759be28e40117e Mon Sep 17 00:00:00 2001 From: Josip Delic Date: Sun, 5 Oct 2025 16:40:22 +0200 Subject: [PATCH 1/4] docs: removed outdated docs --- README.rst | 4 ---- docs/templates.rst | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index aa30d282..d76b1c2d 100644 --- a/README.rst +++ b/README.rst @@ -163,12 +163,8 @@ This library is actively developed and maintained. Deform 2.x branch has been us Projects using Deform --------------------- -* `Websauna `_ - * `Kotti `_ -* `Substance D `_ - Community and links ------------------- diff --git a/docs/templates.rst b/docs/templates.rst index 3e337d79..c0011226 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -18,7 +18,7 @@ Alternative template engines Deform is compatible with any template engine. Even though Deform widgets themselves are rendered in Chameleon, you can place the forms on pages in any template language. -For example, `Websauna `_ places Deform forms inside Jinja2 page templates. +For example you can place Deform forms inside Jinja2 page templates. The rendered forms are simply Python strings. @@ -33,7 +33,7 @@ Chameleon template paths are stored in an in-process global variable. from deform.renderer import configure_zpt_renderer # Make Deform widgets aware of our widget template paths - configure_zpt_renderer(["websauna.system.form:templates/deform"]) + configure_zpt_renderer(["YOUAPP.form:templates/deform"]) Overriding the default templates From a9005a0e81022b2e1fd63f7c3e6d02f19df91e01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 6 Oct 2025 08:54:23 +0200 Subject: [PATCH 2/4] Remove corde for backward compatilility with Python 2.6 --- README.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/README.rst b/README.rst index d76b1c2d..470dda34 100644 --- a/README.rst +++ b/README.rst @@ -76,7 +76,6 @@ Example code: .. code-block:: python """Self-contained Deform demo example.""" - from __future__ import print_function from pyramid.config import Configurator from pyramid.session import UnencryptedCookieSessionFactoryConfig From b4e8fa71fb3f468dd10cdd92e6a71c90c4be827f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 6 Oct 2025 08:58:23 +0200 Subject: [PATCH 3/4] Bootstrap version 5 everywhere --- README.rst | 2 +- docs/index.rst | 4 ++-- docs/validation.rst | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 470dda34..ac67bea7 100644 --- a/README.rst +++ b/README.rst @@ -103,7 +103,7 @@ Example code: schema = ExampleSchema().bind(request=request) - # Create a styled button with some extra Bootstrap 3 CSS classes + # Create a styled button with some extra Bootstrap 5 CSS classes process_btn = deform.form.Button(name='process', title="Process") form = deform.form.Form(schema, buttons=(process_btn,)) diff --git a/docs/index.rst b/docs/index.rst index 9eae25d1..18134528 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -15,8 +15,8 @@ use cases `_ are supported out of the box Deform integrates with the `Pyramid web framework `_ and several other web frameworks. Deform comes with `Chameleon templates -`_ and `Bootstrap 3 -`_ styling. Under the hood, `Colander schemas +`_ and `Bootstrap 5 +`_ styling. Under the hood, `Colander schemas `_ are used for serialization and validation. The `Peppercorn `_ library maps HTTP form submissions to nested structure. diff --git a/docs/validation.rst b/docs/validation.rst index 9abbf3a6..4b7e335b 100644 --- a/docs/validation.rst +++ b/docs/validation.rst @@ -112,7 +112,7 @@ Use ``form.widget.set_error()`` to set a form level error. """Newsletter admin form.""" schema = NewsletterSend().bind(request=request) - # Create a styled button with some extra Bootstrap 3 CSS classes + # Create a styled button with some extra Bootstrap 5 CSS classes b = deform.Button(name='process', title="Send", css_class="btn-block btn-lg") form = deform.Form(schema, buttons=(b, ), resource_registry=ResourceRegistry(request)) From 1c1dd9290409a40fa4e821e55e42aa911ba128f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 6 Oct 2025 09:10:08 +0200 Subject: [PATCH 4/4] Update maintainers --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index f8f3a09e..5e604a36 100644 --- a/setup.py +++ b/setup.py @@ -95,8 +95,8 @@ def readfile(name): keywords="web forms form generation schema validation pyramid", author="Chris McDonough, Agendaless Consulting", author_email="pylons-discuss@googlegroups.com", - maintainer="Steve Piercy", - maintainer_email="web@stevepiercy.com", + maintainer="Josip Delić, Stéphane Brunner", + maintainer_email="delijati@gmx.net, stephane.brunner@gmail.com", url="https://docs.pylonsproject.org/projects/deform/en/latest/", project_urls={ 'Documentation': docs_url,