Products.Formulator


NameProducts.Formulator JSON
Version 2.1 PyPI version JSON
download
home_pagehttps://github.com/infrae/Products.Formulator
SummaryForm library for Zope 4
upload_time2023-07-31 06:31:54
maintainer
docs_urlNone
authorMartijn Faassen and community
requires_python
licenseBSD
keywords form generator zope4
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Formulator
==========

Formulator is a tool to help with the creation and validation of web
forms. Form fields are stored as objects in Zope 4, in a special Form
folder.

.. caution:: This package is not actively maintained.

.. contents::


Features
--------

* manage form fields through the Zope management interface.

* manage field look & feel as well as validation and processing
  behavior.

* automatic field validation.

* determine field order and group fields together.

* easy extensibility with new field types.

* online help.

* serialization of form to XML and back.


Dependencies
------------

You need to install either zeam.form. The best to install this product
is to use buildout and let it resolves the dependencies.


Code repository
---------------

You can find the code of this extension in Git:
https://github.com/infrae/Products.Formulator

Credits
=======

Developers:

- Martijn Faassen (faassen@vet.uu.nl) -- Main developer, design and
  implementation.

- Clemens Klein-Robbenhaar (robbenhaar at espresto.com) -- Many
  bugfixes and feature additions.

Many thanks go to:

- Kit Blake (kitblake at v2.nl) -- UI help and design help.

- Yury Don (yura at vpcit.ru) -- contributed EmailField and
  FloatField, design and implementation help.

- Stephan Richter (srichter at iuveno-net.de) -- contributed LinkField
  and FileField. Contributed PatternChecker module used by
  PatternField. Other design and implementation help.

- Nicola Larosa (nico at tekNico.net) -- feedback and bugfixes.

- Magnus Heino (magus.heino at rivermen.se) -- feedback and bugfixes.

- Joel Burton (jburton at scw.org) -- feedback and bugfixes.

- Ulrich Eck (ueck at net-labs.de) -- much help and patience with the
  TALES tab.

- Dirk Datzert (Dirk.Datzert at rasselstein-hoesch.de) -- feedback and
  bugfixes.

- Max Petrich (petrich.max at kis-solution.de) -- feedback and
  bugfixes.

- Matt Behrens (matt.behrens at kohler.com) -- feedback and bugfixes.

- Nikolay Kim (fafhrd at datacom.kz) -- code inspiration for
  XMLToForm/FormToXML.

- Godefroid Chapelle (gotcha at swing.be) -- Bugfixes.

- Alan Runyan (runyaga at runyaga.com) -- Fix to email regular expression.

- Sascha Welter (welter at network-ag.com) -- Extensive help with email
  regular expression.

- Christian Zagrodnick (cz at gocept.com) -- Unicode awareness fixes
  and XML entry form.

- Iutin Vyacheslav (iutin at whirix.com) -- am/pm feature for DateTime
  fields.

- Kapil Thangavelu (k_vertigo at objectrealms.net) -- Enabled
  ':record' rendering.

- Pierre-Julien Grizel (grizel at ingeniweb.com) -- ProductForm.

- Sebastien Robin (seb at nexedi.com) -- more consistent ordering in
  XML serialization, bugfixes

- Guido Wesdorp (guido at infrae.com) -- Added extra_item attribute on
  compound fields, bugfixes. Fixed unicode error in XMLToForm.

- Yura Petrov (ypetrov at naumen.ru) -- Various FSForm related
  improvements.

- Vladimir Voznesensky (vovic at smtp.ru) -- Enabling/disabling of fields,
  bugfix in ``render_view``.

- Jeff Kowalczyk -- Whitespace normalization of sources.

- Paul Winkler, Dieter Maurer -- help with fix so that help system
  doesn't cause ZODB writes on every startup.

- Garito (garito at sistes.net) -- bugfix with the XML serialization
  of DateTime values.

- Maciej Pietrzak (magh at apcoh.org) -- Fixes for DateTime validation
  issues in Zope 2.7.

- Patrick Earl (pat at dril.com) -- Fixes for DateTime / CheckBox
  field rendering.

- He Wei (hewei at ied.org.cn) -- ZMI and Unicode related fixes.

- Bertrand Croq (bertrand.croq at freeskop.com) -- Fixes for a Unicode
  issue related to titles of new fields and label for radiobuttons
  patch

- Ian Duggan (ian at swishmark.com) -- "Hide day" in DateTimeField
  feature

- Reinout van Rees (reinout at vanrees.org) -- LabelField validation
  bugfix.

- Mikael Barbero (mikael at emu-france.com) -- ZMI enhancement.

- Michael Howitz (mh at gocept.com) -- Run tests on GitHub Actions.

Special thanks also goes to Rik Hoekstra.

Also a thank you to those few valiant souls who suffered through the
bugs of ZFormulator, the previous implementation. Let's hope this
one's better!

Changes
=======

2.1 (2023-07-31)
----------------

- Port to Python 3, supporting Python 3.7 up to 3.11.


2.0.1 (2023-03-28)
------------------

Bug fixes
+++++++++

- Fix HTML quoting for values containing ``"``.


2.0 (2023-03-14)
----------------

Backwards incompatible changes
++++++++++++++++++++++++++++++

- Remove support for Zope 2 help system.

- Stop testing Zope 2 compatibility. This release should still work with Zope 2
  but the testing infrastructure was modernized to use ``plone.testing``
  instead of ``infrae.testing`` and ``infrae.wsgi`` to be more future proof.
  Expect this to be the last release working on Zope 2.

Features
++++++++

- Support Zope 4.

Other changes
+++++++++++++

- Remove (test) dependencies of ``five.grok``, ``infrae.wsgi`` and
  ``infrae.testing``.

1.16 (2022-06-16)
-----------------

- Run tests in GitHub Actions.

- Fix deprecation warnings.


1.15.5 (2013/10/08)
-------------------

- Fix various unicode issues following the modifications of the 1.15
  series.

1.15.4 (2013/08/26)
-------------------

- ``test_form`` now except a list of bad identifiers for fields as a
  parameter. An error will be returned if one of those identifier is
  used by a field.

- HTML entities are now escaped by default inside field values.

- Formulator Widgets will now return unicode when it is possible.

- ``zeam.form`` extractors have been updated to have the same Acquisition
  wrapping than the ``zeam.form`` widgets.

- Dependencies got properly defined in ``setup.py`` to facilitate the
  installation of the product.

1.15.3 (2013/05/23)
-------------------

- Fix unicode issues with the integration of ``zeam.form``.

- Fix required and readonly attributes with the interface of
  ``zeam.form``.

- Fix ListTextAreaField so it properly works with values from the request.

1.15.2 (2013/03/05)
-------------------

- Fix compability with the latest version of ``zeam.form``.

1.15.1 (2012/12/12)
-------------------

- Don't validate values against criterias when deserializing
  when. This makes impossible to deserialize values that are
  well-formed, but invalid on a given instance, loosing all
  information by doing so.

1.15 (2012/09/04)
-----------------

- Add support to integrate with ``zeam.form``.

- Add support for validators to validate already extracted values from
  the request.

- Some level of validation can be disabled when extracting values from
  the request, if a value with the id ``field.id_novalidate`` is
  present as well in the request. This is usefull to extract form
  values from a request intended for an older version of your form.

1.14 (2011/11/10)
-----------------

- Compatibility fixes for Zope 2.13 and Python 2.7.

- DateTime widget now support datetime values.

- Add a method ``test_form`` on a Form to know if it is broken (have
  ZODB broken fields, or other problems).

- Add a way to programmatically change all fields options for a form.

- Add support to serialize/deserialize form values on a content
  object (see the adapters code).

- TAL expressions in fields now have access to a context value: the
  acquisition parent of the form.

- Add some fields that where somewhere else in the past,
  EmailLinesField and an InterfaceField.

- Add support for interfaces in XML import/export, for an interface
  field.

