gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] <bug> display Measurement grid


From: Jerzy Luszawski
Subject: [Gnumed-devel] <bug> display Measurement grid
Date: Mon, 18 Aug 2008 14:39:24 +0200
User-agent: KMail/1.9.9

After running update_tree.sh just a moment ago, I started GNUmed and tried to 
display Measurement tab, and got unhandled exception. Below is a part of my 
log. It seems to be related to latest talk about revision displaying. Was there 
any change to db required for it to work? 
The Measurement tab without any results loads correctly.

Don' know if it is in planned 0.3rc too, or only  in CVS.

log:
===============================================
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                 name = gm-from-cvs
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                    v = [cTestResult]: cannot access [row_version]
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):          root_logger = <logging.RootLogger instance at 0xb7d1486c>
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                  ext = .log
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                    t = <class 
'Gnumed.pycommon.gmExceptions.NoSuchBusinessObjectAttributeError'>
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                 _cfg = <Gnumed.pycommon.gmCfg2.gmCfgData object at 
0xb7dbadac>
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                   tb = <traceback object at 0x935143c>
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#155): >>> execution frame [ShowModal] in 
[/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_windows.py] at line 
699 <<<
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                 args = 
(<Gnumed.wxpython.gmExceptionHandlingWidgets.cUnhandledExceptionDlg; proxy of 
<Swig Object of type 'wxDialog *' at 0x93a9540> >,)
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):               kwargs = {}
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#155): >>> execution frame [__on_paint_event] in 
[/home/jlu/gnumed-CVS/gnumed/Gnumed/wxpython/gmRegetMixin.py] at line 56 <<<
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                 self = 
<Gnumed.wxpython.gmMeasurementWidgets.cMeasurementsPnl; proxy of <Swig Object 
of type 'wxScrolledWindow *' at 0x9087428> >
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                event = <wx._core.PaintEvent; proxy of <Swig Object of 
type 'wxPaintEvent *' at 0xbfe2ba84> >
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#155): >>> execution frame [__repopulate_ui] in 
[/home/jlu/gnumed-CVS/gnumed/Gnumed/wxpython/gmRegetMixin.py] at line 66 <<<
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                 self = 
<Gnumed.wxpython.gmMeasurementWidgets.cMeasurementsPnl; proxy of <Swig Object 
of type 'wxScrolledWindow *' at 0x9087428> >
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#155): >>> execution frame [_populate_with_data] in 
[/home/jlu/gnumed-CVS/gnumed/Gnumed/wxpython/gmMeasurementWidgets.py] at line 
688 <<<
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                 self = 
<Gnumed.wxpython.gmMeasurementWidgets.cMeasurementsPnl; proxy of <Swig Object 
of type 'wxScrolledWindow *' at 0x9087428> >
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                  pat = <Gnumed.business.gmPerson.gmCurrentPatient object 
at 0x883a70c>
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#155): >>> execution frame [_set_patient] in 
[/home/jlu/gnumed-CVS/gnumed/Gnumed/wxpython/gmMeasurementWidgets.py] at line 
615 <<<
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                 self = 
<Gnumed.wxpython.gmMeasurementWidgets.cMeasurementsGrid; proxy of <Swig Object 
of type 'wxGrid *' at 0x90882d8> >
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):              patient = <Gnumed.business.gmPerson.gmCurrentPatient object 
at 0x883a70c>
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#155): >>> execution frame [repopulate_grid] in 
[/home/jlu/gnumed-CVS/gnumed/Gnumed/wxpython/gmMeasurementWidgets.py] at line 
483 <<<
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):       missing_review = True
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):              row_idx = 0
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):        review_status = not yet
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):              results = [<Gnumed.business.gmPathLab.cTestResult instance 
at 0x93509ec>]
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):   has_result_comment = False
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):               result = [cTestResult:6]: ['comment: None', 
'xmin_test_result_58: 38994', 'val_normal_range: None', u'val_alpha: 13,5', 
'review_comment: None', 'health_issue: None', 'pk_patient: 14', u'name_unified: 
leukocytes', 'reviewed: False', u'unified_val: 13,5', u'conversion_unit: 
Gpt/l', 'review_by_responsible_reviewer: False', 'xmin_test_result: 38994', 
'val_target_min: None', 'norm_ref_group: None', 'is_clinically_relevant: None', 
u'unified_name: leukocytes', 'pk_last_reviewer: None', u'modified_by: LMcC', 
'pk_encounter: 25', 'unified_target_range: None', 'pk_test_type: 6', 
u'responsible_reviewer: LMcC (Dr. Leonard Horatio McCoy)', u'name_tt: 
leukocytes (EML)', 'modified_when: 2008-08-18 14:17:36.239717+02:00', 
'val_normal_max: None', 'pk_test_org: 4', 'pk_episode: 6', 
'coding_system_unified: None', u'comment_tt: EDTA sample', 'unified_target_min: 
None', u'val_unit: M/l', 'val_num: None', 'material: None', u'code_tt: 
WBC-EML', u'unified_code: WBC', 'unified_target_max: None', 
'is_technically_abnormal: None', 'val_target_range: None', 'val_normal_min: 
None', 'pk_test_type_unified: 1', 'pk_test_result: 6', 'material_detail: None', 
'abnormality_indicator: None', 'val_target_max: None', u'episode: 
Wodog\u0142owie wrodzone', 'coding_system_tt: None', 'review_by_you: False', 
u'soap_cat: o', 'pk_item: 30', 'last_reviewer: None', 'comment_unified: None', 
'last_reviewed: None', u'code_unified: WBC', 'pk_intended_reviewer: 1', 
'clin_when: 2008-08-05 20:08:00+02:00', 'pk_health_issue: None', 
'you_are_responsible: True', 'note_test_org: None']
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                  ind = 
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):             date_idx = 0
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):      result_relevant = False
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165): lab_abnormality_indicator = 
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):      rebuild_tooltip = True
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                  row = 0
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                  tmp = 13,5 ✍
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):     test_type_labels = [u'WBC (leukocytes)']
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                 self = 
<Gnumed.wxpython.gmMeasurementWidgets.cMeasurementsGrid; proxy of <Swig Object 
of type 'wxGrid *' at 0x90882d8> >
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165): has_clinical_min_or_max = False
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                 test = [u'leukocytes', u'WBC']
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):         vals2display = [u'13,5 \u270d']
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):       normal_min_max = 
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                 date = [datetime.datetime(2008, 8, 5, 0, 0, 
tzinfo=<psycopg2.tz.FixedOffsetTimezone object at 0x93507ac>)]
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165): abnormality_indicator = 
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165): has_normal_min_or_max = False
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):     test_date_labels = ['2008\nsie 05']
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                  emr = <Gnumed.business.gmClinicalRecord.cClinicalRecord 
object at 0x8ff7e8c>
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):     clinical_min_max = 
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                  col = 1
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#155): >>> execution frame [__getitem__] in 
[/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmBusinessDBObject.py] at line 275 
<<<
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):            attribute = row_version
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):                 self = [cTestResult:6]: ['comment: None', 
'xmin_test_result_58: 38994', 'val_normal_range: None', u'val_alpha: 13,5', 
'review_comment: None', 'health_issue: None', 'pk_patient: 14', u'name_unified: 
leukocytes', 'reviewed: False', u'unified_val: 13,5', u'conversion_unit: 
Gpt/l', 'review_by_responsible_reviewer: False', 'xmin_test_result: 38994', 
'val_target_min: None', 'norm_ref_group: None', 'is_clinically_relevant: None', 
u'unified_name: leukocytes', 'pk_last_reviewer: None', u'modified_by: LMcC', 
'pk_encounter: 25', 'unified_target_range: None', 'pk_test_type: 6', 
u'responsible_reviewer: LMcC (Dr. Leonard Horatio McCoy)', u'name_tt: 
leukocytes (EML)', 'modified_when: 2008-08-18 14:17:36.239717+02:00', 
'val_normal_max: None', 'pk_test_org: 4', 'pk_episode: 6', 
'coding_system_unified: None', u'comment_tt: EDTA sample', 'unified_target_min: 
None', u'val_unit: M/l', 'val_num: None', 'material: None', u'code_tt: 
WBC-EML', u'unified_code: WBC', 'unified_target_max: None', 
'is_technically_abnormal: None', 'val_target_range: None', 'val_normal_min: 
None', 'pk_test_type_unified: 1', 'pk_test_result: 6', 'material_detail: None', 
'abnormality_indicator: None', 'val_target_max: None', u'episode: 
Wodog\u0142owie wrodzone', 'coding_system_tt: None', 'review_by_you: False', 
u'soap_cat: o', 'pk_item: 30', 'last_reviewer: None', 'comment_unified: None', 
'last_reviewed: None', u'code_unified: WBC', 'pk_intended_reviewer: 1', 
'clin_when: 2008-08-05 20:08:00+02:00', 'pk_health_issue: None', 
'you_are_responsible: True', 'note_test_org: None']
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):               getter = None
2008-08-18 14:18:08  DEBUG     gm.logging 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() 
#165):              methods = [('get_fields', <bound method 
cTestResult.get_fields of <Gnumed.business.gmPathLab.cTestResult instance at 
0x93509ec>>), ('get_patient', <bound method cTestResult.get_patient of 
<Gnumed.business.gmPathLab.cTestResult instance at 0x93509ec>>), 
('get_updatable_fields', <bound method cTestResult.get_updatable_fields of 
<Gnumed.business.gmPathLab.cTestResult instance at 0x93509ec>>)]
2008-08-18 14:18:08  WARNING   gm.database 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmBusinessDBObject.py::__getitem__()
 #270): [cTestResult]: no attribute [row_version]
