Skip to main content

Additional schema fields for Zope 3

Project description

Zaehlwerk Fields

  • Color field
  • Email field

Color Field

The string contained in the field describes a RGB color in hexdecimal format. Let’s first generate a color field:

>>> from zw.schema.color import Color
>>> color = Color()

Make sure the colors validate:

>>> color.validate('aa00cc')
>>> color.validate('00aa000')
Traceback (most recent call last):
...
InvalidColor: 00aa000

CHANGES

Version 0.2.2 (2008-04-14)

  • packaging bug fixed.

Version 0.2.1 (2008-04-13)

  • Remove email field. (It can be found in z3c.schema)

Version 0.2 (2008-04-11)

  • Added email field

Project details


Download files

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

Files for zw.schema, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size zw.schema-0.2.2.tar.gz (17.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page