Re: MultiWidget fail to render without exception

2009-09-24 Thread Karen Tracey
On Thu, Sep 24, 2009 at 4:27 PM, JF Simon wrote: > > I launched form.as_table() in my terminal and the traceback is : > > File "", line 1, in ? > File "/usr/lib/python2.4/site-packages/django/forms/forms.py", line > 190, in as_table >return self._html_output(u'%(label)s%(errors)s% > (field)

Re: MultiWidget fail to render without exception

2009-09-24 Thread JF Simon
Ah I found something ... In my forms.MultiWidget subclass, "decompress" method was returning None and not a couple of values ! I just done that : def decompress(self, value): if value is None: return (None, None) return value I don't know if it's the best way, bu

Re: MultiWidget fail to render without exception

2009-09-24 Thread JF Simon
I launched form.as_table() in my terminal and the traceback is : File "", line 1, in ? File "/usr/lib/python2.4/site-packages/django/forms/forms.py", line 190, in as_table return self._html_output(u'%(label)s%(errors)s% (field)s%(help_text)s', u'%s', '', u'%s', False) File "/usr/lib/pyt

Re: MultiWidget fail to render without exception

2009-09-24 Thread kmtracey
On Thu, Sep 24, 2009 at 10:40 AM, JF Simon wrote: > > Ouh thanks ... because of the TEMPLATE_DEBUG setting, I though > exceptions within templates were raised ... my sentence seems weird. > Ill try that tonight. > Thanks again. > > No, TEMPLATE_DEBUG just adds some information (snippet of the tem

Re: MultiWidget fail to render without exception

2009-09-24 Thread JF Simon
Ouh thanks ... because of the TEMPLATE_DEBUG setting, I though exceptions within templates were raised ... my sentence seems weird. Ill try that tonight. Thanks again. JF On 24 sep, 14:42, Karen Tracey wrote: > On Thu, Sep 24, 2009 at 2:49 AM, JF Simon wrote: > > > Hi there ! > > > I try to un

Re: MultiWidget fail to render without exception

2009-09-24 Thread Karen Tracey
On Thu, Sep 24, 2009 at 2:49 AM, JF Simon 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

Re: MultiWidget fail to render without exception

2009-09-24 Thread JF Simon
Don't you find my problem really funny ? --~--~-~--~~~---~--~~ 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 em

MultiWidget fail to render without exception

2009-09-23 Thread JF Simon
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 : class SignupPasswordWidget(forms.MultiWidget): def __init__(self, attrs=None): widgets = ( form