2008-08-18 14:18:08  WARNING   gm.database 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmBusinessDBObject.py::__getitem__()
 #271): [cTestResult]: valid attributes: ['comment', 'xmin_test_result_58', 
'val_normal_range', 'val_alpha', 'review_comment', 'health_issue', 
'pk_patient', 'name_unified', 'reviewed', 'unified_val', 'conversion_unit', 
'review_by_responsible_reviewer', 'xmin_test_result', 'val_target_min', 
'norm_ref_group', 'is_clinically_relevant', 'unified_name', 'pk_last_reviewer', 
'modified_by', 'pk_encounter', 'unified_target_range', 'pk_test_type', 
'responsible_reviewer', 'name_tt', 'modified_when', 'val_normal_max', 
'pk_test_org', 'pk_episode', 'coding_system_unified', 'comment_tt', 
'unified_target_min', 'val_unit', 'val_num', 'material', 'code_tt', 
'unified_code', 'unified_target_max', 'is_technically_abnormal', 
'val_target_range', 'val_normal_min', 'pk_test_type_unified', 'pk_test_result', 
'material_detail', 'abnormality_indicator', 'val_target_max', 'episode', 
'coding_system_tt', 'review_by_you', 'soap_cat', 'pk_item', 'last_reviewer', 
'comment_unified', 'last_reviewed', 'code_unified', 'pk_intended_reviewer', 
'clin_when', 'pk_health_issue', 'you_are_responsible', 'note_test_org']
2008-08-18 14:18:08  WARNING   gm.database 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmBusinessDBObject.py::__getitem__()
 #272): [cTestResult]: no getter method [get_row_version]
