Revision 793
Added by Aaron Marcuse-Kubitza about 13 years ago
lib/xml_func.py | ||
---|---|---|
16 | 16 |
def conv(val): |
17 | 17 |
try: return type_(val) |
18 | 18 |
except ValueError, e: raise SyntaxException(e) |
19 |
return map_items(conv, items)
|
|
19 |
return map_items(conv, xml_dom.TextEntryOnlyIter(items))
|
|
20 | 20 |
|
21 | 21 |
def alt(items): |
22 | 22 |
items = list(items) |
Also available in: Unified diff
xml_func.py: Use xml_dom.TextEntryOnlyIter to check inputs for XML funcs that only handle strings, not whole elements