- Support for FileSystemSite is optional.

1.13 (2010/07/15)
-----------------

- Compatibility fixes for Zope 2.12 and Python 2.6. Those are the
  requirements now.

Ported from 1.11 branch:

- Fix problem with MultiListFields not showing values from request
  if in unicode mode, as the incoming values from the request
  did not get converted to unicode in the Field._get_default

- The "convert_unicode" helper now expects a separate parameter
  "encoding" instead of assuming utf8 encoding always.


Ported from 1.12 branch:

- The majority of Widgets now auto-generate an html 'id' attribute for the
  rendered widget.  This 'id' attribute is accessible in page templates via
  the field/html_id.  If the field has an id attribute set in the 'extra'
  parameter, the value of this attribute is returned, rather than the
  auto-generated id.  The html id and name attributes are now visible
  in the ZMI edit screen for the fields.  The widgets which do not have
  html_ids are: RadioWidget, MultiCheckBoxWidget, DateTimeWidget.  The widgets
  have a property "has_html_id" that templates can use to determine whether
  to place a label around the field title.


1.11.6 (2009/11/11)
-------------------
- Added the option for the DateTime Widget to use a popup calendar to input
  the date and time.

- The DateTime Widget popup defaults to midnight for the time.

- The DateTime Widget now understands both upper and lower case 'am' and 'pm'.

- Fix the factor that a REQUEST is required to use a field object on
  recent Zope (2.11).

- Fixed field events: copy of forms containing fields and folders
  containing forms was broken.

- Added a 'required' validator property to FileFields

- Added a validator for FileFields to check whether the value is a
  StringType, which is an indicator that the form encoding is set
  incorrectly.  The error message informs the user the form
  encoding should be set to multipart/form-data.

- Property descriptions are now displayed on the edit tab.  These already existed
  but were never exposed in the ZMI.

1.11.5 (2008/30/09)
-------------------

- Reformat documentation to ReST to release an egg.

1.11.4
------

Bugs fixed:

- Zope i18n *needs* an 'en' directory, or browsers like firefox will
  use the first language in the language preferences list that does
  have a translation, even if english is above it in the list of
  preferences.

- Tainted strings caused instance error, converted tainted strings
  back to strings.

- Small fix to Selection Field Validators, whose 'validate' functions
  failed if items values are stored as unicode

- update imports needed by the file system Formulator form
  representation, if CMF is installed.  Now both CMF 1.x (for Plone
  2.x) and CMF 2.x (for Plone 3.x) should work.  Patch provided by
  "lcanacheu".

- checkbox fields and multicheckboxfield items are now rendered with
  labels around them.

1.11.3
------

Bugs fixed:

- Field Validators 'validate' functions did not accept unicode
  values as input on fields that require unicode.

- Zope 2.10 compatibility: "MessageIDFactory" got renamed to
  "MessageFactory"; same for "MessageID"; the monkey to allow
  this class got influenced, too, so all ZODB importing that
  class need to be updated, too (Problem reported by Yinghoong
  Chan and Josef Meile)

- Zope 2.10 event handling. Formulator now uses Zope 3 style
  event handling so that no deprecation warnings are seen
  anymore.

- in Zope 2.10 copy & paste of fields did not work anymore, as
  apparently Zope now requires permission info in the data
  structure returned by all_meta_types. We have created a new
  permission "Add Formulator Fields" which is checked when you
  create a formulator field, or copy & paste it.

  Note that there is still a "cosmetic" security issue if a
  non-manager user tries to add a formulator field. "Add and
  Edit" works, but "Add" gives a login dialog. Actually the
  field *did* get added, but the URL to which the system tries
  to return afterwards does not allow access.

1.11.2
------

Bugs fixed:

- Copied fix from the 1.10 branch, TypeError when passing something other
  than a string into the Validator.

1.11.1
------

Bugs fixed

- Shut up startup warnings about security declarations in Zope
  2.8.5.

1.11
----

Features Added:

- Formulator now needs Zope 2.8.4 + Five 1.2. It uses Five's i18n
  architecture instead of PlacelessTranslationService.  Five 1.2 can
  be downloaded at http://codespeak.net/z3/five

  If you do not want to install Five 1.2 for some reason, simply
  remove 'configure.zcml' in the Formulator package. Formulator will
  then work (but not have i18n support) in a plain Zope 2.8
  installation.

- Radiobuttons are now rendered with a label around their field value,
  allowing to click on the value instead of the radio button itself.
  (Patch from Bertrand Croq).

Bugs fixed:

- Fixed unicode issues in FormToXML, when the form was in unicode mode
  and message fields contained non-ascii chars, XML serialization
  didn't work.

1.10
----

Features Added:

- Allow to group fields of the ZMI form for each field
  into more groups than the default "widget" and "validator"
  (Patch from Mikael Barbero)

Bugs fixed:

- Fixed AttributeError (on __call__) on DummyMessageID.

1.9.0
-----

Features Added:

- Added the 'modules' namespace for TALES expresions.

- when reordering a field in the "Order" tab the current field
  is "sticky" for faster moving up and down.
  (Patch from Sebastien Robin)

- Addes serializeValue and deserializeValue methods to the
  validator classes. The former takes a sax handler as an argument
  and sends it sax events to serialize the field value, the latter
  takes serialized values and massages them back into valid formulator
  values. These methods are not used within formulator itself, and
  introduce no new dependencies.

- A new flag to the DateTimeField widget allows to hide the day,
  allowing to specify month and year only. The day defaults to the
  first day of the month in this case.
  (Patch from Ian Duggan)

Bugs Fixed:

- Fixed issue for render_view of list fields with no default
  value.

- Fixed issue with non-ascii characters in the title of a newly
  created form or field if the unicode property has been set
  (Patch from Bertrand Croq)

- Calling "validate" on LabelField directly failed with a
  KeyError: 'external_validator' (Patch from Reinout van Rees)

- A PatternField may have returned garbled results if the pattern
  has several 'e' or 'f' in the pattern and 'd', 'e' of 'f' in the
  field value

1.8.0
-----

Features Added:

- Remove i18n prefix and message id generation strategy from
  Formulator.  It is cleaner to do this with i18n:translate in
  ZPT. Extraction of messages can be done from .form XML files
  (though this functionality is not yet part of Formulator).

- Introduce message id markers and .po file for Formulator generated
  error messages. These can be made translated in your own
  page templates like this::

     <p i18n:domain="formulator" i18n:translate=""
        tal:content="my_error_text"></p>

- Test framework now uses (and requires) ZopeTestCase. This allowed
  some testing setup cruft to be removed.

Bugs Fixed:

- Added explicit security declaration for the "fieldAdd" DTML-file.
  This fixed a problem with copy & paste fields in Zope 2.7.3.

- Fields having been removed via the XML tab in the ZMI still
  showed up in the "Contents" tab.

- As a convenience TALES expressions now may return "None" for
  the default value, which is rendered as the empty string.
  (previously it has been rendered as "value".)

1.7.0
-----

Features Added:

- Added FormulatorFormFile, which can be used to load XML
  representations of forms from filesystem code like PageTemplateFile.

- i18n-id and i18n-domain support for forms, including descriptions,
  error-messages, etc.

Bugs Fixed:

- changed way selection fields check whether their items property is a
  list or single item.

- Made system not reregister help for Fields which already have help,
  to avoid ZODB writes on startup.

- Fixed singleton submit button that wasn't properly closed.

- Zope 2.7 compatibility: In Zope 2.7 the behaviour when trying to
  construct invalid DateTime object changed from raising string
  exceptions to class based exceptions. This has caused the
  DateTimeField's to pass through the new exceptions instead of
  converting them to ValidationError.

- PatternFields are no longer documented as "experimental" in the Help
  system.

- DateTime values field values (like start or end time) have been
  wrongly represented as strings in the XML representation.

