Hello,

I am attempting to upgrade a TurboGears project which was started (and is 
working) with TG 2.1b2 to 2.1. I created a new virtual environment in which to 
experiment, checked out my project into the environment, ran "python setup.py 
develop" and found that I needed to install repoze.what_pylons and genshi. 
After this, however, @expose('json') methods seem to get pumped through genshi 
which barfs on what it thinks is a template name. This same incarnation worked 
in 2.1b2, so I compared a quickstarted junk project and found that 
"base_config.renderers.append('json')" is added in app_cfg.py, but I still get 
the same backtrace on rendering.

Thanks for any help!

Cheers,
M

...
File 
'/Users/agentm/Dev/flowork-tg2env2.1/lib/python2.6/site-packages/TurboGears2-2.1-py2.6.egg/tg/controllers/decoratedcontroller.py',
 line 133 in _call
  response = self._render_response(controller, output)
File 
'/Users/agentm/Dev/flowork-tg2env2.1/lib/python2.6/site-packages/TurboGears2-2.1-py2.6.egg/tg/controllers/decoratedcontroller.py',
 line 312 in _render_response
  template_name=template_name)
File 
'/Users/agentm/Dev/flowork-tg2env2.1/lib/python2.6/site-packages/TurboGears2-2.1-py2.6.egg/tg/render.py',
 line 211 in render
  return render_function(template_name, template_vars, **kwargs)
File 
'/Users/agentm/Dev/flowork-tg2env2.1/lib/python2.6/site-packages/TurboGears2-2.1-py2.6.egg/tg/render.py',
 line 242 in render_genshi
  **kwargs)
File 
'/Users/agentm/Dev/flowork-tg2env2.1/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/templating.py',
 line 307 in render_genshi
  ns_options=('method'), method=method)
File 
'/Users/agentm/Dev/flowork-tg2env2.1/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/templating.py',
 line 218 in cached_template
  return render_func()
File 
'/Users/agentm/Dev/flowork-tg2env2.1/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/templating.py',
 line 300 in render_template
  template = globs['app_globals'].genshi_loader.load(template_name)
File 
'/Users/agentm/Dev/flowork-tg2env2.1/lib/python2.6/site-packages/TurboGears2-2.1-py2.6.egg/tg/dottednames/genshi_lookup.py',
 line 28 in load
  relative_to=relative_to, cls=cls, encoding=encoding)
File 'build/bdist.macosx-10.6-universal/egg/genshi/template/loader.py', line 
246 in load
TemplateNotFound: Template "json" not found

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

Reply via email to