j01.form


Namej01.form JSON
Version 4.0.3 PyPI version JSON
download
home_pagehttps://pypi.org/project/j01.form/
SummaryEnhanced zope 3 form with jsonrpc, history and a lot more
upload_time2023-07-20 05:17:34
maintainerNone
docs_urlNone
authorRoger Ineichen, Projekt01 GmbH
requires_pythonNone
licenseZPL 2.1
keywords j01 p01 z3c form twitter bootstrap 3 jquery zope3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            An improved z3c.form concept supporting JSONRPC with many options for rapid
development.


=======
CHANGES
=======

4.0.3 (2023-07-20)
------------------

- Bugfix: added isRequiredMissingValue and use them for validation in the
  extractData method. Ensure that 0 (zero) is a valid widget input by default.
  An enpty text input is a missing value but 0 (zero) is not a missing input
  by default.

- Bugfix: locate the widget after setup and before calling the update method

- Feature: use widgetIgnoreContexts in widget setup if available for given
  field name


4.0.2 (2021-05-18)
------------------

- bugfix; use better expression for radio and checkbox picker widget. Use name
  instead of startswith name expression. This prevents to apply the picker
  widget to similar starting filed/widget names.


4.0.1 (2021-05-14)
------------------

- bugfix: added structure to description in display widget layout template. This
  makes it consistent with the input widget and allows to render urls in the
  widget description.


4.0.0 (2021-01-04)
------------------

- switch to new layout style concept. Replace old bootstrap 3 and 4
  styles with new independent layout styles.


2.5.0 (2020-04-21)
-------------------

- headsup: reflect changes in j01.select2 which got updated to version 4.0.*.
  Some global declarations imported from j01.select2 got removed in j01.select2.
  Please review sour Select2 widget implementations and adjust them to the new
  Selet2 Version 4.0.* and up.


2.4.10 (2019-05-14)

- bugfix: fix issues with latest z3c.form py3 changes. Ensure that the ordered
  dict used in buttons get initialized.

- feature: added DDSlick select widget including an optional widget using
  MCustomScrollbar.


2.4.9 (2018-11-08)
------------------

- feature: added getPromptSingleSelect2Widget providing no value and force
  selecting a value via widget prompt option.


2.4.8 (2018-10-05)
------------------

- bugfix: fix missing _type in password widget


2.4.7 (2018-09-17)
------------------

- bugfix: don't render not checked checkbox items in hidden mode

- bugfix: fix tal markup for different display widgets


2.4.6 (2018-06-05)
------------------

- feature: added ProxyWidget supporting multiple ':' as separator between key
  value. The first : is used as key, value separator. Any following ':' get
  joined as value e.g. <proto>:<host:port>


2.4.5 (2018-04-30)
------------------

- feature: added j01.rater widget. But only if j01.rater package is installed.
  There is no new dependency. It's just conditinal and provides the coorect
  j01.form input and layout templates.


2.4.4 (2018-04-24)
------------------

- feature: added m01.gmap widget. But only if m01.gmap package is installed.
  There is no new dependency. It's just conditinal and provides the coorect
  j01.form input and layout templates.


2.4.3 (2018-04-09)
------------------

- updated autosize javascript to version 4.0.1


2.4.2 (2018-03-15)
------------------

- feature: added showNoValueItem option for RadioWidget. This option allows to
  render an additional "No value" item for select None as value. This can get
  enabled if the schema defines required=False. If schema required=True is
  defined, you need to add None as valid value to your source or vocabulary
  and adjust the schema messing_value to something else then None for make
  None a valid value. By default, the showNoValueItem is set to False and
  forces not rendering "No value" as option for not required fields.

- feature: added structure to widget description. This allows to render
  html as widget description. Take care if you do some wired things with
  the widget and render custom user input in the widget description. Because
  this whould not be safe and could lead in a cross site injection. But normaly
  this is save if you control the translation process and only render schema
  field description as widget description.


2.4.1 (2018-02-15)
------------------

- feature: added bootstrap 3 DateTimePickerWidget. This widget is available if
  the j01.datetimepicker package is installed


2.4.0 (2017-09-18)
------------------

- bugfix: make sure we don't apply widget changes for widgets defined in
  widgetIgnoreContexts in applyChanges method

