comparison markup/plugin.py @ 145:47bbd9d2a5af trunk

* Fix error in expression evaluation when the expression evaluates to an iterable that does not produce event tuples. * The first location step in path expressions longer assumes the `descendant::` axis, but rather the `child::` axis. * Import cleanups.
author cmlenz
date Tue, 15 Aug 2006 09:52:47 +0000
parents f5ec6d4a61e4
children 537f819c547b
comparison
equal deleted inserted replaced
144:d1ce85a7f296 145:47bbd9d2a5af
14 14
15 """Basic support for the template engine plugin API used by TurboGears and 15 """Basic support for the template engine plugin API used by TurboGears and
16 CherryPy/Buffet. 16 CherryPy/Buffet.
17 """ 17 """
18 18
19 import os
20 from pkg_resources import resource_filename 19 from pkg_resources import resource_filename
21 20
21 from markup import Stream, QName
22 from markup.template import Context, Template, TemplateLoader 22 from markup.template import Context, Template, TemplateLoader
23 from markup.core import Stream, QName
24 23
25 def ET(element): 24 def ET(element):
26 tag_name = element.tag 25 tag_name = element.tag
27 if tag_name.startswith('{'): 26 if tag_name.startswith('{'):
28 tag_name = tag_name[1:] 27 tag_name = tag_name[1:]
Copyright (C) 2012-2017 Edgewall Software