Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Kirill Smelkov
Zope
Commits
54a6a872
Commit
54a6a872
authored
Apr 09, 2009
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted r99039 and r99044. This is not what I came here for.
parent
93dc8b51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
src/Zope2/utilities/mkzopeinstance.py
src/Zope2/utilities/mkzopeinstance.py
+12
-4
No files found.
src/Zope2/utilities/mkzopeinstance.py
View file @
54a6a872
...
...
@@ -56,23 +56,31 @@ def main():
for
opt
,
arg
in
opts
:
if
opt
in
(
"-d"
,
"--dir"
):
skeltarget
=
os
.
path
.
abspath
(
os
.
path
.
expanduser
(
arg
))
if
not
skeltarget
:
usage
(
sys
.
stderr
,
"dir must not be empty"
)
sys
.
exit
(
2
)
if
opt
in
(
"-s"
,
"--skelsrc"
):
skelsrc
=
os
.
path
.
abspath
(
os
.
path
.
expanduser
(
arg
))
if
not
skelsrc
:
usage
(
sys
.
stderr
,
"skelsrc must not be empty"
)
sys
.
exit
(
2
)
if
opt
in
(
"-p"
,
"--python"
):
python
=
os
.
path
.
abspath
(
os
.
path
.
expanduser
(
arg
))
if
not
os
.
path
.
exists
(
python
)
and
os
.
path
.
isfile
(
python
):
usage
(
sys
.
stderr
,
"The Python interpreter does not exist."
)
sys
.
exit
(
2
)
if
opt
in
(
"-h"
,
"--help"
):
usage
(
sys
.
stdout
)
sys
.
exit
()
if
opt
in
(
"-u"
,
"--user"
):
if
not
arg
:
usage
(
sys
.
stderr
,
"user must not be empty"
)
sys
.
exit
(
2
)
if
not
":"
in
arg
:
usage
(
sys
.
stderr
,
"user must be specified as name:password"
)
sys
.
exit
(
2
)
user
,
password
=
arg
.
split
(
":"
,
1
)
if
python
is
not
None
and
not
os
.
path
.
isfile
(
python
):
usage
(
sys
.
stderr
,
"The Python interpreter does not exist."
)
sys
.
exit
(
2
)
if
not
skeltarget
:
# interactively ask for skeltarget and initial user name/passwd.
# cant set custom instancehome in interactive mode, we default
...
...
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