[Zope3-Users] Lists dont accept default values
Frank Burkhardt
fbo2 at gmx.net
Wed Feb 15 08:40:19 EST 2006
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
More information about the Zope3-users
mailing list