Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
c8901d98
Commit
c8901d98
authored
Apr 30, 2009
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed DB.open to connection
parent
34bd0b84
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 @
c8901d98
...
@@ -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 @
c8901d98
...
@@ -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 @
c8901d98
...
@@ -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 @
c8901d98
...
@@ -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