health-dev
[Top][All Lists]
Advanced

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

[Health-dev] gnuhealth_demo script


From: Kaushik
Subject: [Health-dev] gnuhealth_demo script
Date: Tue, 25 Jun 2013 20:59:25 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

Dear all,
        I ran the health_demo_server.py and it seemed to get completed. However, I don't see any patients. If I goto Health->Patients->Patients, I don't see a single entry.
However, connecting to the online demo database, under the same menu I can see Ana betz and her family.

So, I am not sure if the demo database got installed correctly.  I see some products have been added (like halothane, isoflurane etc).

The following is the output from the script health_demo_server.py.   Do you think the script worked as expected.  Is it ok if no patients are present.


No handlers could be found for logger "party"
/home/gnuhealth/tryton/tryton_2_6/server/trytond-2.6.3/trytond/model/modelstorage.py:1285: DeprecationWarning: With-statements now directly support multiple context managers
Transaction().set_context(self._context)):
/home/gnuhealth/tryton/tryton_2_6/server/trytond-2.6.3/trytond/model/fields/reference.py:68: DeprecationWarning: With-statements now directly support multiple context managers
Transaction().set_user(0)):
/home/gnuhealth/tryton/tryton_2_6/server/trytond-2.6.3/trytond/ir/rule.py:223: DeprecationWarning: With-statements now directly support multiple context managers
Transaction().set_context(user=0)):
/home/gnuhealth/tryton/tryton_2_6/server/trytond-2.6.3/trytond/modules/__init__.py:364: DeprecationWarning: With-statements now directly support multiple context managers
with contextmanager:
Traceback (most recent call last):
File "health_demo_server.py", line 189, in <module>
LoadBetzFamilyInfo()
File "health_demo_server.py", line 66, in LoadBetzFamilyInfo
party.save()
File "/home/gnuhealth/.local/lib/python2.7/site-packages/proteus/__init__.py", line 662, in save
self.__id, = self._proxy.create([values], context)
File "/home/gnuhealth/.local/lib/python2.7/site-packages/proteus/config.py", line 144, in __call__
result = rpc.result(meth(*args, **kwargs))
File "/home/gnuhealth/tryton/tryton_2_6/server/trytond-2.6.3/trytond/modules/health/health.py", line 578, in create
return super(PartyPatient, cls).create(values)
File "/home/gnuhealth/tryton/tryton_2_6/server/trytond-2.6.3/trytond/modules/party/party.py", line 159, in create
values = values.copy()
AttributeError: 'list' object has no attribute 'copy'


Thanks
Kaushik


reply via email to

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