how could a controller method know whether it's invoked as an error_handler or directly?
thanks in advance,
--
alex
Through
pylons.c.validation_exception
more widely known as "template context".
This holds the formencode.Invald-exception thrown - or "".
Diez
I'm not entirely sure what you mean here. However, in templates
under "c.form_errors" there should be a mapping of errors, you can work with
that of course.
But it *should* work with tw out of the box of course.
Diez
Ok.
> btw: i see you on the elixir group too. have you tried my elixir patch to
> tg.devtool?
No, I don't quickstart projects regularly, and our own project has a very
different structure anyway - but uses Elixir.
Diez
On Wed, Aug 19, 2009 at 12:25, Diez B. Roggisch<de...@web.de> wrote:
>
> On Wednesday 19 August 2009 10:59:39 alexbod...@gmail.com wrote:
>> hi diez,
>>
>> i found it. your help and explanation put me in the position to tye the
>> ends:
>>
>> i'm passing pylons.c.validation_exception as the error parameter to the
>> form. i'll also take the rejected values from request, as you taught me
>> too.
>>
the value i send is being ignored because the error param is not empty.
let me see ;) .
>> tw doesn't help, probably, because of my dynamic form.
>
> Ok.
>
>> btw: i see you on the elixir group too. have you tried my elixir patch to
>> tg.devtool?
>
> No, I don't quickstart projects regularly, and our own project has a very
> different structure anyway - but uses Elixir.
>
> Diez
>
On Thu, Aug 20, 2009 at 03:00, <alexbod...@gmail.com> wrote:
> well, not yet.
>
> On Wed, Aug 19, 2009 at 12:25, Diez B. Roggisch<de...@web.de> wrote:
>>
>> On Wednesday 19 August 2009 10:59:39 alexbod...@gmail.com wrote:
>>>
>>> hi diez,
>>>
>>> i found it. your help and explanation put me in the position to tye the
>>> ends:
>>>
>>> i'm passing pylons.c.validation_exception as the error parameter to the
>>> form. i'll also take the rejected values from request, as you taught me
>>> too.
>>>
> the value i send is being ignored because the error param is not empty.
> let me see ;) .
it's value_at_request :)
>>>
>>> tw doesn't help, probably, because of my dynamic form.
>>
>> Ok.
>>
>>> btw: i see you on the elixir group too. have you tried my elixir patch to
>>> tg.devtool?
>>
>> No, I don't quickstart projects regularly, and our own project has a very
>> different structure anyway - but uses Elixir.
>>
>> Diez
>>
>> --~--~---------~--~----~------------~-------~--~----~
>> You received this message because you are subscribed to the Google Groups
>> "TurboGears" group.
>> To post to this group, send email to turbo...@googlegroups.com
>> To unsubscribe from this group, send email to
>> turbogears+...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/turbogears?hl=en
>> -~----------~----~----~----~------~----~------~--~---
>>
>>
>
>
>
> --
> alex
>
>
--
alex