[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] tuples returned by run_ro_query
From: |
Ian Haywood |
Subject: |
[Gnumed-devel] tuples returned by run_ro_query |
Date: |
Tue, 23 Sep 2003 19:54:21 +1000 |
User-agent: |
Mutt/1.5.4i |
2003-09-23 18:10:23 [PANIC] (gmTmpPatient.py::__init__:409): Traceback
(most recent call last):<#10-0x0A-lf>
2003-09-23 18:10:23 [PANIC] (gmTmpPatient.py::__init__:409): File
"gmTmpPatient.py", line 404, in
__init__<#10-0x0A-lf>
self.patient = gmPerson(aPKey)<#10-0x0A-lf>
2003-09-23 18:10:23 [PANIC] (gmTmpPatient.py::__init__:409): File
"gmTmpPatient.py", line 83, in
__init__<#10-0x0A-lf>
if not self._pkey_exists():<#10-0x0A-lf>
2003-09-23 18:10:23 [PANIC] (gmTmpPatient.py::__init__:409): File
"gmTmpPatient.py", line 114, in
_pkey_exists<#10-0x0A-lf> res, = gmPG.run_ro_query('personalia', cmd,
None, self.ID)<#10-0x0A-lf>
2003-09-23 18:10:23 [PANIC] (gmTmpPatient.py::__init__:409): ValueError:
unpack tuple of wrong size<#10-0x0A-lf>
My setup chokes when trying to squeeze the two-tuple returned from
run_ro_query into a single variable.
~:$ python -V
Python 2.2.3+
~:$
Can we change the end of run_ro_query to:
pool.ReleaseConnection (aSerive)
if get_col_idx is None:
curs.close ()
return data
else:
col_idx = get_col_indices (curs)
curs.close ()
return data, col_idx
Ian
--
PGP public key E750652E at wwwkeys.pgp.net
9BF0 67B7 F84F F7EE 0C42 C063 28FC BC52 E750 652E
pgpYZD7wb_bYM.pgp
Description: PGP signature
- [Gnumed-devel] tuples returned by run_ro_query,
Ian Haywood <=