Introduce Lower Filter

This commit is contained in:
Florent 2014-03-28 11:24:46 +01:00
commit ba2f66183c

View file

@ -196,6 +196,12 @@ class CleanText(Filter):
return txt
class Lower(CleanText):
def filter(self, txt):
txt = super(Lower, self).filter(txt)
return txt.lower()
class CleanDecimal(CleanText):
"""
Get a cleaned Decimal value from an element.