Revision 7707
Added by Aaron Marcuse-Kubitza almost 12 years ago
lib/xml_func.py | ||
---|---|---|
333 | 333 |
return units.parse_range(value)[1] |
334 | 334 |
funcs['_rangeEnd'] = _rangeEnd |
335 | 335 |
|
336 |
def _range(items, node): |
|
337 |
items = dict(conv_items(float, items)) |
|
338 |
from_ = items.get('from', None) |
|
339 |
to = items.get('to', None) |
|
340 |
if from_ == None or to == None: return None |
|
341 |
return str(to - from_) |
|
342 |
funcs['_range'] = _range |
|
343 |
|
|
344 | 336 |
class CvException(Exception): |
345 | 337 |
def __init__(self): |
346 | 338 |
Exception.__init__(self, 'CV (coefficient of variation) values are only' |
Also available in: Unified diff
xml_func.py: Removed no longer used _range(). Use SQL functions._range() instead.