Commit 6148de86 authored by Jeremy Hylton's avatar Jeremy Hylton

These deprecations aren't pending.

parent 8dd6060a
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
############################################################################## ##############################################################################
"""Database connection support """Database connection support
$Id: Connection.py,v 1.129 2004/02/27 14:54:27 jeremy Exp $""" $Id: Connection.py,v 1.130 2004/02/27 16:12:35 jeremy Exp $"""
import logging import logging
import sys import sys
...@@ -102,7 +102,7 @@ class Connection(ExportImport, object): ...@@ -102,7 +102,7 @@ class Connection(ExportImport, object):
XXX Mention the database pool. XXX Mention the database pool.
$Id: Connection.py,v 1.129 2004/02/27 14:54:27 jeremy Exp $ $Id: Connection.py,v 1.130 2004/02/27 16:12:35 jeremy Exp $
@group User Methods: root, get, add, close, db, sync, isReadOnly, @group User Methods: root, get, add, close, db, sync, isReadOnly,
cacheFullSweep, cacheMinimize, getVersion, modifiedInVersion cacheFullSweep, cacheMinimize, getVersion, modifiedInVersion
...@@ -376,14 +376,14 @@ class Connection(ExportImport, object): ...@@ -376,14 +376,14 @@ class Connection(ExportImport, object):
def cacheFullSweep(self, dt=0): def cacheFullSweep(self, dt=0):
# XXX needs doc string # XXX needs doc string
warnings.warn("cacheFullSweep is deprecated. " warnings.warn("cacheFullSweep is deprecated. "
"Use cacheMinimize instead.", PendingDeprecationWarning) "Use cacheMinimize instead.", DeprecationWarning)
self._cache.full_sweep(dt) self._cache.full_sweep(dt)
def cacheMinimize(self, dt=None): def cacheMinimize(self, dt=None):
# XXX needs doc string # XXX needs doc string
if dt is not None: if dt is not None:
warnings.warn("The dt argument to cacheMinimize is ignored.", warnings.warn("The dt argument to cacheMinimize is ignored.",
PendingDeprecationWarning) DeprecationWarning)
self._cache.minimize() self._cache.minimize()
__onCloseCallbacks = None __onCloseCallbacks = None
...@@ -644,7 +644,7 @@ class Connection(ExportImport, object): ...@@ -644,7 +644,7 @@ class Connection(ExportImport, object):
# achieve that without assignment to _p_jar. If there is # achieve that without assignment to _p_jar. If there is
# a way, this will be a very confusing warning. # a way, this will be a very confusing warning.
warnings.warn("Assigning to _p_jar is deprecated", warnings.warn("Assigning to _p_jar is deprecated",
PendingDeprecationWarning) DeprecationWarning)
self.getTransaction().register(obj) self.getTransaction().register(obj)
def root(self): def root(self):
......
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