Revision 4143
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/xml_func.py | ||
---|---|---|
161 | 161 |
|
162 | 162 |
#### Conditionals |
163 | 163 |
|
164 |
def _eq(items, node): |
|
165 |
items = dict(items) |
|
166 |
try: |
|
167 |
left = items['left'] |
|
168 |
right = items['right'] |
|
169 |
except KeyError: return '' # a value was not mapped to |
|
170 |
return util.bool2str(left == right) |
|
171 |
funcs['_eq'] = _eq |
|
172 |
|
|
173 | 164 |
def _if(items, node): |
174 | 165 |
'''Can add `@name` attr to distinguish separate _if statements''' |
175 | 166 |
items = dict(items) |
Also available in: Unified diff
xml_func.py: Removed no longer needed _eq(), which has been translated to a SQL function