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
Joshua
zodb
Commits
6403e83e
Commit
6403e83e
authored
Jul 09, 2009
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug: zeopack was less flexible than it was before. -h should
default to local host.
parent
a9fdab74
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
src/CHANGES.txt
src/CHANGES.txt
+4
-1
src/ZEO/scripts/zeopack.py
src/ZEO/scripts/zeopack.py
+1
-2
src/ZEO/scripts/zeopack.test
src/ZEO/scripts/zeopack.test
+10
-0
No files found.
src/CHANGES.txt
View file @
6403e83e
...
...
@@ -2,7 +2,7 @@
Change History
================
3.9.0b
2
(2009-07-??)
3.9.0b
3
(2009-07-??)
====================
Bugs Fixed
...
...
@@ -14,6 +14,9 @@ Bugs Fixed
- ZEO protocol 2 support was broken. This caused very old clients to
be unable to use new servers.
- zeopack was less flexible than it was before. -h should default to
local host.
3.9.0b2 (2009-06-11)
====================
...
...
src/ZEO/scripts/zeopack.py
View file @
6403e83e
...
...
@@ -104,8 +104,7 @@ def _main(args=None, prog=None):
"specified as well."
)
servers
.
append
(((
options
.
host
,
options
.
port
),
options
.
name
))
elif
options
.
port
:
error
(
"If port (-p) is specified then a host (-h) must be "
"specified as well."
)
servers
.
append
(((
socket
.
gethostname
(),
options
.
port
),
options
.
name
))
if
options
.
unix
:
servers
.
append
((
options
.
unix
,
options
.
name
))
...
...
src/ZEO/scripts/zeopack.test
View file @
6403e83e
...
...
@@ -214,6 +214,16 @@ Legacy support
pack
(
384917.0
,
wait
=
True
)
close
()
>>>
import
socket
>>>
old_gethostname
=
socket
.
gethostname
>>>
socket
.
gethostname
=
lambda
:
'test.host.com'
>>>
main
([
"-d3"
,
"-p"
,
"8100"
])
ClientStorage
((
'test.host.com'
,
8100
),
read_only
=
1
,
storage
=
'1'
,
wait
=
False
)
is_connected
True
pack
(
384917.0
,
wait
=
True
)
close
()
>>>
socket
.
gethostname
=
old_gethostname
>>>
main
([
"-d3"
,
"-U"
,
"foo/bar"
,
"-S"
,
"2"
])
ClientStorage
(
'foo/bar'
,
read_only
=
1
,
storage
=
'2'
,
wait
=
False
)
is_connected
True
...
...
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