- bugfix: adjust ignoreRequiredOnValidations implementation. use new
  J01FieldWidgets and make sure that the ignoreRequiredOnValidation will not
  get override by the default FieldWidgets ignoreRequiredOnExtract attribute

- security: remove structure for widget label in checkbox widget and
  widget layout template. Make sure widget label can't get used for a
  script injection. This is only relevant if you implement persistent
  widgets or the translator provides unsecure code.

- feature: implemented custom FieldWidgets (J01FieldWidgets) which reflects
  the form field/widget conditions like widgetRequireds, widgetIgnoreRequests,
  ignoreRequiredOnValidations

- feature: implemented widgetIgnoreApplyChanges and customized applyChanges
  method which is able to ignore apply data handling for fields defined
  in widgetIgnoreApplyChanges. This is usefull if a field should get ignored
  in applyChanges because we handled them with a different button handler


2.3.0 (2017-06-29)
------------------

- feature: added contentRenderMethodName for rendering the response content
  based on additional javascript methods

- bugfix: support no value in RadioWidget


2.2.1 (2017-03-10)
------------------

- bugfix: fix broken select_display.pt tal markup


2.2.0 (2017-01-11)
------------------

- feature: implemented getLabel method in checkbox widget. This allows use to
  render enhanced labels including links and more. This is usefull for custom
  single checkbox widgets e.g. render a href link to the AGB etc.

- bugfix: fix ignoreRequest setup. Since there is no concept for apply the
  ignoreRequest value per field, we need to apply the ignoreRequest value
  on the widget. But since the widget update call will setup the widget and
  also call the widget update method, we need to apply the ignoreRequest
  value after this widget update call and call the update method again.
  Since the ignoreRequest per field/widget concept was broken, we also changed
  the applyIgnoreRequest to applyWidgetIgnoreRequest.

- reorganize less files and support better support for reuse the files in other
  projects. The generated css files and original less files provide the same
  code as before. We just added another indirection and moved the real less
  code to a folder called source and removed every include in this source
  files.

- feature: new layout mixin helper class offering html and body element id and
  css class mixins in page and forms.

- feature: update to autosize 3.0.17


2.1.0 (2015-07-19)
------------------

- feature: update to bootstrap v3.3.5

- feature: update to bootstrap-select v1.7.2

- feature: update to autosize v3.0.8


2.0.3 (2015-06-30)
------------------

- bugfix: prefix datepicker widget class and use bootstrap-datepicker. This
  prevents to messup with the div.datepicker box.


2.0.2 (2015-06-29)
------------------

- bugfix: catch TypeError based on broken absolutURL lookup. This can happen
  if an error view or breadcrumb is not locatable.

- bugfix: added missing WidgetMixin to MultiWidget.This was failing because of
  the missing showRequired condition.

- feature: added showWidgetLabel and showKeyWidgetLabel options for disable
  labels in multi widget

- feature: added widgetShowLabels and widgetShowRequireds to form mixin for
  disable widget label and required elements at form level


2.0.1 (2015-06-09)
------------------

- bugfix: changed widgetIgnoreRequiredOnExtracts to ignoreRequiredOnValidations
  because the widget property name is called ignoreRequiredOnValidation

- feature: update to bootstrap v3.3.4

- feature: remove shadow and transition

- feature: support ordered select widget if j01.selectordered package is
  available

- feature: implemented default widget and widget template setup usable for
  doc test setup where we need widgets and don't have a full zcml basedtesting
  setup.

- feature: improve styles and added more variables

- added more samples to j01.demo (not in this package, see j01.demo package)


2.0.0 (2015-03-17)
------------------

- switch to improved j01.jsonrpc implementation and support p01.testbrowser

- feature: added MultiWidget

- changed form and MultiWidget row class to widget-row for better compatibility
  with twitter bootstrap where row is used for the layout grid

- moved j01.form.demo to j01.demo package which provides a full zope server
  setup and some demo pages


1.0.1 (2015-01-20)
------------------

- feature: implemented form status javascript for show a progress line based on
  filled widgets

- feature: support new browser history api attributes given from j01.jsonrpc

- feature: ensure default form name and id if an empty prefix get used.
  This makes button click handler working with an empty form prefix. Usable for
  simple login form handling.

