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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| horae.datetime-1.0a1.tar.gz | 10.3 kB | Without provenance | Details for horae.datetime-1.0a1.tar.gz |
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 |
Security for horae.datetime 1.0a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.