[Twisted-Python] Re: Query output from pyPgSQL via Perspective Broker, how?
Nicola Larosa
nico at tekNico.net
Wed Oct 20 04:37:58 EDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[Sorry for the self-reply, have to clarify a couple of things.]
> I worked around that making the make_PgResultSetClass return an object of
> the PgResultSet class, instead of a new subclass. This seems to work.
That would be "...making the make_PgResultSetClass return an *instance* of
the PgResultSet class, ...".
I don't want to set fetchReturnsList to True, because I need column names in
the query output. I could also add an OrderedDict type, and return an
instance of that from the __fetchOneRow method of the Cursor class, instead
of a PgResultSet. I would still have the problem with the pyPgSQL types,
though.
- --
Nicola Larosa - nico at tekNico.net
With Twisted, you don't need threads. You don't want threads. Threads
are actually harmful: http://www.kuro5hin.org/story/2002/11/18/22112/860
-- Jonathan Lange, August 2004
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBdiPpXv0hgDImBm4RAkoWAKC7qlksE+tX+fdwAZNnRDZqBuuYFgCggkMv
vYMrvNUy3WXF5qtMiHf6l0I=
=7SPp
-----END PGP SIGNATURE-----
More information about the Twisted-Python
mailing list