TG2.2 getting validation errors

15 views
Skip to first unread message

Remi Jolin

unread,
Oct 16, 2012, 12:35:26 PM10/16/12
to turbo...@googlegroups.com
Hello,

In TG2.2 documentation
http://turbogears.org/2.2/docs/main/Validation.html, there is an example
showing that you can get the error list in pylons.c.form_errors but when
I try, I get an error :

print "pylons.c", pylons.c.form_errors, pylons.c.form_values
*AttributeError: 'module' object has no attribute 'c'*

How can I get validation errors ?


Christoph Zwerschke

unread,
Oct 16, 2012, 12:47:58 PM10/16/12
to turbo...@googlegroups.com
I think you must use tg.tmpl_context instead of pylons.c in TG 2.2 and
the documentation needs to be updated.

-- Christoph

Remi Jolin

unread,
Oct 16, 2012, 12:53:41 PM10/16/12
to turbo...@googlegroups.com
Le 16/10/2012 18:47, Christoph Zwerschke a �crit :
Thanks :-)

Alessandro Molina

unread,
Oct 17, 2012, 6:35:26 AM10/17/12
to turbo...@googlegroups.com
Fixed the reference in Doc, thanks for reporting the issue :D

On Tue, Oct 16, 2012 at 6:53 PM, Remi Jolin <remi....@sysgroup.fr> wrote:
> --
> 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.
>
Reply all
Reply to author
Forward
0 new messages