[Zope-CVS] CVS: Products/Ape/lib/apelib/zope2/setup - dbtab.py:1.2
Shane Hathaway
shane@zope.com
Tue, 29 Apr 2003 18:11:53 -0400
Update of /cvs-repository/Products/Ape/lib/apelib/zope2/setup
In directory cvs.zope.org:/tmp/cvs-serv9561/zope2/setup
Modified Files:
dbtab.py
Log Message:
- Added IGatewayEvent, the base interface for ILoadEvent and
IStoreEvent.
- Filesystem gateways no longer refer directly to a connection. They
get the connection from the event. This is to permit replacing the
connection with a zip/tar file reader/writer or some other interesting
thing.
- Added checkConnection() to gateways for checking the connection
configuration early.
- Added ConfigurationError and changed some places that were raising
RuntimeError to raise ConfigurationError instead.
- Changed some calls to getKeyChain()[-1] to simply getKey()
- Updated module import style in some places
- Various other style improvements
=== Products/Ape/lib/apelib/zope2/setup/dbtab.py 1.1 => 1.2 ===
--- Products/Ape/lib/apelib/zope2/setup/dbtab.py:1.1 Wed Apr 9 23:09:59 2003
+++ Products/Ape/lib/apelib/zope2/setup/dbtab.py Tue Apr 29 18:11:52 2003
@@ -20,11 +20,11 @@
from apelib.zodb3.db import callMapperFactory
from apelib.zodb3.resource import StaticResource
if factory is None:
- raise RuntimeError('factory is required')
- mapper, conns = callMapperFactory(factory, kw)
+ raise ValueError('factory is required')
+ mapper, connections = callMapperFactory(factory, kw)
return {
'mapper_resource': StaticResource(mapper),
- 'tpc_conns': conns,
+ 'connections': connections,
'name': name,
}