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

Attachment: signature.asc
Description: This is a digitally signed message part

Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to