- bugfix: fix missing updateWidgets call. Only updateWidgets from super class
  was called.


1.0.0 (2014-04-04)
------------------

- implemented new button concept based on new j01.jsonrpc.btn implementation.
  Use buttons from btn module instead of jsbutton.


0.5.1 (2014-03-25)
------------------

- removed p01.form configuration


0.5.0 (2014-03-25)
------------------

- initial release

- enhanced z3c.form widgtes and form classes supporting form-control as input
  css class. The form-control class is used as marker for twitter bootstrap 3
  form fields/controls. This makes it simple to use with twitter bootstrap 3 but
  could also get used with your own css styles. The j01.form package also
  provides a radio/checkbox widget using overlay icons and styles for
  rendering nicer radio and checkbox controls. Other enhanced widgets provide
  nicer select and multi select rendering.

- implemented html5 input widgets

- use new p01.schema package supporting html5 schema fields

            

Raw data

            {
    "_id": null,
    "home_page": "https://pypi.org/project/j01.form/",
    "name": "j01.form",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "j01 p01 z3c form twitter bootstrap 3 jquery Zope3",
    "author": "Roger Ineichen, Projekt01 GmbH",
    "author_email": "dev@projekt01.ch",
    "download_url": "https://files.pythonhosted.org/packages/a5/a4/c18935ebd280697918561a1f948c92c87e5e434e02f3188fa1d35e2d98c9/j01.form-4.0.3.tar.gz",
    "platform": null,
    "description": "An improved z3c.form concept supporting JSONRPC with many options for rapid\ndevelopment.\n\n\n=======\nCHANGES\n=======\n\n4.0.3 (2023-07-20)\n------------------\n\n- Bugfix: added isRequiredMissingValue and use them for validation in the\n  extractData method. Ensure that 0 (zero) is a valid widget input by default.\n  An enpty text input is a missing value but 0 (zero) is not a missing input\n  by default.\n\n- Bugfix: locate the widget after setup and before calling the update method\n\n- Feature: use widgetIgnoreContexts in widget setup if available for given\n  field name\n\n\n4.0.2 (2021-05-18)\n------------------\n\n- bugfix; use better expression for radio and checkbox picker widget. Use name\n  instead of startswith name expression. This prevents to apply the picker\n  widget to similar starting filed/widget names.\n\n\n4.0.1 (2021-05-14)\n------------------\n\n- bugfix: added structure to description in display widget layout template. This\n  makes it consistent with the input widget and allows to render urls in the\n  widget description.\n\n\n4.0.0 (2021-01-04)\n------------------\n\n- switch to new layout style concept. Replace old bootstrap 3 and 4\n  styles with new independent layout styles.\n\n\n2.5.0 (2020-04-21)\n-------------------\n\n- headsup: reflect changes in j01.select2 which got updated to version 4.0.*.\n  Some global declarations imported from j01.select2 got removed in j01.select2.\n  Please review sour Select2 widget implementations and adjust them to the new\n  Selet2 Version 4.0.* and up.\n\n\n2.4.10 (2019-05-14)\n\n- bugfix: fix issues with latest z3c.form py3 changes. Ensure that the ordered\n  dict used in buttons get initialized.\n\n- feature: added DDSlick select widget including an optional widget using\n  MCustomScrollbar.\n\n\n2.4.9 (2018-11-08)\n------------------\n\n- feature: added getPromptSingleSelect2Widget providing no value and force\n  selecting a value via widget prompt option.\n\n\n2.4.8 (2018-10-05)\n------------------\n\n- bugfix: fix missing _type in password widget\n\n\n2.4.7 (2018-09-17)\n------------------\n\n- bugfix: don't render not checked checkbox items in hidden mode\n\n- bugfix: fix tal markup for different display widgets\n\n\n2.4.6 (2018-06-05)\n------------------\n\n- feature: added ProxyWidget supporting multiple ':' as separator between key\n  value. The first : is used as key, value separator. Any following ':' get\n  joined as value e.g. <proto>:<host:port>\n\n\n2.4.5 (2018-04-30)\n------------------\n\n- feature: added j01.rater widget. But only if j01.rater package is installed.\n  There is no new dependency. It's just conditinal and provides the coorect\n  j01.form input and layout templates.\n\n\n2.4.4 (2018-04-24)\n------------------\n\n- feature: added m01.gmap widget. But only if m01.gmap package is installed.\n  There is no new dependency. It's just conditinal and provides the coorect\n  j01.form input and layout templates.\n\n\n2.4.3 (2018-04-09)\n------------------\n\n- updated autosize javascript to version 4.0.1\n\n\n2.4.2 (2018-03-15)\n------------------\n\n- feature: added showNoValueItem option for RadioWidget. This option allows to\n  render an additional \"No value\" item for select None as value. This can get\n  enabled if the schema defines required=False. If schema required=True is\n  defined, you need to add None as valid value to your source or vocabulary\n  and adjust the schema messing_value to something else then None for make\n  None a valid value. By default, the showNoValueItem is set to False and\n  forces not rendering \"No value\" as option for not required fields.\n\n- feature: added structure to widget description. This allows to render\n  html as widget description. Take care if you do some wired things with\n  the widget and render custom user input in the widget description. Because\n  this whould not be safe and could lead in a cross site injection. But normaly\n  this is save if you control the translation process and only render schema\n  field description as widget description.\n\n\n2.4.1 (2018-02-15)\n------------------\n\n- feature: added bootstrap 3 DateTimePickerWidget. This widget is available if\n  the j01.datetimepicker package is installed\n\n\n2.4.0 (2017-09-18)\n------------------\n\n- bugfix: make sure we don't apply widget changes for widgets defined in\n  widgetIgnoreContexts in applyChanges method\n\n- bugfix: adjust ignoreRequiredOnValidations implementation. use new\n  J01FieldWidgets and make sure that the ignoreRequiredOnValidation will not\n  get override by the default FieldWidgets ignoreRequiredOnExtract attribute\n\n- security: remove structure for widget label in checkbox widget and\n  widget layout template. Make sure widget label can't get used for a\n  script injection. This is only relevant if you implement persistent\n  widgets or the translator provides unsecure code.\n\n- feature: implemented custom FieldWidgets (J01FieldWidgets) which reflects\n  the form field/widget conditions like widgetRequireds, widgetIgnoreRequests,\n  ignoreRequiredOnValidations\n\n- feature: implemented widgetIgnoreApplyChanges and customized applyChanges\n  method which is able to ignore apply data handling for fields defined\n  in widgetIgnoreApplyChanges. This is usefull if a field should get ignored\n  in applyChanges because we handled them with a different button handler\n\n\n2.3.0 (2017-06-29)\n------------------\n\n- feature: added contentRenderMethodName for rendering the response content\n  based on additional javascript methods\n\n- bugfix: support no value in RadioWidget\n\n\n2.2.1 (2017-03-10)\n------------------\n\n- bugfix: fix broken select_display.pt tal markup\n\n\n2.2.0 (2017-01-11)\n------------------\n\n- feature: implemented getLabel method in checkbox widget. This allows use to\n  render enhanced labels including links and more. This is usefull for custom\n  single checkbox widgets e.g. render a href link to the AGB etc.\n\n- bugfix: fix ignoreRequest setup. Since there is no concept for apply the\n  ignoreRequest value per field, we need to apply the ignoreRequest value\n  on the widget. But since the widget update call will setup the widget and\n  also call the widget update method, we need to apply the ignoreRequest\n  value after this widget update call and call the update method again.\n  Since the ignoreRequest per field/widget concept was broken, we also changed\n  the applyIgnoreRequest to applyWidgetIgnoreRequest.\n\n- reorganize less files and support better support for reuse the files in other\n  projects. The generated css files and original less files provide the same\n  code as before. We just added another indirection and moved the real less\n  code to a folder called source and removed every include in this source\n  files.\n\n- feature: new layout mixin helper class offering html and body element id and\n  css class mixins in page and forms.\n\n- feature: update to autosize 3.0.17\n\n\n2.1.0 (2015-07-19)\n------------------\n\n- feature: update to bootstrap v3.3.5\n\n- feature: update to bootstrap-select v1.7.2\n\n- feature: update to autosize v3.0.8\n\n\n2.0.3 (2015-06-30)\n------------------\n\n- bugfix: prefix datepicker widget class and use bootstrap-datepicker. This\n  prevents to messup with the div.datepicker box.\n\n\n2.0.2 (2015-06-29)\n------------------\n\n- bugfix: catch TypeError based on broken absolutURL lookup. This can happen\n  if an error view or breadcrumb is not locatable.\n\n- bugfix: added missing WidgetMixin to MultiWidget.This was failing because of\n  the missing showRequired condition.\n\n- feature: added showWidgetLabel and showKeyWidgetLabel options for disable\n  labels in multi widget\n\n- feature: added widgetShowLabels and widgetShowRequireds to form mixin for\n  disable widget label and required elements at form level\n\n\n2.0.1 (2015-06-09)\n------------------\n\n- bugfix: changed widgetIgnoreRequiredOnExtracts to ignoreRequiredOnValidations\n  because the widget property name is called ignoreRequiredOnValidation\n\n- feature: update to bootstrap v3.3.4\n\n- feature: remove shadow and transition\n\n- feature: support ordered select widget if j01.selectordered package is\n  available\n\n- feature: implemented default widget and widget template setup usable for\n  doc test setup where we need widgets and don't have a full zcml basedtesting\n  setup.\n\n- feature: improve styles and added more variables\n\n- added more samples to j01.demo (not in this package, see j01.demo package)\n\n\n2.0.0 (2015-03-17)\n------------------\n\n- switch to improved j01.jsonrpc implementation and support p01.testbrowser\n\n- feature: added MultiWidget\n\n- changed form and MultiWidget row class to widget-row for better compatibility\n  with twitter bootstrap where row is used for the layout grid\n\n- moved j01.form.demo to j01.demo package which provides a full zope server\n  setup and some demo pages\n\n\n1.0.1 (2015-01-20)\n------------------\n\n- feature: implemented form status javascript for show a progress line based on\n  filled widgets\n\n- feature: support new browser history api attributes given from j01.jsonrpc\n\n- feature: ensure default form name and id if an empty prefix get used.\n  This makes button click handler working with an empty form prefix. Usable for\n  simple login form handling.\n\n- bugfix: fix missing updateWidgets call. Only updateWidgets from super class\n  was called.\n\n\n1.0.0 (2014-04-04)\n------------------\n\n- implemented new button concept based on new j01.jsonrpc.btn implementation.\n  Use buttons from btn module instead of jsbutton.\n\n\n0.5.1 (2014-03-25)\n------------------\n\n- removed p01.form configuration\n\n\n0.5.0 (2014-03-25)\n------------------\n\n- initial release\n\n- enhanced z3c.form widgtes and form classes supporting form-control as input\n  css class. The form-control class is used as marker for twitter bootstrap 3\n  form fields/controls. This makes it simple to use with twitter bootstrap 3 but\n  could also get used with your own css styles. The j01.form package also\n  provides a radio/checkbox widget using overlay icons and styles for\n  rendering nicer radio and checkbox controls. Other enhanced widgets provide\n  nicer select and multi select rendering.\n\n- implemented html5 input widgets\n\n- use new p01.schema package supporting html5 schema fields\n",
    "bugtrack_url": null,
    "license": "ZPL 2.1",
    "summary": "Enhanced zope 3 form with jsonrpc, history and a lot more",
    "version": "4.0.3",
    "project_urls": {
        "Homepage": "https://pypi.org/project/j01.form/"
    },
    "split_keywords": [
        "j01",
        "p01",
        "z3c",
        "form",
        "twitter",
        "bootstrap",
        "3",
        "jquery",
        "zope3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a5a4c18935ebd280697918561a1f948c92c87e5e434e02f3188fa1d35e2d98c9",
                "md5": "355fabc3d571661b5d83ae2adf20445c",
                "sha256": "eee52d2615e265ea80bfd2624f0347eaa3b3c76bceb6a8856b85af9256aa73ce"
            },
            "downloads": -1,
            "filename": "j01.form-4.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "355fabc3d571661b5d83ae2adf20445c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 139038,
            "upload_time": "2023-07-20T05:17:34",
            "upload_time_iso_8601": "2023-07-20T05:17:34.837360Z",
            "url": "https://files.pythonhosted.org/packages/a5/a4/c18935ebd280697918561a1f948c92c87e5e434e02f3188fa1d35e2d98c9/j01.form-4.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-20 05:17:34",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "j01.form"
}
        
Elapsed time: 0.08894s