health
[Top][All Lists]
Advanced

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

Re: [Health] Demo Database error: AttributeError: 'int' object has no at


From: Sebastián Marró
Subject: Re: [Health] Demo Database error: AttributeError: 'int' object has no attribute 'id'
Date: Tue, 30 Oct 2012 01:10:22 -0300

Thanks Ronald, fixed in trunk.

Regards!

2012/10/26 ronald munjoma <address@hidden>
Hi Sebastián,

On 26 October 2012 00:10, Sebastián Marró <address@hidden> wrote:
Hi Ronald

2012/10/25 ronald munjoma <address@hidden>
Hi Sebastián,

The demo database is throwing an error on a Debian clean install running GNU Health 1.6.4, see trace below:

2012-10-25 21:56:12,994 INFO CREATE DB: gnuhealth_demo
Traceback (most recent call last):
  File "health_demo_server.py", line 26, in <module>
    user='admin', password='admin')
  File "/home/medicare/.local/lib/python2.6/site-packages/proteus/config.py", line 262, in set_trytond
    language=language, password=password, config_file=config_file)
  File "/home/medicare/.local/lib/python2.6/site-packages/proteus/config.py", line 220, in __init__
    ], limit=1)[0].id
AttributeError: 'int' object has no attribute 'id'
address@hidden:~/health/tryton/demo$

Can you check that your Proteus version is 2.4?

I was using proteus 2.6, I have uninstalled it and  installed proteus 2.4. The demo database is now throwing the below errors which should be a result of the fix of  bug #37058. 

2012-10-26 09:01:30,317 INFO health_profile
Traceback (most recent call last):
  File "health_demo_server.py", line 276, in <module>
    LoadBetzFamilyInfo()
  File "health_demo_server.py", line 139, in LoadBetzFamilyInfo
    patient_disease.save()
  File "/home/medicare/.local/lib/python2.6/site-packages/proteus/__init__.py", line 604, in save
    self.__id = self._proxy.create(values, context)
  File "/home/medicare/.local/lib/python2.6/site-packages/proteus/config.py", line 121, in __call__
    res = getattr(self._object, self._name)(*args)
  File "/home/medicare/.local/lib/python2.6/site-packages/trytond/model/modelsql.py", line 423, in create
    self._validate([id_new])
  File "/home/medicare/.local/lib/python2.6/site-packages/trytond/model/modelsql.py", line 2210, in _validate
    super(ModelSQL, self)._validate(ids)
  File "/home/medicare/.local/lib/python2.6/site-packages/trytond/model/modelstorage.py", line 978, in _validate
    if not getattr(self, field[0])(ids):
  File "/home/medicare/.local/lib/python2.6/site-packages/trytond/modules/health/health.py", line 1023, in validate_disease_period
    if (disease_data.healed_date < disease_data.diagnosed_date):
TypeError: can't compare datetime.date to NoneType
address@hidden:~/health/tryton/demo$

Regards and thanks
Ronald Munjoma
 

Regards
 

Regards and thanks
Ronald Munjoma




--
Sebastián Marró
thymbr@
Converging Ideas for Emerging Realities

www.thymbra.com





--
Sebastián Marró
thymbr@
Converging Ideas for Emerging Realities

www.thymbra.com


reply via email to

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