[Zope] check input

Dieter Maurer dieter@handshake.de
Mon, 12 Feb 2001 21:42:06 +0100 (CET)


Olaf Zanger writes:
 > Dies ist eine mehrteilige Nachricht im MIME-Format.
 > --------------4626B012037BD2BAE216AE84
 > Content-Type: text/plain; charset=us-ascii
 > Content-Transfer-Encoding: 7bit
Have I not yet asked you not to send MIME messages?
Then, I do it now. Although, I think, I did it already!

 > in a form the user needs tu input a optional float. it doesn't work with
 > name="weight:float" since this means float + required. what is the simple solution
 > for that?
What should happen, when the user does not provide the float?

 * should the field be omitted?
   Then try the ":ignore_empty" suffix.

 * do you want a default value in this case?
   Then try the ":default" suffix in an additional (hidden) form control
   to provide this default!


Dieter