Skip to content

Commit

Permalink
Changed the method name from validate_value() to validate_value_attri…
Browse files Browse the repository at this point in the history
…bute() to be more specific
  • Loading branch information
bharadwajyarlagadda committed Sep 29, 2016
1 parent 2199016 commit 2fd284f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions korona/html/tags/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,10 @@ class Input(object):
type="image").
.. versionadded:: 0.4.2
.. versionchanged:: 0.4.3-dev
Renamed the method :func:`validate_value` to
:func:`validate_value_attribute`.
"""
def __init__(self,
accept=None,
Expand Down Expand Up @@ -609,7 +613,7 @@ def __init__(self,
default_values=ATTRIBUTES['type']['values'])

# Validation method for 'value' attribute.
self.validate_value(type=type, value=value)
self.validate_value_attribute(type=type, value=value)

# Validation method for 'width' attribute.
self.validate_input_attribute(type=type,
Expand Down Expand Up @@ -728,7 +732,7 @@ def validate_max_min_attributes(self,
attribute_name=attribute_name,
attribute_value=attribute_value)

def validate_value(self, type, value):
def validate_value_attribute(self, type, value):
"""Validates the value attribute for <input> tag. The value attribute
cannot be used with <input type="file">.
"""
Expand Down

0 comments on commit 2fd284f

Please sign in to comment.