[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/interfaces.py Took
__init__ out of IConnection for 2 reasons
Jim Fulton
jim at zope.com
Thu Jun 16 16:27:33 EDT 2005
Log message for revision 30817:
Took __init__ out of IConnection for 2 reasons
1. Construction of Connections is an implementation detail.
ZODB client code should never construct connections directly.
2. __init__ is not a method of IConnection. It might be a method of
some sort of connection factory api, if we had one.
Changed:
U ZODB/trunk/src/ZODB/interfaces.py
-=-
Modified: ZODB/trunk/src/ZODB/interfaces.py
===================================================================
--- ZODB/trunk/src/ZODB/interfaces.py 2005-06-16 20:21:27 UTC (rev 30816)
+++ ZODB/trunk/src/ZODB/interfaces.py 2005-06-16 20:27:33 UTC (rev 30817)
@@ -112,24 +112,6 @@
getTransferCounts
"""
- def __init__(database, version='', cache_size=400):
- """Create a new Connection.
-
- A Connection instance should by instantiated by the DB
- instance that it is connected to.
-
- Parameters:
- version: the "version" that all changes will be made in, defaults
- to no version.
- cache_size: the target size of the in-memory object cache, measured
- in objects.
- mvcc: boolean indicating whether MVCC is enabled
- transaction_manager: transaction manager to use. None means use the
- default transaction manager.
- synch: boolean indicating whether Connection should register for
- afterCompletion() calls.
- """
-
def add(ob):
"""Add a new object 'obj' to the database and assign it an oid.
More information about the Zodb-checkins
mailing list