Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
293 B
Python
Raw Permalink Normal View History

2017-08-17 00:33:02 +01:00
def validate_input(trans, error_map, param_values, page_param_map):
2014-12-15 14:37:22 -05:00
"""
Validates the user input, before execution.
"""
first = param_values["name1"]
second = param_values["name2"]
if first == second:
error_map["name1"] = "The value names should be different."