Carl S. Yestrau Jr.
2011-01-25 08:09:22 UTC
class AtLeastOneOfThese(formencode.Schema):
a = validators.String(not_empty=False)
b = validators.String(not_empty=False)
c = validators.String(not_empty=False)
# how do I create a chained validator so even though a, b, c are
optional at least one of a, b or c is not_empty?
a = validators.String(not_empty=False)
b = validators.String(not_empty=False)
c = validators.String(not_empty=False)
# how do I create a chained validator so even though a, b, c are
optional at least one of a, b or c is not_empty?