Hi,

I wrote a schema like this to have a list of objects on a content object:

 class IMyContent(Interface):
    mynumbers=List(
       title=_(u"Cool Numbers"),
       required=True,
       value_type=Int(
        title=_("integer")
       )
       default=[1,2,3,5,7]
    )
    myline=TextLine(
       title=_("A line of text"),
       required=True,
       default=u'default test'
    )

I'm using an 'addform' to add self made objects to my site but unfortunately
the list mynumbers is not initialized with those 5 default numbers. The
default value of myline is displayed correctly on the add form.

Does anyone know, how this can be fixed?

Regards,

Frank
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to