On Wed, 2011-09-07 at 14:10 -0700, Evan Tangman wrote:
> I am trying to implement a Deform schema wherein there is a sequence
> of inputs of the same type, but there will be a different number for
> each schema. Better shown with example perhaps:
> 
> class SampleSchema(MappingSchema):
> input1 = SchemaNode(String())
> input2 = SchemaNode(String())
> 
> class SampleSchema(MappingSchema):
> input1 = SchemaNode(String())
> input2 = SchemaNode(String())
> input3 = SchemaNode(String())
> input4 = SchemaNode(String())
> 
> My question is: Is there a way to create a schema that can digest a
> tuple specifying how many input[x] to create, or do I need to define a
> different schema for each one?
> 

There's a TupleSchema, FWIW.

https://docs.pylonsproject.org/projects/colander/dev/api.html#colander.TupleSchema

http://deformdemo.repoze.org/textinputcsv/

- C


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to