2008-08-18 14:18:08  WARNING   gm.database 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmBusinessDBObject.py::__getitem__()
 #274): [cTestResult]: valid getter methods: [('get_fields', <bound method 
cTestResult.get_fields of <Gnumed.business.gmPathLab.cTestResult instance at 
0x93590ac>>), ('get_patient', <bound method cTestResult.get_patient of 
<Gnumed.business.gmPathLab.cTestResult instance at 0x93590ac>>), 
('get_updatable_fields', <bound method cTestResult.get_updatable_fields of 
<Gnumed.business.gmPathLab.cTestResult instance at 0x93590ac>>)]
2008-08-18 14:18:08  DEBUG     gm.gui 
(/home/jlu/gnumed-CVS/gnumed/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
 #45): unhandled exception caught:
Traceback (most recent call last):
  File "/home/jlu/gnumed-CVS/gnumed/Gnumed/wxpython/gmRegetMixin.py", line 56, 
in __on_paint_event
    self.__repopulate_ui()
  File "/home/jlu/gnumed-CVS/gnumed/Gnumed/wxpython/gmRegetMixin.py", line 66, 
in __repopulate_ui
    self._data_stale = not self._populate_with_data()
  File "/home/jlu/gnumed-CVS/gnumed/Gnumed/wxpython/gmMeasurementWidgets.py", 
line 688, in _populate_with_data
    self.data_grid.patient = pat
  File "/home/jlu/gnumed-CVS/gnumed/Gnumed/wxpython/gmMeasurementWidgets.py", 
line 615, in _set_patient
    self.repopulate_grid()
  File "/home/jlu/gnumed-CVS/gnumed/Gnumed/wxpython/gmMeasurementWidgets.py", 
line 483, in repopulate_grid
    'row_ver': result['row_version'],
  File "/home/jlu/gnumed-CVS/gnumed/Gnumed/pycommon/gmBusinessDBObject.py", 
line 275, in __getitem__
    raise gmExceptions.NoSuchBusinessObjectAttributeError, '[%s]: cannot access 
[%s]' % (self.__class__.__name__, attribute)
NoSuchBusinessObjectAttributeError: [cTestResult]: cannot access [row_version]
==============================================================



Jerzy Luszawski

reply via email to

[Prev in Thread] Current Thread [Next in Thread]