Skip to content

Commit

Permalink
remove unfinished Range validator
Browse files Browse the repository at this point in the history
  • Loading branch information
doncatnip committed Jan 10, 2013
1 parent 096033b commit bf35d8c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/kanone/validator/check.py
Expand Up @@ -178,19 +178,6 @@ def on_value(self, context, value):

return value

@messages\
( min="Value must be greater or equal %(min)i"
, max="Value must be less or equal %(max)i"
)
class Range( Validator ):
def setParameters( self, min=None, max=None ):
self.min = min
self.max = max

def on_value(self, context, value):
if value<self,min:
raise Invalid( value, self, 'min',


@messages\
( fail="Value must lower or equal to %(max)s"
Expand Down

0 comments on commit bf35d8c

Please sign in to comment.