I was definitely self conscious posting so much of my own code, I know I hacked it together and was expecting it to be torn apart, especially since over other places on this forum I consistantly talk about writing good python lol. Tbh I didn't think that syntax was available in 2.7 but good to know!
Ha trust me I'm aware of java.lang.Exception
with SQL errors. That's ANOTHER thing I am trying to refactor for all my forms. Before my time all the validation was done with a sql query - does this name exist? If not, ok then we can insert! When really we should just be using UNIQUE columns, try/excepting inserts with the java.lang.Exception
and then examining the error.
Yea I am taking it one step at a time. When I first got my hands on this project the entirety was basically Magic Pushbutton anti patterns everywhere. Now I have sorted each form into its own module, but they all look so similar, following the same set of steps, so I am trying to take it one step further with a class.