DaveS wrote:
Thanks, I didn't know you could do that...
Uh oh. I tried it but got an error:
x = All( to_python = [Int(), OneOf([1, 2, 3])] )
x.to_python(1)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: 'list' object is not callable
Does the list need to be wrapped in an object of some sort?
BTW I'm using TurboGears 0.8a3 in case this is somthing really new.
I was proposing that syntax, but it doesn't work yet ;) Actually, I
forgot how all keyword arguments are turned into attributes by default,
so you overwrote the .to_python method with that list, hence the error.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org