Hi,

I'm using Jinja2 with Twisted in a multiprocessing, multithreaded web
service. I'm using jinja2 templates to render the final xml response.

Unfortunately I'm finding that I'm getting a traceback that I don't
understand.

My input is this hash

[DEBUG/MainProcess] rendering with data {'status': 'success', 'defer':
False, 'success': True, 'summary': 'two', 'shapes': 'three',
'failure': False, 'reason': None, 'routelist': 'one'}

And I get this:

Traceback (most recent call last):
  File "/home/msoulier/envs/pathway/lib/python2.6/site-packages/
Twisted-9.0.0-py2.6-linux-i686.egg/twisted/internet/defer.py", line
323, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "./twisted_gs_server.py", line 126, in route_success
    content = str(response_template.render(data))
  File "/home/msoulier/envs/pathway/lib/python2.6/site-packages/
Jinja2-2.2.1-py2.6.egg/jinja2/environment.py", line 669, in render
    return self.environment.handle_exception(exc_info, True)
  File "<template>", line 18, in top-level template code
  File "/home/msoulier/envs/pathway/lib/python2.6/site-packages/
Jinja2-2.2.1-py2.6.egg/jinja2/environment.py", line 331, in getitem
    return obj[argument]
UndefinedError: 'str' object has no attribute 'position'

Can anyone shed some light for me?

Thanks,
Mike

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" 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/pocoo-libs?hl=en.

Reply via email to