Personal tools
You are here: Home Documentation Tutorials ArchGenXML 1.x- Getting started Quick Reference
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

Quick Reference

A very nice Quick Reference for ArchGenXML abusers.

Bernhard Snizek

ArchGenXML is a code-generator for CMF/Plone applications (Products) based on the Archetypes framework. It parses UML models in XMI-Format (.xmi, .zargo, .zuml), created with applications such as ArgoUML, Poseidon or ObjectDomain. This tutorial will help you get started developing applications with the aid of ArchGenXML.
Page 15 of 17.

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.

 
by Bernhard Snizek last modified August 11, 2006 - 09:15
Contributors: jensens, optilude, reinout, frisi, fifer, et al
All content is copyright Plone Foundation and the individual contributors.

default_method

Posted by Michael Strickland at June 29, 2005 - 11:08

In tagged values section default_method is used by Archetypes to specify the name of a python method which is used to load the default value.


For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by