[Zope3-dev] Form features... or bugs?

Michael Bernstein webmaven at cox.net
Mon Jan 22 13:03:45 EST 2007


I recently spent about an hour struggling with an Interface schema used
to construct the usual add and edit forms.

1) On a Text or SourceText field (and presumably others, but I haven't
checked), if you set both a 'default' and a 'missing_value' (that are
identical), the add form does not pre-fill the field. A workaround in my
case is to make a trivial difference between the two values. This
strikes me as being an overly helpful misfeature. 

2) I have not yet found a way to set a 'missing_value' on an Int field
(for example 'missing_value=0') without causing an error:

 ConfigurationError: ('Invalid value for', 'class', "(None, (<type
'int'>, <type 'long'>))")

I suspect this one is an actual bug.

- Michael R. Bernstein
  michaelbernstein.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20070122/9598a40b/attachment.bin


More information about the Zope3-dev mailing list