Straightforward toolbox of field types, widgets, and validators for Archetypes.
Project description
ArchAddOn
Straightforward toolbox of field types, widgets, and validators for Archetypes.
Please feel free to add your own new fields, widgets, and validators here, if you think they are general-purpose. I intend for this to be not sample or learning archetypes add ons (ArchExample is for that), but real-world usable toolbox pieces.
Features
New Fields for:
USAddress
USPhoneNumber
Email
Link
Instruction (only shows description on edit form, for adding sectional help or other HTML markup to an edit form)
DynamicField. This is a textual field that can contain TALES expressions which are evaluated. So you can add a “body” field to a schema that is of this type, and have it be a mix of HTML content and TALES expressions (just like in a ZPT).
SimpleDataGridField. A lines field with embedded vertical bars for fields. If the columns property is set, the isValidGrid validator will ensure that the entered text has exactly that number of columns for each row. If strip_whitespace is True, the individual cells in the grid will be stripped of leading and trailing whitespace (that is, whitespace added around the delimiter).
If column_names is set to a tuple or list of strings, it gives the names of columns in the grid. The getDataGridRow script and the getRow() method will return a dict using these column names as keys rather than using the column numbers (starting from zero). Fields are just strings, with no internal validation, etc.
Matching widgets for these types
Validators:
FormattedUSPhoneValidator: (999) 999-9999
USAddressValidator
isValidGrid
Requires
Plone version 4.0 or higher.
Quickstart
Use the quickinstaller_tool and install ArchAddOn
To create a sample object and test the new fields, widgets, etc., go to the archetype_tool and install the “ArchAddOn Example” type, then add an object of that type.
Changelog
1.6 (2010-04-09)
Plone 4 compatible release.
1.5 (2008-04-27)
Egg release of Products.ArchAddOn.
1.0 (2007-04-04)
Initial release of ArchAddOn.
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
File details
Details for the file Products.ArchAddOn-1.6.tar.gz
.
File metadata
- Download URL: Products.ArchAddOn-1.6.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c5cf01251e86928f618204fadf785edd70a19f3e9ebce19cf1c58a751218719 |
|
MD5 | f42f90f34a8a4b561d27283b618bcaa9 |
|
BLAKE2b-256 | 8398602b499002dd77b75eae68166bdbfee6517a6cf2fad5e3fdf634f57ddb80 |