Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
c639b502
Commit
c639b502
authored
Feb 27, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
These deprecations aren't pending.
parent
40544069
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
trunk/src/ZODB/Connection.py
trunk/src/ZODB/Connection.py
+5
-5
No files found.
trunk/src/ZODB/Connection.py
View file @
c639b502
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
##############################################################################
##############################################################################
"""Database connection support
"""Database connection support
$Id: Connection.py,v 1.1
29 2004/02/27 14:54:27
jeremy Exp $"""
$Id: Connection.py,v 1.1
30 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.1
29 2004/02/27 14:54:27
jeremy Exp $
$Id: Connection.py,v 1.1
30 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."
,
Pending
DeprecationWarning
)
"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."
,
Pending
DeprecationWarning
)
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"
,
Pending
DeprecationWarning
)
DeprecationWarning
)
self
.
getTransaction
().
register
(
obj
)
self
.
getTransaction
().
register
(
obj
)
def
root
(
self
):
def
root
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment