got it, it was not_empty.
I guess I have to do the "if tg_errors : " part as well, looking into
that, so far, it doesn't seem to raise any errors when the inputs are
empty. Weird, but I must be doing something wrong.
Anyway, thanks again, it definitely helps a lot to know more about all
this.
Tom
On Jul 7, 6:18 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> On Monday 07 July 2008 17:46:04 zaf wrote:
>
>
>
> > On Jul 7, 4:22 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> > > > I think you should alter that to have it named
>
> > > > uuid-${count}
>
> > > And of course
>
> > > name-${count}
>
> > > > Then you get two lists, where each index corresponds to a pair of
> > > > values.
>
> > Ok this actually makes more sense, you're right.
>
> > > > use
>
> > > @validate(validators=dict(
> > > uuid=ForEach(NotNull(), always_list=True),
> > > name=ForEach(NotNull(), always_list=True),
> > > ))
> > > def my_controller(self, ...): pass
>
> > Okay, I get the idea, only I don't know where to import NotNull() from
> > ( it's not validators.NotNull() ). Is there a doc page on all the
> > validators somewhere ? I found this page :
>
> Hm, might be NotEmpty - sorry for the confusion.
>
> >http://docs.turbogears.org/1.0/ValidateDecoratorbut there isn't much here
> > and I tried the FormEncode page as well but couldn't find anything
> > either...
>
> FormEncode should have some API-docs. TG needs more :)
>
> Diez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---