[Zope-dev] New ZPublisher Types

Cathi Davey cathi@digicool.com
Thu, 1 Jul 1999 14:56:11 -0400


The documentation for the new types is in the process of being added to
the zope site.  I added four new types : "default", "ignore_empty",
"record", and "records".  

The "record" type works like this:

	<INPUT TYPE="text" NAME="person.name:record" SIZE="30">

	The input tag for the "name" field is named
"person.name:record:ignore_empty".  The ":record" part of the name
indicates to Zope that the field should be converted to a record before
passing it to the published method.  A record variable will be created
called "person" and it will have an attribute called "name".

o The "records" type returns a list of records. 
o The "default" type allows a specified value to be inserted when the
form field is left    
  blank. 
o The "ignore_empty" type skips over the variable rather than returning
a null string as 
  its value when the field is left blank.  

I hope this helps.  

Cathi