Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Introduction

horae.datetime provides zope.formlib input widgets for Date and Datetime fields of zope.schema. Both widgets use the datepicker widget of jQuery UI to select the date. The Datetime widget additionally provides two input fields to enter the hour and minute for the time. The hour and minute fields are enhanced by the Spinbox jQuery plugin.

Usage

The widgets may either be registered through ZCML as new default input widgets for Date and Datetime fields or by defining the widget as custom_widget on a zope.formlib form. Registration as default widget has to be done either in an overrides.zcml or the registrations have to be bound to a specific browser layer.

Registration using the overrides.zcml would look like this:

<configure xmlns='http://namespaces.zope.org/zope'>

  <view
      type="zope.publisher.interfaces.browser.IBrowserRequest"
      for="zope.schema.interfaces.IDatetime"
      provides="zope.app.form.interfaces.IInputWidget"
      factory="horae.datetime.widget.DatetimeWidget"
      permission="zope.Public"
      />

  <view
      type="zope.publisher.interfaces.browser.IBrowserRequest"
      for="zope.schema.interfaces.IDate"
      provides="zope.app.form.interfaces.IInputWidget"
      factory="horae.datetime.widget.DateWidget"
      permission="zope.Public"
      />

</configure>

Dependencies

Changelog

1.0a1 (2012-01-16)

  • Initial release

Metadata

Release files for horae.datetime 1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for horae.datetime 1.0a1
File Size Uploaded
horae.datetime-1.0a1.tar.gz 10.3 kB Details

Release files / horae.datetime-1.0a1.tar.gz

Download URL horae.datetime-1.0a1.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8881aee722fc1252cb016f5498a35f65a0f8372862e6940fb92a1553b3afef95
BLAKE2b-256 checksum
How to use checksums
9e474983c2cb8d6bbf3eb45a00b0c875bd3f37ace04638495bfe699275039b0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0a1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page