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
86f1312b
Commit
86f1312b
authored
Nov 07, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a feature to exit another session.
parent
bf3793d6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
6 deletions
+45
-6
lib/python/OFS/Session.py
lib/python/OFS/Session.py
+11
-2
lib/python/OFS/session.dtml
lib/python/OFS/session.dtml
+4
-0
lib/python/Products/OFSP/Session.py
lib/python/Products/OFSP/Session.py
+11
-2
lib/python/Products/OFSP/Version.py
lib/python/Products/OFSP/Version.py
+11
-2
lib/python/Products/OFSP/session.dtml
lib/python/Products/OFSP/session.dtml
+4
-0
lib/python/Products/OFSP/version.dtml
lib/python/Products/OFSP/version.dtml
+4
-0
No files found.
lib/python/OFS/Session.py
View file @
86f1312b
...
...
@@ -12,7 +12,7 @@ __doc__='''A drop-in object that represents a session.
$Id: Session.py,v 1.
1 1997/11/07 16:13:15
jim Exp $'''
$Id: Session.py,v 1.
2 1997/11/07 17:43:19
jim Exp $'''
import
time
,
SimpleItem
,
AccessControl
.
Role
,
Persistence
,
Acquisition
,
Globals
from
string
import
rfind
...
...
@@ -86,6 +86,12 @@ class Session(Persistence.Persistent,
REQUEST
[
Globals
.
SessionNameName
]
=
''
return
self
.
index_html
(
self
,
REQUEST
)
def
leave_another
(
self
,
REQUEST
,
RESPONSE
):
'Leave a session that may not be the current session'
self
.
leave
(
REQUEST
,
RESPONSE
)
RESPONSE
.
setStatus
(
302
)
RESPONSE
[
'Location'
]
=
REQUEST
[
'URL2'
]
+
'/manage_main'
def
save
(
self
,
remark
,
REQUEST
):
'Make session changes permanent'
Globals
.
SessionBase
[
self
.
cookie
].
commit
(
remark
)
...
...
@@ -98,7 +104,7 @@ class Session(Persistence.Persistent,
def
nonempty
(
self
):
return
Globals
.
SessionBase
[
self
.
cookie
].
nonempty
()
__version__
=
'$Revision: 1.
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
...
...
@@ -106,6 +112,9 @@ __version__='$Revision: 1.1 $'[11:-2]
##############################################################################
#
# $Log: Session.py,v $
# Revision 1.2 1997/11/07 17:43:19 jim
# Added a feature to exit another session.
#
# Revision 1.1 1997/11/07 16:13:15 jim
# *** empty log message ***
#
...
...
lib/python/OFS/session.dtml
View file @
86f1312b
...
...
@@ -13,6 +13,10 @@
Leave
<strong>
<!--#var Principia-Session-->
</strong>
first and then
you may work in this session.
<form
action=
leave_another
>
<input
type=
submit
value=
"Quit Working in <!--#var Principia-Session-->"
>
</form>
<!--#else-->
<h2>
Active
<!--#var title_or_id-->
Session Operations
</h2>
...
...
lib/python/Products/OFSP/Session.py
View file @
86f1312b
...
...
@@ -12,7 +12,7 @@ __doc__='''A drop-in object that represents a session.
$Id: Session.py,v 1.
1 1997/11/07 16:13:15
jim Exp $'''
$Id: Session.py,v 1.
2 1997/11/07 17:43:19
jim Exp $'''
import
time
,
SimpleItem
,
AccessControl
.
Role
,
Persistence
,
Acquisition
,
Globals
from
string
import
rfind
...
...
@@ -86,6 +86,12 @@ class Session(Persistence.Persistent,
REQUEST
[
Globals
.
SessionNameName
]
=
''
return
self
.
index_html
(
self
,
REQUEST
)
def
leave_another
(
self
,
REQUEST
,
RESPONSE
):
'Leave a session that may not be the current session'
self
.
leave
(
REQUEST
,
RESPONSE
)
RESPONSE
.
setStatus
(
302
)
RESPONSE
[
'Location'
]
=
REQUEST
[
'URL2'
]
+
'/manage_main'
def
save
(
self
,
remark
,
REQUEST
):
'Make session changes permanent'
Globals
.
SessionBase
[
self
.
cookie
].
commit
(
remark
)
...
...
@@ -98,7 +104,7 @@ class Session(Persistence.Persistent,
def
nonempty
(
self
):
return
Globals
.
SessionBase
[
self
.
cookie
].
nonempty
()
__version__
=
'$Revision: 1.
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
...
...
@@ -106,6 +112,9 @@ __version__='$Revision: 1.1 $'[11:-2]
##############################################################################
#
# $Log: Session.py,v $
# Revision 1.2 1997/11/07 17:43:19 jim
# Added a feature to exit another session.
#
# Revision 1.1 1997/11/07 16:13:15 jim
# *** empty log message ***
#
...
...
lib/python/Products/OFSP/Version.py
View file @
86f1312b
...
...
@@ -12,7 +12,7 @@ __doc__='''A drop-in object that represents a session.
$Id: Version.py,v 1.
1 1997/11/07 16:13:15
jim Exp $'''
$Id: Version.py,v 1.
2 1997/11/07 17:43:19
jim Exp $'''
import
time
,
SimpleItem
,
AccessControl
.
Role
,
Persistence
,
Acquisition
,
Globals
from
string
import
rfind
...
...
@@ -86,6 +86,12 @@ class Session(Persistence.Persistent,
REQUEST
[
Globals
.
SessionNameName
]
=
''
return
self
.
index_html
(
self
,
REQUEST
)
def
leave_another
(
self
,
REQUEST
,
RESPONSE
):
'Leave a session that may not be the current session'
self
.
leave
(
REQUEST
,
RESPONSE
)
RESPONSE
.
setStatus
(
302
)
RESPONSE
[
'Location'
]
=
REQUEST
[
'URL2'
]
+
'/manage_main'
def
save
(
self
,
remark
,
REQUEST
):
'Make session changes permanent'
Globals
.
SessionBase
[
self
.
cookie
].
commit
(
remark
)
...
...
@@ -98,7 +104,7 @@ class Session(Persistence.Persistent,
def
nonempty
(
self
):
return
Globals
.
SessionBase
[
self
.
cookie
].
nonempty
()
__version__
=
'$Revision: 1.
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
...
...
@@ -106,6 +112,9 @@ __version__='$Revision: 1.1 $'[11:-2]
##############################################################################
#
# $Log: Version.py,v $
# Revision 1.2 1997/11/07 17:43:19 jim
# Added a feature to exit another session.
#
# Revision 1.1 1997/11/07 16:13:15 jim
# *** empty log message ***
#
...
...
lib/python/Products/OFSP/session.dtml
View file @
86f1312b
...
...
@@ -13,6 +13,10 @@
Leave
<strong>
<!--#var Principia-Session-->
</strong>
first and then
you may work in this session.
<form
action=
leave_another
>
<input
type=
submit
value=
"Quit Working in <!--#var Principia-Session-->"
>
</form>
<!--#else-->
<h2>
Active
<!--#var title_or_id-->
Session Operations
</h2>
...
...
lib/python/Products/OFSP/version.dtml
View file @
86f1312b
...
...
@@ -13,6 +13,10 @@
Leave
<strong>
<!--#var Principia-Session-->
</strong>
first and then
you may work in this session.
<form
action=
leave_another
>
<input
type=
submit
value=
"Quit Working in <!--#var Principia-Session-->"
>
</form>
<!--#else-->
<h2>
Active
<!--#var title_or_id-->
Session Operations
</h2>
...
...
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