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
06935d57
Commit
06935d57
authored
Sep 23, 2016
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix print functions in mkwsgiinstance script.
parent
e314d6c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
src/Zope2/utilities/copyzopeskel.py
src/Zope2/utilities/copyzopeskel.py
+1
-1
src/Zope2/utilities/mkwsgiinstance.py
src/Zope2/utilities/mkwsgiinstance.py
+2
-4
No files found.
src/Zope2/utilities/copyzopeskel.py
View file @
06935d57
...
@@ -185,7 +185,7 @@ def copyskel(sourcedir, targetdir, uid, gid, **replacements):
...
@@ -185,7 +185,7 @@ def copyskel(sourcedir, targetdir, uid, gid, **replacements):
finally
:
finally
:
os
.
chdir
(
pwd
)
os
.
chdir
(
pwd
)
except
(
IOError
,
OSError
)
as
msg
:
except
(
IOError
,
OSError
)
as
msg
:
print
(
msg
,
file
=
sys
.
stderr
)
sys
.
stderr
.
write
(
msg
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
...
...
src/Zope2/utilities/mkwsgiinstance.py
View file @
06935d57
...
@@ -155,8 +155,7 @@ def usage(stream, msg=None):
...
@@ -155,8 +155,7 @@ def usage(stream, msg=None):
def
get_skeltarget
():
def
get_skeltarget
():
print
(
'Please choose a directory in which you
\
'
d like to install'
)
print
(
'Please choose a directory in which you
\
'
d like to install'
)
print
(
'Zope "instance home" files such as database files, configuration'
)
print
(
'Zope "instance home" files such as database files, configuration'
)
print
(
'files, etc.'
)
print
(
'files, etc.
\
n
'
)
print
()
while
1
:
while
1
:
skeltarget
=
raw_input
(
"Directory: "
).
strip
()
skeltarget
=
raw_input
(
"Directory: "
).
strip
()
if
skeltarget
==
''
:
if
skeltarget
==
''
:
...
@@ -171,8 +170,7 @@ def get_inituser():
...
@@ -171,8 +170,7 @@ def get_inituser():
import
getpass
import
getpass
print
(
'Please choose a username and password for the initial user.'
)
print
(
'Please choose a username and password for the initial user.'
)
print
(
'These will be the credentials you use to initially manage'
)
print
(
'These will be the credentials you use to initially manage'
)
print
(
'your new Zope instance.'
)
print
(
'your new Zope instance.
\
n
'
)
print
()
user
=
raw_input
(
"Username: "
).
strip
()
user
=
raw_input
(
"Username: "
).
strip
()
if
user
==
''
:
if
user
==
''
:
return
None
,
None
return
None
,
None
...
...
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