Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Archetypes Field using MxDateTime

Project description

Note: This module is meant to be used in migrated sites and not for modern plone 4.x use.

This field enables Archetypes to use mxDateTime fields. It is very simple, it just transforms (well formed) strings into mxDateTime values. You can use the Field in Archetypes schemas like this:

...

from Products.MxDateTimeField import MxDateTimeField
...

schema= Schema((
    MxDateTimeField('BirthDate'),

...

The benefit of the MxDateTimeField is that a wider range of time designations is supported, dates may range from 5‘000‘000CE to 5‘000‘000BCE. Sometimes you encounter Problems in Plone when you want to use such dates.

Installation

You need to install egenix mxDateTime first, it is part of ‘mxBase’, see http://www.egenix.com/files/python/eGenix-mx-Extensions.html#Download-mxBASE

Several Operating Systems are offering the egenix mxDateTime within their package management systems.

Then just put the MxDateTime folder into your Zopes ‘Products’ directory. The Product should be listed among your Zopes Products in the control panel.

Thanks

Thanks to Philipp Auersperg and Jens Klein for their hints and tips and for AGX ;-)

Support

If you have any questionns feel free to ask!

irc: irc.freenode.net #bluedynamics email: gogo@bluedynamics.com

Author

Georg Gogo. BERNHARD gogo@bluedynamics.com

Project details


Release history Release notifications

This version

1.2

Download files

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

Files for Products.MxDateTimeField, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size Products.MxDateTimeField-1.2.tar.gz (14.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page