#5884: UnicodeDecodeError attempting to render VariableDoesNotExist as a string
-------------------------------------------------+--------------------------
   Reporter:  Karen Tracey <[EMAIL PROTECTED]>  |                Owner:  nobody 
      
     Status:  reopened                           |            Component:  
Uncategorized
    Version:  SVN                                |           Resolution:        
       
   Keywords:                                     |                Stage:  
Unreviewed   
  Has_patch:  0                                  |           Needs_docs:  0     
       
Needs_tests:  0                                  |   Needs_better_patch:  0     
       
-------------------------------------------------+--------------------------
Changes (by Karen Tracey <[EMAIL PROTECTED]>):

  * status:  closed => reopened
  * resolution:  invalid =>

Comment:

 While it is true the test was run with newforms-admin branch, that had no
 bearing on the problem; the code that is causing the problem isn't
 something introduced by newforms-admin.  And even if it was a newforms-
 admin problem, the ticket shouldn't be closed.  newforms-admin needs to be
 eventually merged to trunk so problems with it need to be fixed.

 Problem still exists in today's trunk (revision 7169):

 {{{

 >>> from django.template import Context, loader
 >>> t = loader.get_template('simple.tmpl')
 >>> from crossword.models import Authors
 >>> a = Authors.objects.get(pk=535)
 >>> a
 <Authors: Sue de Nîmes>
 >>> t.render(Context({'item_list': [1,2,3], 'xtra': a}))
 Traceback (most recent call last):
   File "<console>", line 1, in <module>
   File "/homedir/django/trunk/django/template/__init__.py", line 173, in
 render
     return self.nodelist.render(context)
   File "/homedir/django/trunk/django/template/__init__.py", line 748, in
 render
     bits.append(self.render_node(node, context))
   File "/homedir/django/trunk/django/template/debug.py", line 78, in
 render_node
     wrapped = TemplateSyntaxError('Caught an exception while rendering:
 %s' % e)
   File "/homedir/django/trunk/django/template/__init__.py", line 132, in
 __str__
     return self.msg % self.params
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 213:
 ordinal not in range(128)

 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5884#comment:3>
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