bugGNU Health - Bugs: bug #63518, TypeError: unhashable type: 'dict'

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #63518: TypeError: unhashable type: 'dict'

Submitter:  Mathias Behrle <yangoon>
Submitted:  Tue 13 Dec 2022 09:48:07 AM UTC
   
 
Category:  GUI / Frontend Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  meanmicio
Open/Closed:  Closed Release:  4.0.0
Module:  gnuhealth-client Component:  Hospital Management

Wed 14 Dec 2022 03:22:19 PM UTC, comment #4: 


> Check the "Preview" option on the Attachment. That would make it.


Indeed, missed that. Thanks!

Mathias Behrle <yangoon>
Wed 14 Dec 2022 02:11:10 PM UTC, comment #3: 

comment #2:

> Tested, works!


Excellent!

>
> OT for this issue:
> Starting point for my tests was the embedded view displayed in https://mastodon.social/@gnuhealth/109500376312922095 . I am unable to produce this view with standard gnuhealth-client and just didn't have the time to dig into the code: Is there something special to observe?
>


Check the "Preview" option on the Attachment. That would make it.

Best,
Luis

>
>
>

Luis Falcon <meanmicio>
Group administrator
Wed 14 Dec 2022 01:06:37 PM UTC, comment #2: 

Tested, works!

OT for this issue:
Starting point for my tests was the embedded view displayed in https://mastodon.social/@gnuhealth/109500376312922095 . I am unable to produce this view with standard gnuhealth-client and just didn't have the time to dig into the code: Is there something special to observe?




Mathias Behrle <yangoon>
Wed 14 Dec 2022 12:09:35 PM UTC, comment #1: 
Luis Falcon <meanmicio>
Group administrator
Tue 13 Dec 2022 09:48:07 AM UTC, original submission:  

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).

Mathias Behrle <yangoon>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by yangoon (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-14 meanmicio StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2022-12-14 meanmicio StatusNone Ready For Test
        Assigned toNone meanmicio
        ReleaseNone 4.0.0
        ComponentNone Hospital Management
    2022-12-13 yangoon Attached File- Added Bildschirmfoto@zu@2022-12-13@10-46-48.png, #54086

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code