plone.formwidget.recurrence


Nameplone.formwidget.recurrence JSON
Version 3.0.4 PyPI version JSON
download
home_pagehttps://github.com/plone/plone.formwidget.recurrence
SummaryRecurrence widget for Plone
upload_time2024-01-22 19:29:35
maintainer
docs_urlNone
authorPlone Foundation
requires_python>=3.8
licenseGPL
keywords plone event recurrence date time widget z3c.form
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Introduction
============

The plone.formwidget.recurrence package provides a z3cform widget for recurrence.

The main GUI work is done with the ``pat-recurrence`` pattern from mockup.

This widget provides a simple textarea where a RFC 5545 compliant
recurrence rule can be entered, if javascript is not available.

The resulting value of the widget is a RFC5445 compliant recurrence rule
string, ready to be used with python-dateutil's rrulestr.


Installation
------------

You need to add plone.formwidget.recurrence to either your buildout, or
your product requirements. For example::

  [buildout]
  eggs += plone.formwidget.recurrence[z3cform]

or::

  install_requires=[
     'plone.formwidget.recurrence[z3cform]',
  ]

Changelog
=========

.. You should *NOT* be adding new change log entries to this file.
   You should create a file in the news directory instead.
   For helpful instructions, please see:
   https://github.com/plone/plone.releaser/blob/master/ADD-A-NEWS-ITEM.rst

.. towncrier release notes start

3.0.4 (2024-01-22)
------------------

Internal:


- Update configuration files.
  [plone devs] (6e36bcc4, 7723aeaf, 910666c7)


3.0.3 (2023-03-22)
------------------

Internal:


- Update configuration files.
  [plone devs] (243ca9ec)


3.0.2 (2023-03-13)
------------------

Bug fixes:


