donnell74/CSC-450-Scheduler — pull request #27 by prichey (2014-11-09 22:53:05+00:00)
Title: Computers

This pull request accomplishes 2 things (well, 3, kinda):

1: Radiobutton default value is set, and value is updated properly (I was getting the same problems related to calling bool on a string).

2: I added an okay_to_add_constraint function which calls the corresponding functions to check if a constraint is a duplicate or conflicting with any previous constraints. This cleans up the code significantly and is much more DRY. Related to this, I also swapped the values of check_constraint_exists() to return True if the constraint does exist, and also swapped the values of constraint_adding_conflict() to return True if the constraint does add a conflict. I updated all instances to make this change work just like it used to, just be aware of this swap if you use either of these functions in the future.

3: Made spacing consistent and removed trailing whitespace in the three files I touched.

The real significant changes are in guiConstraints, lines 350 - 430