#3924: Caught an exception while rendering: 'ascii' codec can't decode byte 0xc3
in position 8: ordinal not in range(128)
-------------------------------------+--------------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  hugo           
     Status:  reopened               |            Component:  Template system
    Version:  SVN                    |           Resolution:                 
   Keywords:                         |                Stage:  Accepted       
  Has_patch:  0                      |           Needs_docs:  0              
Needs_tests:  0                      |   Needs_better_patch:  0              
-------------------------------------+--------------------------------------
Comment (by [EMAIL PROTECTED]):

 There is another similar problem in _html_output. I've corrected
 commenting out the FIXME!! in the file django_src/django/newforms/forms.py
 
 
 {{{
 def _html_output(self, normal_row, error_row, row_ender, help_text_html,
 errors_on_separate_row):
         "Helper function for outputting HTML. Used by as_table(), as_ul(),
 as_p()."
         top_errors = self.non_field_errors() # Errors that should be
 displayed above all fields.
         output, hidden_fields = [], []
         for name, field in self.fields.items():
             bf = BoundField(self, field, name)
             bf_errors = ErrorList([escape(error) for error in bf.errors])
 # Escape and cache in local variable.
             if bf.is_hidden:
                 if bf_errors:
                     top_errors.extend(['(Hidden field %s) %s' % (name, e)
 for e in bf_errors])
                 hidden_fields.append(unicode(bf))
             else:
                 if errors_on_separate_row and bf_errors:
                     output.append(error_row % bf_errors)
                 if bf.label:
                     label = escape(bf.label)
                     # Only add a colon if the label does not end in
 punctuation.
                     if label[-1] not in ':?.!':
                         label += ':'
                     label = bf.label_tag(label) or ''
                 else:
                     label = ''
                 if field.help_text:
                     #help_text = help_text_html % field.help_text FIXME!!
                     help_text = u''
                 else:
                     help_text = u''
                 output.append(normal_row % {'errors': bf_errors, 'label':
 label, 'field': unicode(bf), 'help_text': help_text})
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3924#comment:24>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to