navtable/navtable — pull request #56 by jorgelf (2012-07-12 16:20:33+00:00)
Title: Navtable onto attrtables v3

My umpteenth pull request while trying to solve these problems (#48 #38), hope it's the last one. This one is based on amaneiro's contributions with #54 , but with a much more simple approach about fixing the View dependency. All the exceptions raised onto this problem were originated in _CADExtension_, so I tried removing all its references and doing some operations through ToggleEditing, and surprisingly I had no problems. This way, nothing else has to be done, and NavTable's code is cleaner and doesn't rely on the View once the window is opened.
As these code changes were significant ones, someone else should try these patches by working with NavTable for a while, so we can confirm _CADExtension_ wasn't essential at all.

I'm listing the actions I tested (all of the SHP/Postgis one with both the View opened and closed, and deletions were "rendered" instantly in the View), in case someone notices I missed something important:
* SHP/Postgis/DBF/Alphanumeric DB: updating data on a record and saving it, checking that the changes remained there.
* SHP/Postgis/DBF/Alphanumeric DB: deleting a record, checking that the record was actually removed.
* DBF/Alphanumeric DB: creating a new record, checking that the record actually exists (here I had some problems with the DB tables, but they also happened in previous versions and are related to the SQL, gotta look deeper into this).