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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
fcfee0d3
Commit
fcfee0d3
authored
Apr 30, 2009
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed DB.open to connection
parent
a7017469
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
+4
-7
src/ZEO/__init__.py
src/ZEO/__init__.py
+1
-4
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+1
-1
src/ZODB/__init__.py
src/ZODB/__init__.py
+1
-1
src/ZODB/tests/testDB.py
src/ZODB/tests/testDB.py
+1
-1
No files found.
src/ZEO/__init__.py
View file @
fcfee0d3
...
@@ -25,15 +25,12 @@ def DB(*args, **kw):
...
@@ -25,15 +25,12 @@ def DB(*args, **kw):
import
ZEO.ClientStorage
,
ZODB
import
ZEO.ClientStorage
,
ZODB
return
ZODB
.
DB
(
ZEO
.
ClientStorage
.
ClientStorage
(
*
args
,
**
kw
))
return
ZODB
.
DB
(
ZEO
.
ClientStorage
.
ClientStorage
(
*
args
,
**
kw
))
def
ope
n
(
*
args
,
**
kw
):
def
connectio
n
(
*
args
,
**
kw
):
db
=
DB
(
*
args
,
**
kw
)
db
=
DB
(
*
args
,
**
kw
)
conn
=
db
.
open
()
conn
=
db
.
open
()
conn
.
onCloseCallback
(
db
.
close
)
conn
.
onCloseCallback
(
db
.
close
)
return
conn
return
conn
DB
.
open
=
open
del
open
def
server
(
path
=
None
,
blob_dir
=
None
,
storage_conf
=
None
,
zeo_conf
=
None
,
def
server
(
path
=
None
,
blob_dir
=
None
,
storage_conf
=
None
,
zeo_conf
=
None
,
port
=
None
):
port
=
None
):
"""Convenience function to start a server for interactive exploration
"""Convenience function to start a server for interactive exploration
...
...
src/ZEO/tests/testZEO.py
View file @
fcfee0d3
...
@@ -1156,7 +1156,7 @@ def open_convenience():
...
@@ -1156,7 +1156,7 @@ def open_convenience():
"""Often, we just want to open a single connection.
"""Often, we just want to open a single connection.
>>> addr, _ = start_server(path='data.fs')
>>> addr, _ = start_server(path='data.fs')
>>> conn = ZEO.
DB.ope
n(addr)
>>> conn = ZEO.
connectio
n(addr)
>>> conn.root()
>>> conn.root()
{}
{}
...
...
src/ZODB/__init__.py
View file @
fcfee0d3
...
@@ -25,4 +25,4 @@ sys.modules['ZODB.PersistentList'] = sys.modules['persistent.list']
...
@@ -25,4 +25,4 @@ sys.modules['ZODB.PersistentList'] = sys.modules['persistent.list']
del
mapping
,
list
,
sys
del
mapping
,
list
,
sys
from
DB
import
DB
from
DB
import
DB
,
connection
src/ZODB/tests/testDB.py
View file @
fcfee0d3
...
@@ -164,7 +164,7 @@ def passing_a_file_name_to_DB():
...
@@ -164,7 +164,7 @@ def passing_a_file_name_to_DB():
def
open_convenience
():
def
open_convenience
():
"""Often, we just want to open a single connection.
"""Often, we just want to open a single connection.
>>> conn = ZODB.
DB.ope
n('data.fs')
>>> conn = ZODB.
connectio
n('data.fs')
>>> conn.root()
>>> conn.root()
{}
{}
...
...
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