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
473dbb7b
Commit
473dbb7b
authored
Jan 15, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added minimal implementation of manage_zmi_logout
parent
80c84515
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
lib/python/App/Management.py
lib/python/App/Management.py
+19
-8
No files found.
lib/python/App/Management.py
View file @
473dbb7b
...
...
@@ -85,9 +85,9 @@
"""Standard management interface support
$Id: Management.py,v 1.4
3 2001/01/15 16:16:57 shane
Exp $"""
$Id: Management.py,v 1.4
4 2001/01/15 21:12:41 brian
Exp $"""
__version__
=
'$Revision: 1.4
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
4
$'
[
11
:
-
2
]
import
sys
,
Globals
,
ExtensionClass
,
urllib
from
Dialogs
import
MessageDialog
...
...
@@ -222,21 +222,32 @@ class Navigation(ExtensionClass.Base):
varnames
=
(
'form_title'
,
'help_product'
,
'help_topic'
)
)
manage_form_title
.
__roles__
=
None
zope_quick_start
=
DTMLFile
(
'dtml/zope_quick_start'
,
globals
())
zope_quick_start__roles__
=
None
manage_copyright
=
DTMLFile
(
'dtml/copyright'
,
globals
())
manage_copyright
.
__roles__
=
None
manage_logout__roles__
=
None
def
manage_
logout
(
self
,
REQUEST
=
None
):
manage_
zmi_
logout__roles__
=
None
def
manage_
zmi_logout
(
self
,
REQUEST
,
RESPONSE
):
"""Logout current user"""
p
=
getattr
(
REQUEST
,
'_logout_path'
,
None
)
if
p
is
not
None
:
return
apply
(
self
.
restrictedTraverse
(
p
))
return
"""<html>
<head><title>Not implmented</title></head>
realm
=
RESPONSE
.
realm
RESPONSE
.
setStatus
(
401
)
RESPONSE
.
setHeader
(
'WWW-Authenticate'
,
'basic realm="%s"'
%
realm
,
1
)
RESPONSE
.
setBody
(
"""<html>
<head><title>Logout</title></head>
<body>
Sorry, this is not yet implemented.
<p>
You have been logged out.
</p>
</body>
</html>"""
</html>"""
)
return
manage_zmi_prefs
=
HTMLFile
(
'dtml/manage_zmi_prefs'
,
globals
())
manage_zmi_prefs
.
__roles__
=
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