Hello,
I am using Django 0.95 and SimpleTAL for templating. SimpleTAL expects all the 
strings, it seems, to be unicode (something sane from my point of view). It 
seems that some data from PostgreSQL extracted using Django classes is not in 
Unicode and triggers this error:

Request Method:
GET
  Request URL:
http://127.0.0.1:8000/search/
  Exception Type:
ContextContentException
  Exception Value:
Found non-unicode string in Context!
  Exception Location:
/usr/lib/python2.4/site-packages/simpletal/simpleTAL.py in expandInline, line 
619

the traceback is:

Traceback (most recent call last):
 File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in 
get_response
   74. response = callback(request, *callback_args, **callback_kwargs)
 
File 
"/home/pupeno/Software/hostingcompass-django/hostingcompass/../hostingcompass/hostingmap/views.py"
 
in search
   45. template.expand(context, output)
 File "/usr/lib/python2.4/site-packages/simpletal/simpleTAL.py" in expand
   730. self.expandInline (context, encodingFile, interpreter)
 File "/usr/lib/python2.4/site-packages/simpletal/simpleTAL.py" in 
expandInline
   619. raise simpleTALES.ContextContentException ("Found non-unicode string 
in Context!")
 
   ContextContentException at /search/
   Found non-unicode string in Context!

Any ideas ?

Thanks.
-- 
Pupeno <[EMAIL PROTECTED]> (http://pupeno.com)

Attachment: pgpYFhFxhskPA.pgp
Description: PGP signature

Reply via email to