Attention

This document was written for an unsupported version of Plone, Plone 2.5.x, and was last updated 1602 days ago.

For more information, see the version support policy.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

Quick Reference

by Jens W. Klein last modified Dec 30, 2008 03:04 PM
A very nice Quick Reference for ArchGenXML abusers.

Complete list of the field types including their default settings:

string -- StringField

- StringField

- searchable=1

text -- TextField

- StringField

- searchable=1

- TextAreaWidget()

richtext -- TextField

- TextField

- default_output_type=text/html

- allowed_content_types=('text/plain','text/structured','text/html','application/msword',)

selection -- StringField with SelectionWidget

- StringField

multiselection -- LinesField with SelctionWidget

- LinesField

- multiValued=1

integer -- IntegerField

- IntegerField

- searchable=1

float -- Floatfield

- FloatField

- searchable=1

- DecimalWidget()

boolean -- BoleanField

- BooleanField

- searchable=1

lines -- LinesField

- LinesField

- searchable=1

date -- DateTimeField

- DateTimeField

- searchable=1

image -- ImageField

- ImageField

- sizes ={'small':(100,100),'medium':(200,200),'large':(600,600)}

- AttributeStorage()

file -- FileField

- FileField

- AttributeStorage()

- FileWidget()

lines -- LinesField

- LinesField

- searchable=1

fixedpoint -- FixedPointField

- FixedPointField

date -- DateField

- DateTimeField

- AttributeStorage()

reference -- ReferenceField

- ReferenceField

backreference -- BackReferenceField

- BackReferenceField

computed -- ComputedField

- ComputedField

photo -- PhotoField

- PhotoField

Tagged values for fields:

searchable -- register and index the field in the catalog,

* 1 .. register and index

* 0 .. don't register and index

storage -- AttributeStorage(), SQLStorage(), ....

sizes -- defines the sizes of the images in a ImageField
example: python:{'small':(80,80),'medium':(200,2000),'large':(600,600)}

default_method -- the method that is called to compute the default value

required -- defines whether a field should be rendered required, or not.

- 1 .. field is required

- 0 .. field is not required

accessor -- defines the accessor of a field

vocabulary -- defines the vocabulary or the method generating a vocabulary

allowed_types -- defines the allowed types in a ReferenceField

relationship -- defines the relationship, used in a ReferenceField

multiValued -- defines whether a SelectionField accepts one or more values,

- 1 .. multivalued

- 0 .. singlevalued


These tagged values are just the ones handy for fields, the full lists of tagged values
and stereotypes are shown on the next two pages.


Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.