Permalink
Browse files

Removed a few leftover references to kid.

  • Loading branch information...
ralphbean committed Apr 28, 2012
1 parent 2b3ed27 commit 1755fd14aac5691d1688a89ad97e56b2ac7f081e
Showing with 1 addition and 10 deletions.
  1. +1 −10 tw2/core/template.py
@@ -125,25 +125,16 @@ def _get_adaptor_renderer(self, src, dst, template):
return lambda **kw: string.Template(template).substitute(
**dict(kw['info']['w'].iteritems())
)
if src == dst and src in ('kid', 'genshi'):
if src == dst and src in ('genshi'):
return self[src].transform
elif src == 'mako' and dst == 'kid':
from kid import XML
return lambda **kw: XML(template.render(**kw))
elif src == 'mako' and dst == 'genshi':
from genshi.core import Markup
return lambda **kw: Markup(template.render(**kw).decode('utf-8'))
elif src == 'mako':
return template.render
elif src == 'kid' and dst == 'genshi':
from genshi.input import ET
return lambda **kw: ET(self[src].transform(**kw))
elif dst == 'genshi':
from genshi.core import Markup
return lambda **kw: Markup(self[src].render(**kw))
elif dst == 'kid':
from kid import XML
return lambda **kw: XML(self[src].render(**kw))
else:
return self[src].render

0 comments on commit 1755fd1

Please sign in to comment.