[prev in list] [next in list] [prev in thread] [next in thread]
List: zope-db
Subject: [Zope-DB] dco.connect ServerContext's
From: Chris Withers <chris () simplistix ! co ! uk>
Date: 2004-03-24 15:07:16
Message-ID: 4061A424.9000908 () simplistix ! co ! uk
[Download RAW message or body]
Hi Matt,
Looking at dco2.c on my branch, I see that the ServerContext returned by:
dco2.connect(u, p, dbname)
...has a close method.
A ServerContext instance is, I presume, then stored in the _db attribute of the
DCOracle2.connection instance returned by the DCOracle2.connect function that
ZOracleDA uses to get its connections?
Right, that leaves me a little baffled as to why the people trying my ZOracleDA
branch are getting:
File /usr/local/Zope-2.6.1-src/lib/python/Products/ZOracleDA/DABase.py, line
140, in manage_close_connection
(Object: db)
File /usr/local/Zope-2.6.1-src/lib/python/Products/ZOracleDA/connections.py,
line 124, in close
File DCOracle2/DCOracle2.py, line 295, in close
...how can a DCOracle2.connection class end up with a _db attribute that doesn't
have a close method?
cheers,
Chris
PS: The handling of the _cursor attribute, and that whole mess with the
__getattr__ seem pretty nasty. Are they still necessary?
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
_______________________________________________
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic