Add expression to NumericFacet
This commit is contained in:
parent
7ce6468d9b
commit
dbe0ba518a
|
@ -110,16 +110,17 @@ class BlankFacet(BoolFacet):
|
||||||
|
|
||||||
# Capitalize 'From' to get around python's reserved word.
|
# Capitalize 'From' to get around python's reserved word.
|
||||||
class NumericFacet(Facet):
|
class NumericFacet(Facet):
|
||||||
def __init__(self, column, From=None, to=None, select_blank=True, select_error=True, select_non_numeric=True, select_numeric=True, **options):
|
def __init__(self, column, From=None, to=None, expression='value', select_blank=True, select_error=True, select_non_numeric=True, select_numeric=True, **options):
|
||||||
super(NumericFacet, self).__init__(
|
super(NumericFacet, self).__init__(
|
||||||
column,
|
column,
|
||||||
|
From=From,
|
||||||
|
to=to,
|
||||||
|
expression=expression,
|
||||||
type='range',
|
type='range',
|
||||||
select_blank=select_blank,
|
select_blank=select_blank,
|
||||||
select_error=select_error,
|
select_error=select_error,
|
||||||
select_non_numeric=select_non_numeric,
|
select_non_numeric=select_non_numeric,
|
||||||
select_numeric=select_numeric,
|
select_numeric=select_numeric,
|
||||||
From=From,
|
|
||||||
to=to,
|
|
||||||
**options)
|
**options)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue