Revision 4477
Added by Aaron Marcuse-Kubitza over 12 years ago
xml_func.py | ||
---|---|---|
183 | 183 |
simplifying_funcs['_exists'] = _exists |
184 | 184 |
|
185 | 185 |
def _if(node): |
186 |
'''Can add `@name` attr to distinguish separate _if statements''' |
|
186 |
''' |
|
187 |
*Must* be run to remove conditions that functions._if() can't handle. |
|
188 |
Note: Can add `@name` attr to distinguish separate _if statements. |
|
189 |
''' |
|
187 | 190 |
params = dict(xml_dom.NodeEntryIter(node)) |
188 | 191 |
then = params.get('then', None) |
189 | 192 |
cond = params.get('cond', None) |
Also available in: Unified diff
xml_func.py: _if(): Documented that it must be run to remove conditions that functions._if() can't handle