Commit 7ce4935d authored by Jim Fulton's avatar Jim Fulton

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.
parent 318f92e8
......@@ -112,24 +112,6 @@ class IConnection(Interface):
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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment