Commit 825677c3 authored by Jeremy Hylton's avatar Jeremy Hylton

Add two notes about common use.

parent c697fe70
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
############################################################################## ##############################################################################
"""Database connection support """Database connection support
$Id: Connection.py,v 1.125 2004/02/26 22:55:51 jeremy Exp $""" $Id: Connection.py,v 1.126 2004/02/26 22:57:09 jeremy Exp $"""
import logging import logging
import sys import sys
...@@ -77,6 +77,9 @@ class Connection(ExportImport, object): ...@@ -77,6 +77,9 @@ class Connection(ExportImport, object):
You should not instantiate this class directly; instead call the You should not instantiate this class directly; instead call the
open() method of a DB instance. open() method of a DB instance.
In many applications, root() is the only method of the Connection
that you will need to use.
Synchronization Synchronization
A Connection instance is not thread-safe. It is designed to A Connection instance is not thread-safe. It is designed to
...@@ -112,7 +115,7 @@ class Connection(ExportImport, object): ...@@ -112,7 +115,7 @@ class Connection(ExportImport, object):
@group Other Methods: oldstate, exchange, getDebugInfo, setDebugInfo, @group Other Methods: oldstate, exchange, getDebugInfo, setDebugInfo,
getTransferCounts getTransferCounts
$Id: Connection.py,v 1.125 2004/02/26 22:55:51 jeremy Exp $ $Id: Connection.py,v 1.126 2004/02/26 22:57:09 jeremy Exp $
""" """
_tmp = None _tmp = None
...@@ -222,6 +225,9 @@ class Connection(ExportImport, object): ...@@ -222,6 +225,9 @@ class Connection(ExportImport, object):
already in the cache, a reference to the cached object will be already in the cache, a reference to the cached object will be
returned. returned.
Applications seldom need to call this method, because objects
are loaded transparently during attribute lookup.
@return: persistent object @return: persistent object
@rtype: L{IPersistent} @rtype: L{IPersistent}
@raise KeyError: If C{oid} does not exist. @raise KeyError: If C{oid} does not exist.
......
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