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
79d2908c
Commit
79d2908c
authored
Nov 11, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed title_and_id method to include a flag to indicate whether a
session has unsaved changes.
parent
ddf351ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
6 deletions
+33
-6
lib/python/OFS/Session.py
lib/python/OFS/Session.py
+11
-2
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
No files found.
lib/python/OFS/Session.py
View file @
79d2908c
...
...
@@ -12,7 +12,7 @@ __doc__='''A drop-in object that represents a session.
$Id: Session.py,v 1.
3 1997/11/07 18:51:13
jim Exp $'''
$Id: Session.py,v 1.
4 1997/11/11 19:25:48
jim Exp $'''
import
time
,
SimpleItem
,
AccessControl
.
Role
,
Persistence
,
Acquisition
,
Globals
from
string
import
rfind
...
...
@@ -59,6 +59,11 @@ class Session(Persistence.Persistent,
manage
=
Globals
.
HTMLFile
(
'OFS/sessionEdit'
)
index_html
=
Globals
.
HTMLFile
(
'OFS/session'
)
def
title_and_id
(
self
):
r
=
Session
.
inheritedAttribute
(
'title_and_id'
)(
self
)
if
Globals
.
SessionBase
[
self
.
cookie
].
nonempty
():
return
'%s *'
%
r
return
r
def
manage_edit
(
self
,
title
,
acl_type
=
'A'
,
acl_roles
=
[],
REQUEST
=
None
):
'Modify a session'
self
.
_setRoles
(
acl_type
,
acl_roles
)
...
...
@@ -104,7 +109,7 @@ class Session(Persistence.Persistent,
def
nonempty
(
self
):
return
Globals
.
SessionBase
[
self
.
cookie
].
nonempty
()
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
...
...
@@ -112,6 +117,10 @@ __version__='$Revision: 1.3 $'[11:-2]
##############################################################################
#
# $Log: Session.py,v $
# Revision 1.4 1997/11/11 19:25:48 jim
# Changed title_and_id method to include a flag to indicate whether a
# session has unsaved changes.
#
# Revision 1.3 1997/11/07 18:51:13 jim
# Made an implicit acquirer.
#
...
...
lib/python/Products/OFSP/Session.py
View file @
79d2908c
...
...
@@ -12,7 +12,7 @@ __doc__='''A drop-in object that represents a session.
$Id: Session.py,v 1.
3 1997/11/07 18:51:13
jim Exp $'''
$Id: Session.py,v 1.
4 1997/11/11 19:25:48
jim Exp $'''
import
time
,
SimpleItem
,
AccessControl
.
Role
,
Persistence
,
Acquisition
,
Globals
from
string
import
rfind
...
...
@@ -59,6 +59,11 @@ class Session(Persistence.Persistent,
manage
=
Globals
.
HTMLFile
(
'OFS/sessionEdit'
)
index_html
=
Globals
.
HTMLFile
(
'OFS/session'
)
def
title_and_id
(
self
):
r
=
Session
.
inheritedAttribute
(
'title_and_id'
)(
self
)
if
Globals
.
SessionBase
[
self
.
cookie
].
nonempty
():
return
'%s *'
%
r
return
r
def
manage_edit
(
self
,
title
,
acl_type
=
'A'
,
acl_roles
=
[],
REQUEST
=
None
):
'Modify a session'
self
.
_setRoles
(
acl_type
,
acl_roles
)
...
...
@@ -104,7 +109,7 @@ class Session(Persistence.Persistent,
def
nonempty
(
self
):
return
Globals
.
SessionBase
[
self
.
cookie
].
nonempty
()
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
...
...
@@ -112,6 +117,10 @@ __version__='$Revision: 1.3 $'[11:-2]
##############################################################################
#
# $Log: Session.py,v $
# Revision 1.4 1997/11/11 19:25:48 jim
# Changed title_and_id method to include a flag to indicate whether a
# session has unsaved changes.
#
# Revision 1.3 1997/11/07 18:51:13 jim
# Made an implicit acquirer.
#
...
...
lib/python/Products/OFSP/Version.py
View file @
79d2908c
...
...
@@ -12,7 +12,7 @@ __doc__='''A drop-in object that represents a session.
$Id: Version.py,v 1.
3 1997/11/07 18:51:13
jim Exp $'''
$Id: Version.py,v 1.
4 1997/11/11 19:25:48
jim Exp $'''
import
time
,
SimpleItem
,
AccessControl
.
Role
,
Persistence
,
Acquisition
,
Globals
from
string
import
rfind
...
...
@@ -59,6 +59,11 @@ class Session(Persistence.Persistent,
manage
=
Globals
.
HTMLFile
(
'OFS/sessionEdit'
)
index_html
=
Globals
.
HTMLFile
(
'OFS/session'
)
def
title_and_id
(
self
):
r
=
Session
.
inheritedAttribute
(
'title_and_id'
)(
self
)
if
Globals
.
SessionBase
[
self
.
cookie
].
nonempty
():
return
'%s *'
%
r
return
r
def
manage_edit
(
self
,
title
,
acl_type
=
'A'
,
acl_roles
=
[],
REQUEST
=
None
):
'Modify a session'
self
.
_setRoles
(
acl_type
,
acl_roles
)
...
...
@@ -104,7 +109,7 @@ class Session(Persistence.Persistent,
def
nonempty
(
self
):
return
Globals
.
SessionBase
[
self
.
cookie
].
nonempty
()
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
...
...
@@ -112,6 +117,10 @@ __version__='$Revision: 1.3 $'[11:-2]
##############################################################################
#
# $Log: Version.py,v $
# Revision 1.4 1997/11/11 19:25:48 jim
# Changed title_and_id method to include a flag to indicate whether a
# session has unsaved changes.
#
# Revision 1.3 1997/11/07 18:51:13 jim
# Made an implicit acquirer.
#
...
...
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