- Do not add charset to application/x-www-form-urlencoded header.
  Adding a charset to this Content-Type is illegal according to the definition, and fails with Zope master.
  [maurits] (#844)


3.0.1 (2023-02-22)
------------------

Bug fixes:


- Use plone.base
  [ale-rt] (#29)


3.0.0 (2022-12-21)
------------------

Breaking changes:


- Remove Archetypes and python 2.7 support. Plone 6 only.
  [petschki] (#28)


2.1.5 (2021-10-16)
------------------

Bug fixes:


- Fix batch numbers computation
  [frapell] (#25)


2.1.4 (2020-04-20)
------------------

Bug fixes:


- Minor packaging updates. (#1)


2.1.3 (2018-11-05)
------------------

Bug fixes:

- Fix test-isolation issue in AT tests
  [pbauer]


2.1.2 (2018-02-02)
------------------

Bug fixes:

- Add Python 2 / 3 compatibility
  [pbauer]


2.1.1 (2016-08-15)
------------------

Bug fixes:

- Use zope.interface decorator.
  [gforcada]


2.1.0 (2016-05-09)
------------------

New:

- Use plone i18n domain.  [klinger]

Fixes:

- Restructure tests: Move example type into own submodule.
  [thet]


2.0.2 (2015-12-03)
------------------

Fixes:

- Removed unittest2 dependency.
  [gforcada]
- Fix list index out of range at pagination.
  [julianhandl]


2.0.1 (2015-06-05)
------------------

- Fix translations.
  [thet]


2.0 (2015-03-04)
----------------

- Make widget work with Plone 5 recurrence pattern
  [vangheem]


1.2.5 (2014-07-22)
------------------

- Fix error on ie9 when rendering the recurrence widget inside an overlay.
  [deiferni]


1.2.4 (2014-07-17)
------------------

- Backport from jquery.recurrenceinput.js:
  Fix a condition, where the ``startdate`` string literal was checked, if it's
  an instance of ``String``, which returned False. This led to the case, where
  the list of occurrences wasn't shown. String literals should be checked
  with``typeof`` instead of ``instanceof``.
  See: http://stackoverflow.com/a/203757/3036508
  [thet]


1.2.3 (2014-05-06)
------------------

- Integrate latest changes from plone.formwidget.recurrence, which fixes an
  issue introduced with last version, where the recurrence overlay couldn't be
  opened with plone.formwidget.datetime based start fields on Dexterity
  objects.
  [thet]


1.2.2 (2014-04-24)
------------------

- plone.app.widgets support: Let the z3c.form widget's get_start_field method
  prefer 'name' attribute over the 'id' attribute. Looks like, with
  plone.app.widgets the rendered input field doesn't have an 'id' attribute any
  more. Also, integrate latest changes from jquery.recurrenceinput.js, which
  also handles 'name' attributes when trying to get the start field from the
  surrounding form.
  [thet]

- Register plone.app.jquerytools dateinput JavaScript for the 'default' bundle.
  plone.app.widgets registers it for 'deprecated', but we need it here and it
  can peacefully coexist with the new pickadate.
  [thet]


1.2.1 (2014-03-27)
------------------

- Change boolean expressions to conditional expressions, which to avoid wrong
  evaluation if the "and" path test evaluates to False. Really fixes #10.
  [thet]


1.2 (2014-02-12)
----------------

- Fix Problem in AT based widget with a wrong first_day offset, where it didn't
  display weekdays properly. Fixes #10.
  [thet]

- Replace test dependency on plone.formwidget.datetime with plone.app.z3cform.
  [amleczko]

- Added basque translation.
  [erral]

- Add some missing german translations.
  [msom]

- Depend on own extra requirements in test extra in setup.py.
  [thet]


1.1 (2013-11-14)
----------------

- plone.app.widgets compatibility.
  [garbas]

- Add Dutch translation.
  [khink]

- Show [1-N] in current batch instead of always [1-10]
  https://github.com/plone/plone.app.event/issues/77
  [khink]


1.0 (2013-11-06)
----------------

- Update jquery.recurrenceinput.js:
  [thet]

  - Fire change events when rrule value is updated. [deiferni]
  - Default to one week of daily occurrences, instead of 10. Fixes #5. [gyst]
  - Fix ie8 startdate and fire events when changing checkbox values [deiferni]
  - Make "repeat forever" button optional [deiferni]
  - When there is no recurrence rule, the edit button should show "Add...", not
    "Edit..." [thet]
  - Remove ambiguous recurrence rule checkbox, which lead to UX confusion due
    to double negation (unchecked checkbox said "no recurrence rule") and add
    instead a "Delete" button. [thet]

- Add a widget parameter to optionally disable the repeat forever option
  [deiferni]


1.0b11 (2013-08-23)
-------------------

- Return a 400 Bad Request to bots calling @@json_recurrence. Fixes #4.
  [href]


1.0b10 (2013-07-21)
-------------------

- Fix javascript error in IE7/IE8 on Windows XP -> "Unable to modify the parent
  container element before the child element is closed"
  [href]

- Remove the ParameterizedWidgetFactory in favor of form schema hints for
  widget parameters which is available since plone.autoform 1.4.
  [thet]

- For the z3cform widget, remove widget adapter registration from ZCML code and
  keep it in Python code. More appropriate z3c.form class hierarchy for the
  widget. Cleanup.
  [thet]

- Provide a RecurrenceField schema field which can be used instead of
  zope.schema.Text. This ensures that the recurrence widget is used even
  without form schema hints in bare z3c.form forms.
  [thet]


1.0b9 (2013-05-27)
------------------

- Remove one unnecessary div around AT's edit macro.
  [thet]

- Register CSS and JS resources in it's registries instead of including them in
  the template. Add a GS profile for that.
  [thet]

- Fix "TypeError: 'use strict' is not a function". Fixes #3.
  [pbauer]


1.0b8 (2013-02-14)
------------------

- Fix widget showing 'undefined' for saturdays.
  [href]


1.0b7 (2013-02-08)
------------------

- Let occurrences preview show the correct daynames and not by one day off.
  Fixes https://github.com/plone/plone.app.event/issues/69
  [thet]

- Configure ributtonExtraClass with 'allowMultiSubmit'. This prevent Plone's
  warnings against clicking the same submit button multiple times. There is no
  need to customize the FORMTMPL anymore when updating the javascript from
  jquery.recurrenceinput.js.
  [thet]

- Make first_day parameter also configurable for AT and z3cform widgets.
  [thet]

- Move test related sample types to test directory and clean up package.
  [thet]


1.0b6 (2012-10-31)
------------------

- Fix ajax call to get recurrence occurrences and corresponding error message.
  [thet]


1.0b5 (2012-10-29)
------------------

- Include new release of jquery.recurrenceinput.js 1.0rc1.
  [thet]


1.0b4 (2012-10-12)
------------------

- jQueryTools DateInput localization fixed.
  [vsomogyi]

- Updated to latest jquery.recurrenceinput.js
  (8db74cee2bd53794726591c5ac8c8b3814778cbc) to fix a problem with IE8 and
  older.
  [dokai]

- Added Finnish translation.
  [dokai]


1.0b3 (2012-03-12)
------------------

- By default, preselect the BYOCCURRENCES "End recurrence" field, so that
  recurrence rules with unlimited occurrences are not selected by accident but
  intentionally (from jquery.recurrenceinput.js).
  [thet]

- Include z3c.form's meta.zcml, so widgetsTemplate directive is registered.
  [thet]

- For conditional zcml includes, use zcml:condition instead of zcml:provides.
  [thet]


1.0b2 (2012-02-28)
------------------

- Reorganization to make it possible to install only the Archetypes or
  the z3c.form widget. [regebro]


1.0b1 (2012-02-01)
------------------

- Initial release

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/plone/plone.formwidget.recurrence",
    "name": "plone.formwidget.recurrence",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "Plone Event Recurrence Date Time Widget z3c.form",
    "author": "Plone Foundation",
    "author_email": "plone-developers@lists.sourceforge.net",
    "download_url": "https://files.pythonhosted.org/packages/99/f0/f2126babd92e6022014686046b20ad7424e10eb20bfc271e0f349c1f806b/plone.formwidget.recurrence-3.0.4.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\nThe plone.formwidget.recurrence package provides a z3cform widget for recurrence.\n\nThe main GUI work is done with the ``pat-recurrence`` pattern from mockup.\n\nThis widget provides a simple textarea where a RFC 5545 compliant\nrecurrence rule can be entered, if javascript is not available.\n\nThe resulting value of the widget is a RFC5445 compliant recurrence rule\nstring, ready to be used with python-dateutil's rrulestr.\n\n\nInstallation\n------------\n\nYou need to add plone.formwidget.recurrence to either your buildout, or\nyour product requirements. For example::\n\n  [buildout]\n  eggs += plone.formwidget.recurrence[z3cform]\n\nor::\n\n  install_requires=[\n     'plone.formwidget.recurrence[z3cform]',\n  ]\n\nChangelog\n=========\n\n.. You should *NOT* be adding new change log entries to this file.\n   You should create a file in the news directory instead.\n   For helpful instructions, please see:\n   https://github.com/plone/plone.releaser/blob/master/ADD-A-NEWS-ITEM.rst\n\n.. towncrier release notes start\n\n3.0.4 (2024-01-22)\n------------------\n\nInternal:\n\n\n- Update configuration files.\n  [plone devs] (6e36bcc4, 7723aeaf, 910666c7)\n\n\n3.0.3 (2023-03-22)\n------------------\n\nInternal:\n\n\n- Update configuration files.\n  [plone devs] (243ca9ec)\n\n\n3.0.2 (2023-03-13)\n------------------\n\nBug fixes:\n\n\n- Do not add charset to application/x-www-form-urlencoded header.\n  Adding a charset to this Content-Type is illegal according to the definition, and fails with Zope master.\n  [maurits] (#844)\n\n\n3.0.1 (2023-02-22)\n------------------\n\nBug fixes:\n\n\n- Use plone.base\n  [ale-rt] (#29)\n\n\n3.0.0 (2022-12-21)\n------------------\n\nBreaking changes:\n\n\n- Remove Archetypes and python 2.7 support. Plone 6 only.\n  [petschki] (#28)\n\n\n2.1.5 (2021-10-16)\n------------------\n\nBug fixes:\n\n\n- Fix batch numbers computation\n  [frapell] (#25)\n\n\n2.1.4 (2020-04-20)\n------------------\n\nBug fixes:\n\n\n- Minor packaging updates. (#1)\n\n\n2.1.3 (2018-11-05)\n------------------\n\nBug fixes:\n\n- Fix test-isolation issue in AT tests\n  [pbauer]\n\n\n2.1.2 (2018-02-02)\n------------------\n\nBug fixes:\n\n- Add Python 2 / 3 compatibility\n  [pbauer]\n\n\n2.1.1 (2016-08-15)\n------------------\n\nBug fixes:\n\n- Use zope.interface decorator.\n  [gforcada]\n\n\n2.1.0 (2016-05-09)\n------------------\n\nNew:\n\n- Use plone i18n domain.  [klinger]\n\nFixes:\n\n- Restructure tests: Move example type into own submodule.\n  [thet]\n\n\n2.0.2 (2015-12-03)\n------------------\n\nFixes:\n\n- Removed unittest2 dependency.\n  [gforcada]\n- Fix list index out of range at pagination.\n  [julianhandl]\n\n\n2.0.1 (2015-06-05)\n------------------\n\n- Fix translations.\n  [thet]\n\n\n2.0 (2015-03-04)\n----------------\n\n- Make widget work with Plone 5 recurrence pattern\n  [vangheem]\n\n\n1.2.5 (2014-07-22)\n------------------\n\n- Fix error on ie9 when rendering the recurrence widget inside an overlay.\n  [deiferni]\n\n\n1.2.4 (2014-07-17)\n------------------\n\n- Backport from jquery.recurrenceinput.js:\n  Fix a condition, where the ``startdate`` string literal was checked, if it's\n  an instance of ``String``, which returned False. This led to the case, where\n  the list of occurrences wasn't shown. String literals should be checked\n  with``typeof`` instead of ``instanceof``.\n  See: http://stackoverflow.com/a/203757/3036508\n  [thet]\n\n\n1.2.3 (2014-05-06)\n------------------\n\n- Integrate latest changes from plone.formwidget.recurrence, which fixes an\n  issue introduced with last version, where the recurrence overlay couldn't be\n  opened with plone.formwidget.datetime based start fields on Dexterity\n  objects.\n  [thet]\n\n\n1.2.2 (2014-04-24)\n------------------\n\n- plone.app.widgets support: Let the z3c.form widget's get_start_field method\n  prefer 'name' attribute over the 'id' attribute. Looks like, with\n  plone.app.widgets the rendered input field doesn't have an 'id' attribute any\n  more. Also, integrate latest changes from jquery.recurrenceinput.js, which\n  also handles 'name' attributes when trying to get the start field from the\n  surrounding form.\n  [thet]\n\n- Register plone.app.jquerytools dateinput JavaScript for the 'default' bundle.\n  plone.app.widgets registers it for 'deprecated', but we need it here and it\n  can peacefully coexist with the new pickadate.\n  [thet]\n\n\n1.2.1 (2014-03-27)\n------------------\n\n- Change boolean expressions to conditional expressions, which to avoid wrong\n  evaluation if the \"and\" path test evaluates to False. Really fixes #10.\n  [thet]\n\n\n1.2 (2014-02-12)\n----------------\n\n- Fix Problem in AT based widget with a wrong first_day offset, where it didn't\n  display weekdays properly. Fixes #10.\n  [thet]\n\n- Replace test dependency on plone.formwidget.datetime with plone.app.z3cform.\n  [amleczko]\n\n- Added basque translation.\n  [erral]\n\n- Add some missing german translations.\n  [msom]\n\n- Depend on own extra requirements in test extra in setup.py.\n  [thet]\n\n\n1.1 (2013-11-14)\n----------------\n\n- plone.app.widgets compatibility.\n  [garbas]\n\n- Add Dutch translation.\n  [khink]\n\n- Show [1-N] in current batch instead of always [1-10]\n  https://github.com/plone/plone.app.event/issues/77\n  [khink]\n\n\n1.0 (2013-11-06)\n----------------\n\n- Update jquery.recurrenceinput.js:\n  [thet]\n\n  - Fire change events when rrule value is updated. [deiferni]\n  - Default to one week of daily occurrences, instead of 10. Fixes #5. [gyst]\n  - Fix ie8 startdate and fire events when changing checkbox values [deiferni]\n  - Make \"repeat forever\" button optional [deiferni]\n  - When there is no recurrence rule, the edit button should show \"Add...\", not\n    \"Edit...\" [thet]\n  - Remove ambiguous recurrence rule checkbox, which lead to UX confusion due\n    to double negation (unchecked checkbox said \"no recurrence rule\") and add\n    instead a \"Delete\" button. [thet]\n\n- Add a widget parameter to optionally disable the repeat forever option\n  [deiferni]\n\n\n1.0b11 (2013-08-23)\n-------------------\n\n- Return a 400 Bad Request to bots calling @@json_recurrence. Fixes #4.\n  [href]\n\n\n1.0b10 (2013-07-21)\n-------------------\n\n- Fix javascript error in IE7/IE8 on Windows XP -> \"Unable to modify the parent\n  container element before the child element is closed\"\n  [href]\n\n- Remove the ParameterizedWidgetFactory in favor of form schema hints for\n  widget parameters which is available since plone.autoform 1.4.\n  [thet]\n\n- For the z3cform widget, remove widget adapter registration from ZCML code and\n  keep it in Python code. More appropriate z3c.form class hierarchy for the\n  widget. Cleanup.\n  [thet]\n\n- Provide a RecurrenceField schema field which can be used instead of\n  zope.schema.Text. This ensures that the recurrence widget is used even\n  without form schema hints in bare z3c.form forms.\n  [thet]\n\n\n1.0b9 (2013-05-27)\n------------------\n\n- Remove one unnecessary div around AT's edit macro.\n  [thet]\n\n- Register CSS and JS resources in it's registries instead of including them in\n  the template. Add a GS profile for that.\n  [thet]\n\n- Fix \"TypeError: 'use strict' is not a function\". Fixes #3.\n  [pbauer]\n\n\n1.0b8 (2013-02-14)\n------------------\n\n- Fix widget showing 'undefined' for saturdays.\n  [href]\n\n\n1.0b7 (2013-02-08)\n------------------\n\n- Let occurrences preview show the correct daynames and not by one day off.\n  Fixes https://github.com/plone/plone.app.event/issues/69\n  [thet]\n\n- Configure ributtonExtraClass with 'allowMultiSubmit'. This prevent Plone's\n  warnings against clicking the same submit button multiple times. There is no\n  need to customize the FORMTMPL anymore when updating the javascript from\n  jquery.recurrenceinput.js.\n  [thet]\n\n- Make first_day parameter also configurable for AT and z3cform widgets.\n  [thet]\n\n- Move test related sample types to test directory and clean up package.\n  [thet]\n\n\n1.0b6 (2012-10-31)\n------------------\n\n- Fix ajax call to get recurrence occurrences and corresponding error message.\n  [thet]\n\n\n1.0b5 (2012-10-29)\n------------------\n\n- Include new release of jquery.recurrenceinput.js 1.0rc1.\n  [thet]\n\n\n1.0b4 (2012-10-12)\n------------------\n\n- jQueryTools DateInput localization fixed.\n  [vsomogyi]\n\n- Updated to latest jquery.recurrenceinput.js\n  (8db74cee2bd53794726591c5ac8c8b3814778cbc) to fix a problem with IE8 and\n  older.\n  [dokai]\n\n- Added Finnish translation.\n  [dokai]\n\n\n1.0b3 (2012-03-12)\n------------------\n\n- By default, preselect the BYOCCURRENCES \"End recurrence\" field, so that\n  recurrence rules with unlimited occurrences are not selected by accident but\n  intentionally (from jquery.recurrenceinput.js).\n  [thet]\n\n- Include z3c.form's meta.zcml, so widgetsTemplate directive is registered.\n  [thet]\n\n- For conditional zcml includes, use zcml:condition instead of zcml:provides.\n  [thet]\n\n\n1.0b2 (2012-02-28)\n------------------\n\n- Reorganization to make it possible to install only the Archetypes or\n  the z3c.form widget. [regebro]\n\n\n1.0b1 (2012-02-01)\n------------------\n\n- Initial release\n",
    "bugtrack_url": null,
    "license": "GPL",
    "summary": "Recurrence widget for Plone",
    "version": "3.0.4",
    "project_urls": {
        "Homepage": "https://github.com/plone/plone.formwidget.recurrence"
    },
    "split_keywords": [
        "plone",
        "event",
        "recurrence",
        "date",
        "time",
        "widget",
        "z3c.form"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2bf6d438bbc9ae3173274e3510bf532339b88ee766108ffd8cceb9175faec761",
                "md5": "12cc55655da1e19ed43dbbb38038797f",
                "sha256": "fc6e9dd059e0b2cd216b75683c4be930c53dbab201254723b85dabefa030fe80"
            },
            "downloads": -1,
            "filename": "plone.formwidget.recurrence-3.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "12cc55655da1e19ed43dbbb38038797f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 18083,
            "upload_time": "2024-01-22T19:29:33",
            "upload_time_iso_8601": "2024-01-22T19:29:33.057278Z",
            "url": "https://files.pythonhosted.org/packages/2b/f6/d438bbc9ae3173274e3510bf532339b88ee766108ffd8cceb9175faec761/plone.formwidget.recurrence-3.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "99f0f2126babd92e6022014686046b20ad7424e10eb20bfc271e0f349c1f806b",
                "md5": "5a4e35c6514de34fdcd27063aa91b0a6",
                "sha256": "5540415aba4814d8a7f99cb5cf9e39a6c7277e65e249788abbde20d3bf001a4c"
            },
            "downloads": -1,
            "filename": "plone.formwidget.recurrence-3.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "5a4e35c6514de34fdcd27063aa91b0a6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 26828,
            "upload_time": "2024-01-22T19:29:35",
            "upload_time_iso_8601": "2024-01-22T19:29:35.264547Z",
            "url": "https://files.pythonhosted.org/packages/99/f0/f2126babd92e6022014686046b20ad7424e10eb20bfc271e0f349c1f806b/plone.formwidget.recurrence-3.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-22 19:29:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "plone",
    "github_project": "plone.formwidget.recurrence",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "plone.formwidget.recurrence"
}
        
Elapsed time: 0.18603s