Hi,

I have migrated my codebase to 0.9.7 and when I'm trying to use render_mako
instead of render() I get a strange error:

File '/Users/amaslov/Projects/dou-pylons/doupy/doupy/controllers/root.py',
line 239 in staticpage
 return render('/pages/%s.html' % name)
File
'/Users/amaslov/Projects/dou-pylons/py/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/templating.py',
line 274 in render_mako
 cache_type=cache_type, cache_expire=cache_expire)
File
'/Users/amaslov/Projects/dou-pylons/py/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/templating.py',
line 249 in cached_template
 return render_func()
File
'/Users/amaslov/Projects/dou-pylons/py/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/templating.py',
line 271 in render_template
 return literal(template.render_unicode(**globs))
File
'/Users/amaslov/Projects/dou-pylons/py/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/template.py',
line 138 in render_unicode
 return runtime._render(self, self.callable_, args, data, as_unicode=True)
File
'/Users/amaslov/Projects/dou-pylons/py/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/runtime.py',
line 348 in _render
 return context._pop_buffer().getvalue()
File
'/Users/amaslov/Projects/dou-pylons/py/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/util.py',
line 74 in getvalue
 return self.delim.join(self.data)
TypeError: sequence item 68: expected string or Unicode, NoneType found

Any ideas?

-- 
Max.Ischenko // twitter.com/maxua

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to