On Thu, Sep 24, 2009 at 2:49 AM, JF Simon <ad...@jfsimon.fr> wrote:

>
> Hi there !
>
> I try to understand why my form doesn't render anything. No exception
> is raised and i'm going crazy !
> In my forms.py I got these (simplified for instance) classes :
>
> [snip code]
>
> In my template I just put "form.as_table()". If I remove "widget =
> SignupPasswordWidget" in "SignupPasswordField", I show my (single)
> password field. What am I doing wrong ?? Why don't I get an
> Exception ? I tried many things like implement format_output or render
> methods, but I still get nothing.
>
>
Template rendering suppresses exceptions raised by called methods.  So if
form.as_table() raises an exception you won't see it in your template,
you'll just get no output.  Try instantiating your form from a python
manage.py shell session, and see what as_table() does when you call it
there.  The results will likely point you toward the fact that having
compress and decompress methods that simply return their arguments isn't
going to work.

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to