Learning-from-our-past / Kaira-old

A Python software to extract data from matrikel books to be used in statistical research
GNU General Public License v2.0
0 stars 0 forks source link

Manually edited datafields won't get loaded to GUI from xml #8

Closed Tumetsu closed 9 years ago

Tumetsu commented 9 years ago

For some reason some of the edited data fields such as BirthLocation in Karelian data is not loaded from xml to GUI/data model even though ids are correct and saving works ok.

Tumetsu commented 9 years ago

Problem seems to be that the recent code which color codes the fields in GUI by creating ValueWrappers early in extractors occasionally would overwrite the manual values. WIll close this once everything is fixed.

Tumetsu commented 9 years ago

Issue solved by adding a setter for ValueWrapper which checks if there is user provided manual value and prevents assignment in that case.