Add ReconJudgmentFacet

This commit is contained in:
Paul Makepeace 2011-06-10 14:31:05 +00:00
parent 8e2f44412f
commit d3163dd693
1 changed files with 8 additions and 0 deletions

View File

@ -121,6 +121,14 @@ class BlankFacet(BoolFacet):
expression='isBlank(value)', selection=selection)
class ReconJudgmentFacet(TextFacet):
def __init__(self, column, **options):
super(ReconJudgmentFacet, self).__init__(column,
expression=('forNonBlank(cell.recon.judgment, v, v, '
'if(isNonBlank(value), "(unreconciled)", "(blank)"))'),
**options)
# Capitalize 'From' to get around python's reserved word.
class NumericFacet(Facet):
def __init__(self, column, From=None, to=None, expression='value',