Commits

Andriy Kornatskyy committed 08cb601

Fixed pep8 warnings

  • Participants
  • Parent commits 474e626

Comments (0)

Files changed (4)

File i18n/en/LC_MESSAGES/validation.po

 msgstr "The value '%s' is invalid."
 
 #: src/wheezy/validation/rules.py:12 src/wheezy/validation/rules.py:15
+#: src/wheezy/validation/rules.py:17
 msgid "Required field cannot be left blank."
 msgstr "Required field cannot be left blank."
 
 #: src/wheezy/validation/rules.py:79 src/wheezy/validation/rules.py:82
+#: src/wheezy/validation/rules.py:87
 #, python-format
 msgid "Required to be a minimum of %(min)d characters in length."
 msgstr "Required to be a minimum of %(min)d characters in length."
 
 #: src/wheezy/validation/rules.py:84 src/wheezy/validation/rules.py:87
+#: src/wheezy/validation/rules.py:92
 #, python-format
 msgid "The length must fall within the range %(min)d - %(max)d characters."
 msgstr "The length must fall within the range %(min)d - %(max)d characters."
 
 #: src/wheezy/validation/rules.py:91 src/wheezy/validation/rules.py:94
+#: src/wheezy/validation/rules.py:99
 #, python-format
 msgid "Exceeds maximum length of %(max)d."
 msgstr "Exceeds maximum length of %(max)d."
 
 #: src/wheezy/validation/rules.py:214 src/wheezy/validation/rules.py:217
+#: src/wheezy/validation/rules.py:224
 #, python-format
 msgid "The value failed equality comparison with \"%(comparand)s\"."
 msgstr "The value failed equality comparison with \"%(comparand)s\"."

File i18n/validation.po

 msgstr "The value '%s' is invalid."
 
 #: src/wheezy/validation/rules.py:12 src/wheezy/validation/rules.py:15
+#: src/wheezy/validation/rules.py:17
 msgid "Required field cannot be left blank."
 msgstr "Required field cannot be left blank."
 
 #: src/wheezy/validation/rules.py:79 src/wheezy/validation/rules.py:82
+#: src/wheezy/validation/rules.py:87
 #, python-format
 msgid "Required to be a minimum of %(min)d characters in length."
 msgstr "Required to be a minimum of %(min)d characters in length."
 
 #: src/wheezy/validation/rules.py:84 src/wheezy/validation/rules.py:87
+#: src/wheezy/validation/rules.py:92
 #, python-format
 msgid "The length must fall within the range %(min)d - %(max)d characters."
 msgstr "The length must fall within the range %(min)d - %(max)d characters."
 
 #: src/wheezy/validation/rules.py:91 src/wheezy/validation/rules.py:94
+#: src/wheezy/validation/rules.py:99
 #, python-format
 msgid "Exceeds maximum length of %(max)d."
 msgstr "Exceeds maximum length of %(max)d."
 
 #: src/wheezy/validation/rules.py:214 src/wheezy/validation/rules.py:217
+#: src/wheezy/validation/rules.py:224
 #, python-format
 msgid "The value failed equality comparison with \"%(comparand)s\"."
 msgstr "The value failed equality comparison with \"%(comparand)s\"."

File src/wheezy/validation/rules.py

 
 class RequiredRule(object):
     """ Any value evaluated to boolean ``True`` pass this rule.
-    """ 
+    """
 
     def __init__(self, message_template=None):
         self.message_template = message_template or _(
 
 
 class CompareRule(object):
-    """ 
+    """ Compares attribute being validated with some other attribute value.
     """
 
     def __init__(self, equal=None, message_template=None):

File src/wheezy/validation/validator.py

 
 
 class Validator(object):
-    """ Container of validation rules that all together provide 
+    """ Container of validation rules that all together provide
         object validation.
     """
     def __init__(self, mapping):