Additional schema fields for Zope 3
Project description
Zaehlwerk Fields
Color field
Reference field
Rich text 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
Reference Field
Rich text Field
The text contained in the field describes a rich field in HTML format. Let’s first generate a such a field:
>>> from zw.schema.richtext import RichText >>> richtext = RichText()
CHANGES
Version 0.3.0b2 (2008-06-17)
added: Reference and RichText field
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zw.schema-0.3.0b2.tar.gz
(18.3 kB
view hashes)