- Fixed bug with rendering of ListField's similar to the "single
  element list with one two-char string" bug fixed for validation in
  1.6.2.

- Fixed bug in DateTime field where a set "default to now" overwrote
  values in the request.

- Severel spelling bugs.

- Fixed bug where a set "default" for a checkbox field would always
  render a checked checkbox, even if redisplaying a submitted form
  where the user has unchecked the checkbox Actually the works only if
  the opening ``<form>`` tag is rendered by the ``form.header()`` method, or
  if a hidden field "formulator_submission" is included manually in
  the form.

- Added tests for the LinesValidator.

- Fixed bug with ``render_from_request`` LinesField, which splitted
  strings coming in as raw unvalidated data from the request into many
  lines with one single character on each line

- Fixed bug where entering non ascii values in the ListField items has
  not been handled properly in unicode mode

- Worked around Zope2.7/python2.3 compatibility bug.  If a character
  like "<" has inserted in a string field this triggered an obscure
  Zope bug when feeding this value into the ``string.strip()`` function
  on validation.


1.6.2
-----

Bugs Fixed:

- Fixed bug which caused validation of listfields to throw an
  exception when a list of strings was used as the value of
  ``<items>`` and one of the elements was 2 characters long.

- Formulator should now work again in Zope 2.7; Zope 2.7 has a change
  to the way it retrieved the character set it used to to display the
  ZMI. This interacted badly with the recent changes in Formulator to
  support unicode.

- Added 'refresh.txt'. I don't consider it a bug if this doesn't work
  for you though -- I'm not using it. :)

- XML representation of method-values attributes did not work.

- python 2.1.3 compatibility: boolean values like "required" are
  translated to int on XML serializations/deserialization.

  The last two fixes are due to Sebastien Robin

- render_hidden of DateTimeField's and fields allowing multiple
  selections did not lead to something useful for validation.

- RadioField and ListField did not display the text but the value in
  ``render_view``.

Other:

- Whitespace normalization in sources.

1.6.1
-----

Bugs Fixed:

- Adding Fields to empty Groups had not been possible.

- ZMI "Order" tab of an empty form did raise an exception.

1.6.0
-----

Features Added:

- FileSystemSite/DirectoryView improvements:

  * XML filesystem representation of Formulator forms can now
    also be used with CMF (if FileSystemSite is not installed).

  * FSForm gets automatically registered with the directory
    view system if CMF or FileSystemSite is installed.

- Infrastructure for Validators not to get taken into account in
  validation procedures (``need_validate``).

- A new label field. Doesn't participate in validation. It shows
  its text as a label in the form.

- Unicode mode. A form can now be put in 'unicode mode', which
  means it stores all its textual data as unicode strings. This
  allows for easier integration with Zope systems that use unicode
  internally, such as Silva.

- Disabling of fields. A field can now be disabled from being
  displayed or validated by unchecking the 'Enabled' validator
  property. This can be done dynamically as well using TALES
  overrides.

Bugs Fixed:

- The css_class value of a DateTime field had been ignored.  It
  is now properly passed down to its subfields, so all subfield
  elements are rendered with the given css_class value.

1.5.0
-----

Features Added:

- Added ProductForm, which provides a wrapping around
  Formulator.BasicForm, allowing it to be created inside a
  product but used outside it.

- Allow turning off of XML prologue section.

- Optimization of TALESMethod by caching compiled expression.
  This speeds SilvaMetadata indexing up by a lot if a fallback
  on default is made, especially in the case of Python
  expressions, as it avoids lots of compilation overhead.

- Extra attribute defined for list/multicheckbox/radio fields
  called 'extra_item', which allows setting HTML attributes to
  individual list item/checkbox/radio button.

Bugs Fixed:

- XML serialization should be more consistent now; field properties
  are now ordered by name upon serialization.

- Allow XML export of BasicForm.

1.4.2
-----

Bugs Fixed:

- Sticky forms should now work correctly in the presence of unicode.
  Encoded data is automatically converted to unicode if the information
  is pulled from the REQUEST form.

1.4.1
-----

Bugs Fixed

- It was not possible to make DateTime fields not required when
  ``allow_empty_time`` was enabled. Fixed.

1.4.0
-----

Features Added

