Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

zope.formlib datetime widget used by Horae

Project Description

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>

Changelog

1.0a1 (2012-01-16)

  • Initial release
Release History

Release History

This version
History Node

1.0a1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
horae.datetime-1.0a1.tar.gz (10.3 kB) Copy SHA256 Checksum SHA256 Source Jan 16, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting