Skip to main content

Datetime widgets for Plone

Project description

Introduction

The package plone.formwidget.datetime provides date and time widgets for plone to be used with z3c.form and Archetypes. The calendar widget is based on JQueryTools Dateinput, provided by plone.app.jquerytools.

The package is a merge of collective.z3cform.datetimewidget and archetypes.datetimewidget (which itself was derived from collective.z3cform.datetimewidget).

TODO

  • Include popup_calendar.gif as browser-resource in this package.

  • create DateDeltaWidget and DatetimeDeltaWidget

  • use timepicker

  • Usage docs for AT and DX. Show z3c.form widget parameters via plone.autoform > 1.4

Changelog

1.3.5 (2019-08-29)

Bug fixes:

  • Tuple (‘’, ‘’, ‘’, ‘00’, ‘00’) is also an empty value. Fix #22 [batlock666]

1.3.4 (2018-04-08)

Bug fixes:

  • Use the field min and max values to determine the years range [mpeeters]

1.3.3 (2018-02-14)

Bug fixes:

  • Required datetime fields should have no values preselected. Fix #11 [mamico]

1.3.2 (2018-01-17)

Bug fixes:

  • Please pyScss by adding quotes in the urls. Makes it compatible with Plone 5.1. [thomasdesvenain]

1.3.1 (2016-08-09)

Fixes:

  • Marked in setup.py as also compatible with Plone 4.3, next to 5.0. [maurits]

  • Use zope.interface decorator. [gforcada]

1.3 (2016-02-11)

New:

  • Translations moved to plone.app.locales in plone domain. [staeff]

1.2 (2015-10-28)

Fixes:

1.1 (2014-11-06)

  • Simplify buildout infrastructure to be used only for test running on latest Plone 4.3. [thet]

  • Don’t hide the timecomponents of input fields, when context has whole_day set. In context of plone.app.event, this is done via JavaScript by plone.app.event itself. Fixes: https://github.com/plone/plone.app.event/issues/167 [thet]

  • Set date in calendar when the page load (Archetypes widget). [vincentfretin]

  • Calendar is updated when date is changed from select. [thomasdesvenain]

1.0 (2013-11-06)

  • Align CSS classes between AT and z3cform templates. [thet]

  • Allow empty values when the field is not required. https://github.com/plone/plone.app.contenttypes/issues/79 [pbauer]

  • Replace deprecated test assert statements. [timo]

  • Re-Add rendering of hidden date-, month- and year-fields for monthyear and year widgets. This got lost at template unifying attempt. [thet]

  • In z3c.form based widgets, allow timezone naive datetime conversion. [thet]

  • If plone.schemaeditor is available, use his patched IDate schema. [do3cc]

1.0b6 (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 adaptee registration from ZCML code and keep it in Python code. More appropriate z3c.form class hierarchy for the widget. Cleanup. [thet]

  • Add autoinclude entry point. [thet]

1.0b5 (2013-05-27)

  • Remove plone.app.jquerytools’ custom.css again, as it is gone. [thet]

  • Unify AT and DX templates. [thet]

  • Fix issue when value has no timezone-information. This happened when using plone.app.event-dx and Solgema.fullcalendar [pbauer]

1.0b4 (2013-04-24)

  • Don’t show plone.formwidget.datetime:default profile when creating a Plone site with @@plone-addsite. [thet]

  • Enable plone.app.jquerytools’ custom.css for datepicker style overrides and enable next/prev icons this way. [thet]

1.0b3 (2013-02-08)

  • Allow configuration of the first day of the week (first_day). [thet]

1.0b2 (2012-10-29)

  • Fixed missing ‘00’ in hour/minute in AT and z3cform for 0 values. Fixes #5. [thet]

  • CSS fixes to display the calendar icon properly. [thet]

1.0b1 (2012-10-12)

  • Include popup_calendar.gif and register a plone.formwidget.datetime style in the CSS registry. [thet]

  • Changes related to “Archetypes widget now reliably returns DateTime instances instead datetime.”

    • support for only year widget [kiorky]

    • Fix support for older years inside AT widgets [kiorky]

    • Add lot of tests for year ranges & old years [kiorky]

    • Fix the Year and Month/Years widgets [kiorky]

  • Archetypes widget now reliably returns DateTime instances instead datetime. [thet]

  • AM/PM 12-hour time fixes: 12 a.m. == u’00’ hour internally, displayed consistently; normalization of times gracefully handles missing hour values; deal gracefully with 12 p.m. and 12 a.m. hours. [seanupton]

  • Fixed a bug with the datepicker configuration when the week starts on a different day than Sunday. [dokai]

  • Added a wrapper element around the time components in the z3c.form datetime widget markup to faciliate Javascript (and CSS) control. [dokai]

  • Fixed a bug where the minutes were ignored and set unconditionally to zero when the field values were extracted. [dokai]

  • Fixed a problem with zero valued time components being ignored. [dokai]

  • Fixed a problem with the weekdays being off by one [href]

  • fix all tests [kiorky]

  • dynamic years range support [kiorky]

  • support for very old years ( <1800 ) [kiorky]

  • support for custom date patterns in view mode [kiorky]

1.0a2 (2012-03-12)

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

  • For conditional zcml incudes, use zcml:condition instead of zcml:provides. [thet]

  • Code cleanup. [thet]

1.0a1 (2012-02-24)

  • Initial alpha (!) release from the Plone Konferenz 2012 in Munich. [thet]

This package derived from collective.z3cform.datetimewidget. For older release History, see there.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plone.formwidget.datetime-1.3.5.tar.gz (49.3 kB view details)

Uploaded Source

File details

Details for the file plone.formwidget.datetime-1.3.5.tar.gz.

File metadata

  • Download URL: plone.formwidget.datetime-1.3.5.tar.gz
  • Upload date:
  • Size: 49.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

File hashes

Hashes for plone.formwidget.datetime-1.3.5.tar.gz
Algorithm Hash digest
SHA256 46d34715fc4adf9a1532bfab138254c0f1edfa0a2465e925dd4166dfbe62bde5
MD5 c0d3384f8345c8d8ff0781e8681d9501
BLAKE2b-256 da82656219f8451d2905ac2da3dde80c3145f2ba6a5d8d78376c3f1af0ac6434

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page