- Added limited ability to output unicode for selected
  fields. Only works properly in Zope 2.6.x, and the HTML pages
  these forms are in need an output encoding set (such as
  UTF-8, which is also Formulator's default encoding). If
  'unicode' checkbox is checked Formulator will try to interpret
  its input in the Form's encoding (default is UTF-8). It will
  also try to display its values in that encoding. Note that
  only field values and items currently work with unicode -- the
  rest of the textual properties of a field are still stored as
  8-bits. If you make sure that these properties are encoded as
  UTF-8 (or whatever encoding you choose for the form) things
  should be okay, however.

- Can now also change forms using XML (not just view it).

- DateTime fields can now optionally input AM/PM.

- DateTime fields can now optionally be set to allow time to
  be left empty.

- 'whitespace_preserve' option on string type fields. If turned on,
  whitespace will not be automatically stripped and will count as
  input.

- 'render_view' method on fields to render the value outside a
  widget.

- Added some code support used by SilvaMetadata to enable rendering
  of fields with Zope's ':record' syntax.

Bugs Fixed:

- Fixed a Python2.2 compatibility bug in ``XMLObjects.py``.

- DateTimeField now picks up default values from REQUEST
  properly if necessary.

- XML representation of the LinkField "check_timeout" value
  messed the type="float" attribute.

- Additional unit tests.

1.3.1 (2002/12/20)
------------------

Features Added:

- Error messages can now be included in the XML serialization.

- Ability to encode lists as a special type in values.

Bugs Fixed:

- Some more proper encodings.

- Handle case where group has no field.

- Handle DateTime field better.

1.3.0 (2002/11/26)
------------------

Features Added:

- FormToXML and XMLToForm modules have functions to serialize
  (most of) form to XML and read it in again (over an existing
  form).

- New XML tab for forms which shows the XML serialization (no
  saving option yet).

- FSForm.py uses XML serialization to provide a formulator form
  version for FileSystemSite. It does not get imported by
  default.

Bugs Fixed:

- The email validator has an improved regular expression.

- Fix error that occured when trying to render DateTimeField as
  hidden.

1.2.0 (2002/03/06)
------------------

Features Added:

- Changes to exception infrastructure so errors can now be
  imported and caught in a through the web Python script. Example::

    from Products.Formulator.Errors import ValidationError, FormValidationError

- added ``__getitem__`` to Field so instead of using ``get_value()`` you can
  also do this in Python: form.field['title'], and in ZPT you can
  use this in path expressions: form/field/title

- made a start with Formulator unit tests; some validators get
  automatically tested now.

Bugs Fixed:

- Removed dependencies of the name of 'Add and Edit' button to make
  internationalization of the management interface easier.

- added permission to make ZClasses work a bit better (but they
  still don't cooperate well with Formulator, I think. I don't use
  ZClasses, so I hope to hear from this from ZClass users)

- Form's properties tab now visible and form tabs stopped
  misbehaving.

- Lists and such should handle multiple items with the same value
  a bit better, selecting only one.

- the LinkField now checks site-internal links better.

1.1.0 (2001/10/26)
------------------

Bugs Fixed:

- Fixed bug in form settings tab.

- the LinkField now checks site-internal links better.

1.0.9 (2001/10/05)
------------------

Features Added:

- New TALES tab for fields as a more powerful Override tab;
  PageTemplates needs to be installed to make it work.

- added 'name' attribute for forms. When the form header is
  rendered, name will be an attribute. This can be used to
  control forms with Javascript.

Bugs Fixed:

- More compliance with Zope product guidelines; moved dtml
  files from www dir to dtml dir.

- Fixed a bug in that form titles would not work. Forms now have
  titles, and you can change them in the settings tab. (Formulator
  does not use the title property internally though)

1.0.1 (2001/07/27)
------------------

Bugs Fixed:

- Fixed bug with renaming groups. Previously, renamed groups were not
  properly stored in the ZODB.

- Made MultiSelectionValidator (used by MultiListField among others)
  deal better with integer values.

- Hacked around CopySupport changes in Zope 2.4.0; renames work
  again now.

1.0 (2001/07/10)
----------------

Features Added:

- New field: RawTextAreaField. A textarea field that doesn't
  do a lot of processing on the text input.

- Checked in BSD license text.

Bugs Fixed:

- Fixed minor bug in year handling of DateTimeField.

- Now hidden fields also take text from 'extra' property.

- Fixed bug in MultiItemsWidget; would not deal with only a
  single item being selected.

0.9.5 (2001/06/27)
------------------

Features Added:

- Added FileField (with browse button). Can be used to upload
  files if form is set to multipart/form-data.

- Added LinkField for URLs.

- Made ListField and RadioField more tolerant of integer
  (and possibly other) values, not only strings.

- Made ListField and RadioField happy to deal with non-tuples too in the
  items list. In this case, the item text and value will be identical.

- Refactored ListWidget and RadioWidget so they share code; they both
  inherit from SingleItemsWidget now.

- Added LinesField to submit a list of lines in a textarea.

- Added MultiListField and MultiCheckBoxField, both use new
  MultiItemsWidget and MultiSelectionValidator.

- Added EXPERIMENTAL PatternField.

0.9.4 (2001/06/20)
------------------

Features Added:

- Added API docs for Form, BasicForm and ZMIForm.

- Renamed the confusingly named PythonForm and PythonField to
  ZMIForm and ZMIField, as they are used from the Zope Management
  Interface and not from Python.

- Added render() method to form for basic form rendering.

- Added Formulator HOWTO document.

Bugs Fixed:

- Removed some validation code that wasn't in use anymore (items_method).

- Removed 'has_field_id' in Form as this duplicated
  the functionality of 'has_field'.

- Turned <br> in Python sources to <br /> for XHTML compliance.

- Tweaked radiobutton; text is now closer to the button itself,
  different buttons are further apart.

0.9.3 (2001/06/12)
------------------

Features Added:

- added RadioField for simple display of radio buttons.

- added action, method and enctype property to form settings.
  These are displayed using the special form.header() and form.footer()
  methods.

- added override tab to allow all properties to be overridden by
  method calls instead. 'items_method' in ListField went
  away.

- added ability to display DateTimeFields using drop down lists
  instead of text input. Added some other bells and whistles to
  DateTimeField. Changed some of the inner workings of composite
  fields; component fields are now unique per field instance
  instead of shared between them.

- is_required() utility method on field to check whether a field
  is required.

- some internal features, such the ability to have a method
  called as soon as a property has changed.

Bugs Fixed:

- Fixed typos in security assertions.

- use REQUEST.form instead of REQUEST where possible.

- display month and day with initial zero in DateTimeField.

- Fixed bug in validate_all_to_request(); what can be validated
  will now be added to REQUEST if possible, even if a
  FormValidationError is raised.

0.9.2 (2001/05/23)
------------------

Features Added:

- Ability to rename groups, including the first 'Default' group.

- Improved support for sticky forms; form.render() can now
  take an optional second argument, REQUEST, which can come
  from a previous form submit. Even unvalidated fields will
  then be sticky.

- fields can call an extra optional external validation
  function (such as a Python script).

- New alternate name property: the alternate name is added to
  the result dictionary or REQUEST object after validation. This
  can be useful to support field names which wouldn't be valid
  field names, which can occur in some locales.

- New extra property; can be used to add extra attributes to
  a HTML tag.

- Some IntegerField properties can now be left empty if
  no value is required, instead of having to set them to 0.

- Merged functionality of RangedIntegerField into IntegerField.
  RangedIntegerField is not addable anymore, though supported
  as a clone of IntegerField for backwards compatibility. Leaving
  'start' and 'end' empty in the new IntegerField will mean those
  checks will not be performed.

Bugs Fixed:

- Added more missing security declarations.

- html_quote added in various places to make fields display
  various HTML entities the right way.

0.9.1 (2001/05/13)
------------------

Features Added:

- Widgets now have a 'hidden' property. If set, the widget is
  drawn as a 'hidden' field. 'hidden' fields do get validated
  normally, however.

- Changed API of Widget and Validator slightly; render() and
  validate() methods now take an extra 'key' argument indicating
  the name the field should have in the form. This is necessarily
  to handle sub fields of composite fields.

- Added EmailField and FloatField.

- Added some infrastructure to support 'composite fields'; fields
  composed out of multiple sub fields.

- Added DateTimeField, the first example of a composite field
  (field made of other fields).

Bugs Fixed:

- General code cleanups; removed some unused methods.

- Fixed security assertion for validate_all_to_request() method.

- MethodFields now check whether they have 'View' permission to
  execute listed Python Script or DTML Method.

- RangedInteger is now < end, instead of <=, compatible with the
  documentation.

0.9 (2001/04/30)
----------------

- Initial public release of Formulator.




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/infrae/Products.Formulator",
    "name": "Products.Formulator",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "form generator zope4",
    "author": "Martijn Faassen and community",
    "author_email": "info@infrae.com",
    "download_url": "https://files.pythonhosted.org/packages/23/2a/df777fc883e09d23401ff96e33252ae867016060356c253c672214098037/Products.Formulator-2.1.tar.gz",
    "platform": null,
    "description": "Formulator\n==========\n\nFormulator is a tool to help with the creation and validation of web\nforms. Form fields are stored as objects in Zope 4, in a special Form\nfolder.\n\n.. caution:: This package is not actively maintained.\n\n.. contents::\n\n\nFeatures\n--------\n\n* manage form fields through the Zope management interface.\n\n* manage field look & feel as well as validation and processing\n  behavior.\n\n* automatic field validation.\n\n* determine field order and group fields together.\n\n* easy extensibility with new field types.\n\n* online help.\n\n* serialization of form to XML and back.\n\n\nDependencies\n------------\n\nYou need to install either zeam.form. The best to install this product\nis to use buildout and let it resolves the dependencies.\n\n\nCode repository\n---------------\n\nYou can find the code of this extension in Git:\nhttps://github.com/infrae/Products.Formulator\n\nCredits\n=======\n\nDevelopers:\n\n- Martijn Faassen (faassen@vet.uu.nl) -- Main developer, design and\n  implementation.\n\n- Clemens Klein-Robbenhaar (robbenhaar at espresto.com) -- Many\n  bugfixes and feature additions.\n\nMany thanks go to:\n\n- Kit Blake (kitblake at v2.nl) -- UI help and design help.\n\n- Yury Don (yura at vpcit.ru) -- contributed EmailField and\n  FloatField, design and implementation help.\n\n- Stephan Richter (srichter at iuveno-net.de) -- contributed LinkField\n  and FileField. Contributed PatternChecker module used by\n  PatternField. Other design and implementation help.\n\n- Nicola Larosa (nico at tekNico.net) -- feedback and bugfixes.\n\n- Magnus Heino (magus.heino at rivermen.se) -- feedback and bugfixes.\n\n- Joel Burton (jburton at scw.org) -- feedback and bugfixes.\n\n- Ulrich Eck (ueck at net-labs.de) -- much help and patience with the\n  TALES tab.\n\n- Dirk Datzert (Dirk.Datzert at rasselstein-hoesch.de) -- feedback and\n  bugfixes.\n\n- Max Petrich (petrich.max at kis-solution.de) -- feedback and\n  bugfixes.\n\n- Matt Behrens (matt.behrens at kohler.com) -- feedback and bugfixes.\n\n- Nikolay Kim (fafhrd at datacom.kz) -- code inspiration for\n  XMLToForm/FormToXML.\n\n- Godefroid Chapelle (gotcha at swing.be) -- Bugfixes.\n\n- Alan Runyan (runyaga at runyaga.com) -- Fix to email regular expression.\n\n- Sascha Welter (welter at network-ag.com) -- Extensive help with email\n  regular expression.\n\n- Christian Zagrodnick (cz at gocept.com) -- Unicode awareness fixes\n  and XML entry form.\n\n- Iutin Vyacheslav (iutin at whirix.com) -- am/pm feature for DateTime\n  fields.\n\n- Kapil Thangavelu (k_vertigo at objectrealms.net) -- Enabled\n  ':record' rendering.\n\n- Pierre-Julien Grizel (grizel at ingeniweb.com) -- ProductForm.\n\n- Sebastien Robin (seb at nexedi.com) -- more consistent ordering in\n  XML serialization, bugfixes\n\n- Guido Wesdorp (guido at infrae.com) -- Added extra_item attribute on\n  compound fields, bugfixes. Fixed unicode error in XMLToForm.\n\n- Yura Petrov (ypetrov at naumen.ru) -- Various FSForm related\n  improvements.\n\n- Vladimir Voznesensky (vovic at smtp.ru) -- Enabling/disabling of fields,\n  bugfix in ``render_view``.\n\n- Jeff Kowalczyk -- Whitespace normalization of sources.\n\n- Paul Winkler, Dieter Maurer -- help with fix so that help system\n  doesn't cause ZODB writes on every startup.\n\n- Garito (garito at sistes.net) -- bugfix with the XML serialization\n  of DateTime values.\n\n- Maciej Pietrzak (magh at apcoh.org) -- Fixes for DateTime validation\n  issues in Zope 2.7.\n\n- Patrick Earl (pat at dril.com) -- Fixes for DateTime / CheckBox\n  field rendering.\n\n- He Wei (hewei at ied.org.cn) -- ZMI and Unicode related fixes.\n\n- Bertrand Croq (bertrand.croq at freeskop.com) -- Fixes for a Unicode\n  issue related to titles of new fields and label for radiobuttons\n  patch\n\n- Ian Duggan (ian at swishmark.com) -- \"Hide day\" in DateTimeField\n  feature\n\n- Reinout van Rees (reinout at vanrees.org) -- LabelField validation\n  bugfix.\n\n- Mikael Barbero (mikael at emu-france.com) -- ZMI enhancement.\n\n- Michael Howitz (mh at gocept.com) -- Run tests on GitHub Actions.\n\nSpecial thanks also goes to Rik Hoekstra.\n\nAlso a thank you to those few valiant souls who suffered through the\nbugs of ZFormulator, the previous implementation. Let's hope this\none's better!\n\nChanges\n=======\n\n2.1 (2023-07-31)\n----------------\n\n- Port to Python 3, supporting Python 3.7 up to 3.11.\n\n\n2.0.1 (2023-03-28)\n------------------\n\nBug fixes\n+++++++++\n\n- Fix HTML quoting for values containing ``\"``.\n\n\n2.0 (2023-03-14)\n----------------\n\nBackwards incompatible changes\n++++++++++++++++++++++++++++++\n\n- Remove support for Zope 2 help system.\n\n- Stop testing Zope 2 compatibility. This release should still work with Zope 2\n  but the testing infrastructure was modernized to use ``plone.testing``\n  instead of ``infrae.testing`` and ``infrae.wsgi`` to be more future proof.\n  Expect this to be the last release working on Zope 2.\n\nFeatures\n++++++++\n\n- Support Zope 4.\n\nOther changes\n+++++++++++++\n\n- Remove (test) dependencies of ``five.grok``, ``infrae.wsgi`` and\n  ``infrae.testing``.\n\n1.16 (2022-06-16)\n-----------------\n\n- Run tests in GitHub Actions.\n\n- Fix deprecation warnings.\n\n\n1.15.5 (2013/10/08)\n-------------------\n\n- Fix various unicode issues following the modifications of the 1.15\n  series.\n\n1.15.4 (2013/08/26)\n-------------------\n\n- ``test_form`` now except a list of bad identifiers for fields as a\n  parameter. An error will be returned if one of those identifier is\n  used by a field.\n\n- HTML entities are now escaped by default inside field values.\n\n- Formulator Widgets will now return unicode when it is possible.\n\n- ``zeam.form`` extractors have been updated to have the same Acquisition\n  wrapping than the ``zeam.form`` widgets.\n\n- Dependencies got properly defined in ``setup.py`` to facilitate the\n  installation of the product.\n\n1.15.3 (2013/05/23)\n-------------------\n\n- Fix unicode issues with the integration of ``zeam.form``.\n\n- Fix required and readonly attributes with the interface of\n  ``zeam.form``.\n\n- Fix ListTextAreaField so it properly works with values from the request.\n\n1.15.2 (2013/03/05)\n-------------------\n\n- Fix compability with the latest version of ``zeam.form``.\n\n1.15.1 (2012/12/12)\n-------------------\n\n- Don't validate values against criterias when deserializing\n  when. This makes impossible to deserialize values that are\n  well-formed, but invalid on a given instance, loosing all\n  information by doing so.\n\n1.15 (2012/09/04)\n-----------------\n\n- Add support to integrate with ``zeam.form``.\n\n- Add support for validators to validate already extracted values from\n  the request.\n\n- Some level of validation can be disabled when extracting values from\n  the request, if a value with the id ``field.id_novalidate`` is\n  present as well in the request. This is usefull to extract form\n  values from a request intended for an older version of your form.\n\n1.14 (2011/11/10)\n-----------------\n\n- Compatibility fixes for Zope 2.13 and Python 2.7.\n\n- DateTime widget now support datetime values.\n\n- Add a method ``test_form`` on a Form to know if it is broken (have\n  ZODB broken fields, or other problems).\n\n- Add a way to programmatically change all fields options for a form.\n\n- Add support to serialize/deserialize form values on a content\n  object (see the adapters code).\n\n- TAL expressions in fields now have access to a context value: the\n  acquisition parent of the form.\n\n- Add some fields that where somewhere else in the past,\n  EmailLinesField and an InterfaceField.\n\n- Add support for interfaces in XML import/export, for an interface\n  field.\n\n- Support for FileSystemSite is optional.\n\n1.13 (2010/07/15)\n-----------------\n\n- Compatibility fixes for Zope 2.12 and Python 2.6. Those are the\n  requirements now.\n\nPorted from 1.11 branch:\n\n- Fix problem with MultiListFields not showing values from request\n  if in unicode mode, as the incoming values from the request\n  did not get converted to unicode in the Field._get_default\n\n- The \"convert_unicode\" helper now expects a separate parameter\n  \"encoding\" instead of assuming utf8 encoding always.\n\n\nPorted from 1.12 branch:\n\n- The majority of Widgets now auto-generate an html 'id' attribute for the\n  rendered widget.  This 'id' attribute is accessible in page templates via\n  the field/html_id.  If the field has an id attribute set in the 'extra'\n  parameter, the value of this attribute is returned, rather than the\n  auto-generated id.  The html id and name attributes are now visible\n  in the ZMI edit screen for the fields.  The widgets which do not have\n  html_ids are: RadioWidget, MultiCheckBoxWidget, DateTimeWidget.  The widgets\n  have a property \"has_html_id\" that templates can use to determine whether\n  to place a label around the field title.\n\n\n1.11.6 (2009/11/11)\n-------------------\n- Added the option for the DateTime Widget to use a popup calendar to input\n  the date and time.\n\n- The DateTime Widget popup defaults to midnight for the time.\n\n- The DateTime Widget now understands both upper and lower case 'am' and 'pm'.\n\n- Fix the factor that a REQUEST is required to use a field object on\n  recent Zope (2.11).\n\n- Fixed field events: copy of forms containing fields and folders\n  containing forms was broken.\n\n- Added a 'required' validator property to FileFields\n\n- Added a validator for FileFields to check whether the value is a\n  StringType, which is an indicator that the form encoding is set\n  incorrectly.  The error message informs the user the form\n  encoding should be set to multipart/form-data.\n\n- Property descriptions are now displayed on the edit tab.  These already existed\n  but were never exposed in the ZMI.\n\n1.11.5 (2008/30/09)\n-------------------\n\n- Reformat documentation to ReST to release an egg.\n\n1.11.4\n------\n\nBugs fixed:\n\n- Zope i18n *needs* an 'en' directory, or browsers like firefox will\n  use the first language in the language preferences list that does\n  have a translation, even if english is above it in the list of\n  preferences.\n\n- Tainted strings caused instance error, converted tainted strings\n  back to strings.\n\n- Small fix to Selection Field Validators, whose 'validate' functions\n  failed if items values are stored as unicode\n\n- update imports needed by the file system Formulator form\n  representation, if CMF is installed.  Now both CMF 1.x (for Plone\n  2.x) and CMF 2.x (for Plone 3.x) should work.  Patch provided by\n  \"lcanacheu\".\n\n- checkbox fields and multicheckboxfield items are now rendered with\n  labels around them.\n\n1.11.3\n------\n\nBugs fixed:\n\n- Field Validators 'validate' functions did not accept unicode\n  values as input on fields that require unicode.\n\n- Zope 2.10 compatibility: \"MessageIDFactory\" got renamed to\n  \"MessageFactory\"; same for \"MessageID\"; the monkey to allow\n  this class got influenced, too, so all ZODB importing that\n  class need to be updated, too (Problem reported by Yinghoong\n  Chan and Josef Meile)\n\n- Zope 2.10 event handling. Formulator now uses Zope 3 style\n  event handling so that no deprecation warnings are seen\n  anymore.\n\n- in Zope 2.10 copy & paste of fields did not work anymore, as\n  apparently Zope now requires permission info in the data\n  structure returned by all_meta_types. We have created a new\n  permission \"Add Formulator Fields\" which is checked when you\n  create a formulator field, or copy & paste it.\n\n  Note that there is still a \"cosmetic\" security issue if a\n  non-manager user tries to add a formulator field. \"Add and\n  Edit\" works, but \"Add\" gives a login dialog. Actually the\n  field *did* get added, but the URL to which the system tries\n  to return afterwards does not allow access.\n\n1.11.2\n------\n\nBugs fixed:\n\n- Copied fix from the 1.10 branch, TypeError when passing something other\n  than a string into the Validator.\n\n1.11.1\n------\n\nBugs fixed\n\n- Shut up startup warnings about security declarations in Zope\n  2.8.5.\n\n1.11\n----\n\nFeatures Added:\n\n- Formulator now needs Zope 2.8.4 + Five 1.2. It uses Five's i18n\n  architecture instead of PlacelessTranslationService.  Five 1.2 can\n  be downloaded at http://codespeak.net/z3/five\n\n  If you do not want to install Five 1.2 for some reason, simply\n  remove 'configure.zcml' in the Formulator package. Formulator will\n  then work (but not have i18n support) in a plain Zope 2.8\n  installation.\n\n- Radiobuttons are now rendered with a label around their field value,\n  allowing to click on the value instead of the radio button itself.\n  (Patch from Bertrand Croq).\n\nBugs fixed:\n\n- Fixed unicode issues in FormToXML, when the form was in unicode mode\n  and message fields contained non-ascii chars, XML serialization\n  didn't work.\n\n1.10\n----\n\nFeatures Added:\n\n- Allow to group fields of the ZMI form for each field\n  into more groups than the default \"widget\" and \"validator\"\n  (Patch from Mikael Barbero)\n\nBugs fixed:\n\n- Fixed AttributeError (on __call__) on DummyMessageID.\n\n1.9.0\n-----\n\nFeatures Added:\n\n- Added the 'modules' namespace for TALES expresions.\n\n- when reordering a field in the \"Order\" tab the current field\n  is \"sticky\" for faster moving up and down.\n  (Patch from Sebastien Robin)\n\n- Addes serializeValue and deserializeValue methods to the\n  validator classes. The former takes a sax handler as an argument\n  and sends it sax events to serialize the field value, the latter\n  takes serialized values and massages them back into valid formulator\n  values. These methods are not used within formulator itself, and\n  introduce no new dependencies.\n\n- A new flag to the DateTimeField widget allows to hide the day,\n  allowing to specify month and year only. The day defaults to the\n  first day of the month in this case.\n  (Patch from Ian Duggan)\n\nBugs Fixed:\n\n- Fixed issue for render_view of list fields with no default\n  value.\n\n- Fixed issue with non-ascii characters in the title of a newly\n  created form or field if the unicode property has been set\n  (Patch from Bertrand Croq)\n\n- Calling \"validate\" on LabelField directly failed with a\n  KeyError: 'external_validator' (Patch from Reinout van Rees)\n\n- A PatternField may have returned garbled results if the pattern\n  has several 'e' or 'f' in the pattern and 'd', 'e' of 'f' in the\n  field value\n\n1.8.0\n-----\n\nFeatures Added:\n\n- Remove i18n prefix and message id generation strategy from\n  Formulator.  It is cleaner to do this with i18n:translate in\n  ZPT. Extraction of messages can be done from .form XML files\n  (though this functionality is not yet part of Formulator).\n\n- Introduce message id markers and .po file for Formulator generated\n  error messages. These can be made translated in your own\n  page templates like this::\n\n     <p i18n:domain=\"formulator\" i18n:translate=\"\"\n        tal:content=\"my_error_text\"></p>\n\n- Test framework now uses (and requires) ZopeTestCase. This allowed\n  some testing setup cruft to be removed.\n\nBugs Fixed:\n\n- Added explicit security declaration for the \"fieldAdd\" DTML-file.\n  This fixed a problem with copy & paste fields in Zope 2.7.3.\n\n- Fields having been removed via the XML tab in the ZMI still\n  showed up in the \"Contents\" tab.\n\n- As a convenience TALES expressions now may return \"None\" for\n  the default value, which is rendered as the empty string.\n  (previously it has been rendered as \"value\".)\n\n1.7.0\n-----\n\nFeatures Added:\n\n- Added FormulatorFormFile, which can be used to load XML\n  representations of forms from filesystem code like PageTemplateFile.\n\n- i18n-id and i18n-domain support for forms, including descriptions,\n  error-messages, etc.\n\nBugs Fixed:\n\n- changed way selection fields check whether their items property is a\n  list or single item.\n\n- Made system not reregister help for Fields which already have help,\n  to avoid ZODB writes on startup.\n\n- Fixed singleton submit button that wasn't properly closed.\n\n- Zope 2.7 compatibility: In Zope 2.7 the behaviour when trying to\n  construct invalid DateTime object changed from raising string\n  exceptions to class based exceptions. This has caused the\n  DateTimeField's to pass through the new exceptions instead of\n  converting them to ValidationError.\n\n- PatternFields are no longer documented as \"experimental\" in the Help\n  system.\n\n- DateTime values field values (like start or end time) have been\n  wrongly represented as strings in the XML representation.\n\n- Fixed bug with rendering of ListField's similar to the \"single\n  element list with one two-char string\" bug fixed for validation in\n  1.6.2.\n\n- Fixed bug in DateTime field where a set \"default to now\" overwrote\n  values in the request.\n\n- Severel spelling bugs.\n\n- Fixed bug where a set \"default\" for a checkbox field would always\n  render a checked checkbox, even if redisplaying a submitted form\n  where the user has unchecked the checkbox Actually the works only if\n  the opening ``<form>`` tag is rendered by the ``form.header()`` method, or\n  if a hidden field \"formulator_submission\" is included manually in\n  the form.\n\n- Added tests for the LinesValidator.\n\n- Fixed bug with ``render_from_request`` LinesField, which splitted\n  strings coming in as raw unvalidated data from the request into many\n  lines with one single character on each line\n\n- Fixed bug where entering non ascii values in the ListField items has\n  not been handled properly in unicode mode\n\n- Worked around Zope2.7/python2.3 compatibility bug.  If a character\n  like \"<\" has inserted in a string field this triggered an obscure\n  Zope bug when feeding this value into the ``string.strip()`` function\n  on validation.\n\n\n1.6.2\n-----\n\nBugs Fixed:\n\n- Fixed bug which caused validation of listfields to throw an\n  exception when a list of strings was used as the value of\n  ``<items>`` and one of the elements was 2 characters long.\n\n- Formulator should now work again in Zope 2.7; Zope 2.7 has a change\n  to the way it retrieved the character set it used to to display the\n  ZMI. This interacted badly with the recent changes in Formulator to\n  support unicode.\n\n- Added 'refresh.txt'. I don't consider it a bug if this doesn't work\n  for you though -- I'm not using it. :)\n\n- XML representation of method-values attributes did not work.\n\n- python 2.1.3 compatibility: boolean values like \"required\" are\n  translated to int on XML serializations/deserialization.\n\n  The last two fixes are due to Sebastien Robin\n\n- render_hidden of DateTimeField's and fields allowing multiple\n  selections did not lead to something useful for validation.\n\n- RadioField and ListField did not display the text but the value in\n  ``render_view``.\n\nOther:\n\n- Whitespace normalization in sources.\n\n1.6.1\n-----\n\nBugs Fixed:\n\n- Adding Fields to empty Groups had not been possible.\n\n- ZMI \"Order\" tab of an empty form did raise an exception.\n\n1.6.0\n-----\n\nFeatures Added:\n\n- FileSystemSite/DirectoryView improvements:\n\n  * XML filesystem representation of Formulator forms can now\n    also be used with CMF (if FileSystemSite is not installed).\n\n  * FSForm gets automatically registered with the directory\n    view system if CMF or FileSystemSite is installed.\n\n- Infrastructure for Validators not to get taken into account in\n  validation procedures (``need_validate``).\n\n- A new label field. Doesn't participate in validation. It shows\n  its text as a label in the form.\n\n- Unicode mode. A form can now be put in 'unicode mode', which\n  means it stores all its textual data as unicode strings. This\n  allows for easier integration with Zope systems that use unicode\n  internally, such as Silva.\n\n- Disabling of fields. A field can now be disabled from being\n  displayed or validated by unchecking the 'Enabled' validator\n  property. This can be done dynamically as well using TALES\n  overrides.\n\nBugs Fixed:\n\n- The css_class value of a DateTime field had been ignored.  It\n  is now properly passed down to its subfields, so all subfield\n  elements are rendered with the given css_class value.\n\n1.5.0\n-----\n\nFeatures Added:\n\n- Added ProductForm, which provides a wrapping around\n  Formulator.BasicForm, allowing it to be created inside a\n  product but used outside it.\n\n- Allow turning off of XML prologue section.\n\n- Optimization of TALESMethod by caching compiled expression.\n  This speeds SilvaMetadata indexing up by a lot if a fallback\n  on default is made, especially in the case of Python\n  expressions, as it avoids lots of compilation overhead.\n\n- Extra attribute defined for list/multicheckbox/radio fields\n  called 'extra_item', which allows setting HTML attributes to\n  individual list item/checkbox/radio button.\n\nBugs Fixed:\n\n- XML serialization should be more consistent now; field properties\n  are now ordered by name upon serialization.\n\n- Allow XML export of BasicForm.\n\n1.4.2\n-----\n\nBugs Fixed:\n\n- Sticky forms should now work correctly in the presence of unicode.\n  Encoded data is automatically converted to unicode if the information\n  is pulled from the REQUEST form.\n\n1.4.1\n-----\n\nBugs Fixed\n\n- It was not possible to make DateTime fields not required when\n  ``allow_empty_time`` was enabled. Fixed.\n\n1.4.0\n-----\n\nFeatures Added\n\n- Added limited ability to output unicode for selected\n  fields. Only works properly in Zope 2.6.x, and the HTML pages\n  these forms are in need an output encoding set (such as\n  UTF-8, which is also Formulator's default encoding). If\n  'unicode' checkbox is checked Formulator will try to interpret\n  its input in the Form's encoding (default is UTF-8). It will\n  also try to display its values in that encoding. Note that\n  only field values and items currently work with unicode -- the\n  rest of the textual properties of a field are still stored as\n  8-bits. If you make sure that these properties are encoded as\n  UTF-8 (or whatever encoding you choose for the form) things\n  should be okay, however.\n\n- Can now also change forms using XML (not just view it).\n\n- DateTime fields can now optionally input AM/PM.\n\n- DateTime fields can now optionally be set to allow time to\n  be left empty.\n\n- 'whitespace_preserve' option on string type fields. If turned on,\n  whitespace will not be automatically stripped and will count as\n  input.\n\n- 'render_view' method on fields to render the value outside a\n  widget.\n\n- Added some code support used by SilvaMetadata to enable rendering\n  of fields with Zope's ':record' syntax.\n\nBugs Fixed:\n\n- Fixed a Python2.2 compatibility bug in ``XMLObjects.py``.\n\n- DateTimeField now picks up default values from REQUEST\n  properly if necessary.\n\n- XML representation of the LinkField \"check_timeout\" value\n  messed the type=\"float\" attribute.\n\n- Additional unit tests.\n\n1.3.1 (2002/12/20)\n------------------\n\nFeatures Added:\n\n- Error messages can now be included in the XML serialization.\n\n- Ability to encode lists as a special type in values.\n\nBugs Fixed:\n\n- Some more proper encodings.\n\n- Handle case where group has no field.\n\n- Handle DateTime field better.\n\n1.3.0 (2002/11/26)\n------------------\n\nFeatures Added:\n\n- FormToXML and XMLToForm modules have functions to serialize\n  (most of) form to XML and read it in again (over an existing\n  form).\n\n- New XML tab for forms which shows the XML serialization (no\n  saving option yet).\n\n- FSForm.py uses XML serialization to provide a formulator form\n  version for FileSystemSite. It does not get imported by\n  default.\n\nBugs Fixed:\n\n- The email validator has an improved regular expression.\n\n- Fix error that occured when trying to render DateTimeField as\n  hidden.\n\n1.2.0 (2002/03/06)\n------------------\n\nFeatures Added:\n\n- Changes to exception infrastructure so errors can now be\n  imported and caught in a through the web Python script. Example::\n\n    from Products.Formulator.Errors import ValidationError, FormValidationError\n\n- added ``__getitem__`` to Field so instead of using ``get_value()`` you can\n  also do this in Python: form.field['title'], and in ZPT you can\n  use this in path expressions: form/field/title\n\n- made a start with Formulator unit tests; some validators get\n  automatically tested now.\n\nBugs Fixed:\n\n- Removed dependencies of the name of 'Add and Edit' button to make\n  internationalization of the management interface easier.\n\n- added permission to make ZClasses work a bit better (but they\n  still don't cooperate well with Formulator, I think. I don't use\n  ZClasses, so I hope to hear from this from ZClass users)\n\n- Form's properties tab now visible and form tabs stopped\n  misbehaving.\n\n- Lists and such should handle multiple items with the same value\n  a bit better, selecting only one.\n\n- the LinkField now checks site-internal links better.\n\n1.1.0 (2001/10/26)\n------------------\n\nBugs Fixed:\n\n- Fixed bug in form settings tab.\n\n- the LinkField now checks site-internal links better.\n\n1.0.9 (2001/10/05)\n------------------\n\nFeatures Added:\n\n- New TALES tab for fields as a more powerful Override tab;\n  PageTemplates needs to be installed to make it work.\n\n- added 'name' attribute for forms. When the form header is\n  rendered, name will be an attribute. This can be used to\n  control forms with Javascript.\n\nBugs Fixed:\n\n- More compliance with Zope product guidelines; moved dtml\n  files from www dir to dtml dir.\n\n- Fixed a bug in that form titles would not work. Forms now have\n  titles, and you can change them in the settings tab. (Formulator\n  does not use the title property internally though)\n\n1.0.1 (2001/07/27)\n------------------\n\nBugs Fixed:\n\n- Fixed bug with renaming groups. Previously, renamed groups were not\n  properly stored in the ZODB.\n\n- Made MultiSelectionValidator (used by MultiListField among others)\n  deal better with integer values.\n\n- Hacked around CopySupport changes in Zope 2.4.0; renames work\n  again now.\n\n1.0 (2001/07/10)\n----------------\n\nFeatures Added:\n\n- New field: RawTextAreaField. A textarea field that doesn't\n  do a lot of processing on the text input.\n\n- Checked in BSD license text.\n\nBugs Fixed:\n\n- Fixed minor bug in year handling of DateTimeField.\n\n- Now hidden fields also take text from 'extra' property.\n\n- Fixed bug in MultiItemsWidget; would not deal with only a\n  single item being selected.\n\n0.9.5 (2001/06/27)\n------------------\n\nFeatures Added:\n\n- Added FileField (with browse button). Can be used to upload\n  files if form is set to multipart/form-data.\n\n- Added LinkField for URLs.\n\n- Made ListField and RadioField more tolerant of integer\n  (and possibly other) values, not only strings.\n\n- Made ListField and RadioField happy to deal with non-tuples too in the\n  items list. In this case, the item text and value will be identical.\n\n- Refactored ListWidget and RadioWidget so they share code; they both\n  inherit from SingleItemsWidget now.\n\n- Added LinesField to submit a list of lines in a textarea.\n\n- Added MultiListField and MultiCheckBoxField, both use new\n  MultiItemsWidget and MultiSelectionValidator.\n\n- Added EXPERIMENTAL PatternField.\n\n0.9.4 (2001/06/20)\n------------------\n\nFeatures Added:\n\n- Added API docs for Form, BasicForm and ZMIForm.\n\n- Renamed the confusingly named PythonForm and PythonField to\n  ZMIForm and ZMIField, as they are used from the Zope Management\n  Interface and not from Python.\n\n- Added render() method to form for basic form rendering.\n\n- Added Formulator HOWTO document.\n\nBugs Fixed:\n\n- Removed some validation code that wasn't in use anymore (items_method).\n\n- Removed 'has_field_id' in Form as this duplicated\n  the functionality of 'has_field'.\n\n- Turned <br> in Python sources to <br /> for XHTML compliance.\n\n- Tweaked radiobutton; text is now closer to the button itself,\n  different buttons are further apart.\n\n0.9.3 (2001/06/12)\n------------------\n\nFeatures Added:\n\n- added RadioField for simple display of radio buttons.\n\n- added action, method and enctype property to form settings.\n  These are displayed using the special form.header() and form.footer()\n  methods.\n\n- added override tab to allow all properties to be overridden by\n  method calls instead. 'items_method' in ListField went\n  away.\n\n- added ability to display DateTimeFields using drop down lists\n  instead of text input. Added some other bells and whistles to\n  DateTimeField. Changed some of the inner workings of composite\n  fields; component fields are now unique per field instance\n  instead of shared between them.\n\n- is_required() utility method on field to check whether a field\n  is required.\n\n- some internal features, such the ability to have a method\n  called as soon as a property has changed.\n\nBugs Fixed:\n\n- Fixed typos in security assertions.\n\n- use REQUEST.form instead of REQUEST where possible.\n\n- display month and day with initial zero in DateTimeField.\n\n- Fixed bug in validate_all_to_request(); what can be validated\n  will now be added to REQUEST if possible, even if a\n  FormValidationError is raised.\n\n0.9.2 (2001/05/23)\n------------------\n\nFeatures Added:\n\n- Ability to rename groups, including the first 'Default' group.\n\n- Improved support for sticky forms; form.render() can now\n  take an optional second argument, REQUEST, which can come\n  from a previous form submit. Even unvalidated fields will\n  then be sticky.\n\n- fields can call an extra optional external validation\n  function (such as a Python script).\n\n- New alternate name property: the alternate name is added to\n  the result dictionary or REQUEST object after validation. This\n  can be useful to support field names which wouldn't be valid\n  field names, which can occur in some locales.\n\n- New extra property; can be used to add extra attributes to\n  a HTML tag.\n\n- Some IntegerField properties can now be left empty if\n  no value is required, instead of having to set them to 0.\n\n- Merged functionality of RangedIntegerField into IntegerField.\n  RangedIntegerField is not addable anymore, though supported\n  as a clone of IntegerField for backwards compatibility. Leaving\n  'start' and 'end' empty in the new IntegerField will mean those\n  checks will not be performed.\n\nBugs Fixed:\n\n- Added more missing security declarations.\n\n- html_quote added in various places to make fields display\n  various HTML entities the right way.\n\n0.9.1 (2001/05/13)\n------------------\n\nFeatures Added:\n\n- Widgets now have a 'hidden' property. If set, the widget is\n  drawn as a 'hidden' field. 'hidden' fields do get validated\n  normally, however.\n\n- Changed API of Widget and Validator slightly; render() and\n  validate() methods now take an extra 'key' argument indicating\n  the name the field should have in the form. This is necessarily\n  to handle sub fields of composite fields.\n\n- Added EmailField and FloatField.\n\n- Added some infrastructure to support 'composite fields'; fields\n  composed out of multiple sub fields.\n\n- Added DateTimeField, the first example of a composite field\n  (field made of other fields).\n\nBugs Fixed:\n\n- General code cleanups; removed some unused methods.\n\n- Fixed security assertion for validate_all_to_request() method.\n\n- MethodFields now check whether they have 'View' permission to\n  execute listed Python Script or DTML Method.\n\n- RangedInteger is now < end, instead of <=, compatible with the\n  documentation.\n\n0.9 (2001/04/30)\n----------------\n\n- Initial public release of Formulator.\n\n\n\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Form library for Zope 4",
    "version": "2.1",
    "project_urls": {
        "Homepage": "https://github.com/infrae/Products.Formulator"
    },
    "split_keywords": [
        "form",
        "generator",
        "zope4"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4eb8613df396297ec048a04d1e97b5aefa34180f3ac4d92d1c53d86b63822607",
                "md5": "ad38afcf4e774dff0c4300d6b0b1a632",
                "sha256": "e550ba238aa4abec8629a30fc6891f8f01e7698468c53632f1bb583cd3b96c3c"
            },
            "downloads": -1,
            "filename": "Products.Formulator-2.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ad38afcf4e774dff0c4300d6b0b1a632",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 142004,
            "upload_time": "2023-07-31T06:31:52",
            "upload_time_iso_8601": "2023-07-31T06:31:52.382479Z",
            "url": "https://files.pythonhosted.org/packages/4e/b8/613df396297ec048a04d1e97b5aefa34180f3ac4d92d1c53d86b63822607/Products.Formulator-2.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "232adf777fc883e09d23401ff96e33252ae867016060356c253c672214098037",
                "md5": "fc62649ebe0ddac37806b52cfbda8fb5",
                "sha256": "48644cf77951b2acd50d60e1c6c9a7c5885f8f2c71987eccb0e5604a31280b9a"
            },
            "downloads": -1,
            "filename": "Products.Formulator-2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "fc62649ebe0ddac37806b52cfbda8fb5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 127507,
            "upload_time": "2023-07-31T06:31:54",
            "upload_time_iso_8601": "2023-07-31T06:31:54.339513Z",
            "url": "https://files.pythonhosted.org/packages/23/2a/df777fc883e09d23401ff96e33252ae867016060356c253c672214098037/Products.Formulator-2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-31 06:31:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "infrae",
    "github_project": "Products.Formulator",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "products.formulator"
}
        
Elapsed time: 0.10190s