I appreciate the list members time and patience. I used Zope heavily
2000-2003 but after not writing any code for almost five years this is
like starting over. :-)
On Fri, 2008-07-11 at 06:48 +0200, Markus Kemmerling wrote:
> You want to restrict the elements of a list to instances that provide
Am 10.07.2008 um 21:56 schrieb Tim Cook:
On Thu, 2008-07-10 at 16:59 +0200, Markus Kemmerling wrote:
I would rather say:
value=List(
title=u"Value",
value_type=Object(schema=IMyClass)
)
Can you elaborate why?
You want to restrict the elements of a list to instances that provide
a
On Thu, 2008-07-10 at 16:59 +0200, Markus Kemmerling wrote:
> I would rather say:
>
> value=List(
>title=u"Value",
>value_type=Object(schema=IMyClass)
> )
Can you elaborate why?
>
> Anyhow, such a constraint is of limited use only, since it does not
> prevent you from adding any ob
Am 10.07.2008 um 16:44 schrieb Tim Cook:
When constraining the membership of zope.schema List and Set; is it
valid to say that this will work:
value=List(
title=u"Value",
constraint=classProvides(IMyClass)
)
where IMyClass defines the schema for the MyClass and is the only
objects allowe