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
30d4be5d
Commit
30d4be5d
authored
Nov 22, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow multiple -f options.
parent
66083c1d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/ZEO/runsvr.py
src/ZEO/runsvr.py
+7
-1
No files found.
src/ZEO/runsvr.py
View file @
30d4be5d
...
...
@@ -183,7 +183,10 @@ class ZEOOptions(Options):
self
.
address
=
(
host
,
port
)
elif
opt
in
(
"-f"
,
"--filename"
):
from
ZODB.FileStorage
import
FileStorage
self
.
storages
=
{
"1"
:
(
FileStorage
,
{
"file_name"
:
arg
})}
if
not
self
.
storages
:
self
.
storages
=
{}
key
=
str
(
1
+
len
(
self
.
storages
))
self
.
storages
[
key
]
=
(
FileStorage
,
{
"file_name"
:
arg
})
else
:
# Pass it to the base class, for --help/-h
Options
.
handle_option
(
self
,
opt
,
arg
)
...
...
@@ -273,6 +276,9 @@ class ZEOOptions(Options):
name
=
section
.
name
if
not
name
:
name
=
str
(
1
+
len
(
self
.
storages
))
if
self
.
storages
.
has_key
(
name
):
# (Actually, the parser doesn't allow this)
self
.
usage
(
"duplicate storage name %r"
%
name
)
self
.
storages
[
name
]
=
ZConfig
.
Storage
.
getStorageInfo
(
section
)
...
...
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