diff --git a/README.rst b/README.rst index aa30d282..ac67bea7 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 @@ -104,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,)) @@ -163,12 +162,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/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/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 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)) 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,