gnumed-bugs
[Top][All Lists]
Advanced

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

Re: [Gnumed-bugs] <bug>: opened timeline plugin in vmware, openSUSE


From: Karsten Hilbert
Subject: Re: [Gnumed-bugs] <bug>: opened timeline plugin in vmware, openSUSE
Date: Tue, 2 Apr 2013 15:44:30 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Apr 02, 2013 at 10:44:26AM +0200, Dr.Leonard Horatio McCoy wrote:

> user comment  : opened timeline plugin in vmware, openSUSE environment
> 
> client version: 1.3.1

This is a problem with advancing the month in a date:

> 2013-03-31 20:59:52  DEBUG     gm.gui 
> (/usr/lib/python2.7/site-packages/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
>  #196): unhandled exception caught:
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/Gnumed/wxpython/gmHorstSpace.py", 
> line 223, in _on_notebook_page_changed
>     new_page.receive_focus()
>   File "/usr/lib/python2.7/site-packages/Gnumed/wxpython/gmPlugin.py", line 
> 188, in receive_focus
>     self._widget.repopulate_ui()
>   File 
> "/usr/lib/python2.7/site-packages/Gnumed/wxpython/gmEMRTimelineWidgets.py", 
> line 68, in repopulate_ui
>     self._populate_with_data()
>   File 
> "/usr/lib/python2.7/site-packages/Gnumed/wxpython/gmEMRTimelineWidgets.py", 
> line 87, in _populate_with_data
>     self._PNL_timeline.open_timeline(timeline.create_timeline_file(patient = 
> pat))
>   File "/usr/lib/python2.7/site-packages/Gnumed/exporters/timeline.py", line 
> 498, in create_timeline_file
>     end = end.replace(month = end.month + 1)
> ValueError: day is out of range for month

- March has got 31 days
- you used GNUmed on March 31st
- GNUmed advanced the date by one month for display in a naive way
- but April only has 30 days

That throws an exception.

Fixed.

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

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