URL: <https://savannah.gnu.org/bugs/?63518>
Summary: TypeError: unhashable type: 'dict' Project: GNU Health Submitter: yangoon Submitted: Tue 13 Dec 2022 09:48:07 AM UTC Category: GUI / Frontend Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Release: None Discussion Lock: Any Module: gnuhealth-client Component: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Tue 13 Dec 2022 09:48:07 AM UTC By: Mathias Behrle <yangoon> Using currently latest heath modules and latest gnuhealth-client: Trying to switch view on 'Images' on 'Dx Imaging - Results' results in ERROR:gnuhealth.common.common: File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/view/form_gtk/one2many.py", line 249, in switch_view self.screen.switch_view() File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/screen/screen.py", line 528, in switch_view self.current_view.set_value() File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/view/form.py", line 497, in set_value widget.set_value() File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/view/form_gtk/calendar_.py", line 72, in set_value self.field.set_client(self.record, self.get_value()) File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/model/field.py", line 285, in set_client super(DateTimeField, self).set_client(record, value, File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/model/field.py", line 176, in set_client record.signal('record-changed') File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/signal_event.py", line 28, in signal fnct(self, signal_data, *data) File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/model/group.py", line 461, in _record_changed self.signal('group-changed', record) File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/signal_event.py", line 28, in signal fnct(self, signal_data, *data) File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/model/field.py", line 564, in _group_changed parent.signal('record-changed') File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/signal_event.py", line 28, in signal fnct(self, signal_data, *data) File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/model/group.py", line 461, in _record_changed self.signal('group-changed', record) File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/signal_event.py", line 28, in signal fnct(self, signal_data, *data) File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/screen/screen.py", line 464, in _group_changed self.display() File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/screen/screen.py", line 957, in display view.display() File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/view/form.py", line 552, in display widget.display() File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/view/form_gtk/one2many.py", line 547, in display self.screen.display() File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/screen/screen.py", line 957, in display view.display() File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/view/form.py", line 552, in display widget.display() File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/gui/window/view_form/view/form_gtk/multiselection.py", line 92, in display self.update_selection(self.record, self.field) File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/common/selection.py", line 71, in update_selection self.init_selection(value) File "/home/mathiasb/projects/gnuhealth4/health-hmis-client/gnuhealth/common/selection.py", line 44, in init_selection and key not in self._values2selection): TypeError: unhashable type: 'dict' The record was a simple record created by just filling in required fields (s. screenshot). _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Tue 13 Dec 2022 09:48:07 AM UTC Name: Bildschirmfoto@zu@2022-12...@10-46-48.png Size: 121KiB By: yangoon <http://savannah.gnu.org/bugs/download.php?file_id=54086> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?63518> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/