|
From: Ian B. <ia...@co...> - 2003-04-10 00:40:03
|
On Wed, 2003-04-09 at 19:21, Luke Opperman wrote: > Hey all - > > We weren't able to figure out how to set the defaults for a > repeating field, from the existing code it would only take > a single common default. Really? The AddressList example has repeating defaults -- you just pass in a list for default value. Maybe that's broken if it's not a top-level repeat or something... > #this might be considered list-comp abuse. > defaultValues = \ > [defaultValue for x in range(options['repeat']) ] Especially because you could just do defaultValue = range(options['repeat']) :) |