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
8126c2e0
Commit
8126c2e0
authored
Jun 23, 2002
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some wrong isinstance() conversations
parent
40e83ab4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
z2.py
z2.py
+3
-3
No files found.
z2.py
View file @
8126c2e0
...
...
@@ -733,7 +733,7 @@ try:
zLOG
.
LOG
(
"z2"
,
zLOG
.
WARNING
,
'Monitor server not started'
' because no emergency user exists.'
)
if
pw
:
if
i
n
instance
(
MONITOR_PORT
,
IntType
):
if
i
s
instance
(
MONITOR_PORT
,
IntType
):
MONITOR_PORT
=
((
IP_ADDRESS
,
MONITOR_PORT
),)
for
address
,
port
in
MONITOR_PORT
:
monitor
=
secure_monitor_server
(
...
...
@@ -792,10 +792,10 @@ try:
try
:
UID
=
string
.
atoi
(
UID
)
except
:
pass
gid
=
None
if
instance
(
UID
,
StringType
):
if
i
si
nstance
(
UID
,
StringType
):
uid
=
pwd
.
getpwnam
(
UID
)[
2
]
gid
=
pwd
.
getpwnam
(
UID
)[
3
]
elif
instance
(
UID
,
IntType
):
elif
i
si
nstance
(
UID
,
IntType
):
uid
=
pwd
.
getpwuid
(
UID
)[
2
]
gid
=
pwd
.
getpwuid
(
UID
)[
3
]
UID
=
pwd
.
getpwuid
(
UID
)[
0
]
...
...
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