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
6175da90
Commit
6175da90
authored
Apr 09, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added extra logic to verify session locks, which can become
stale after a session undo.
parent
a087a050
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+8
-3
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+8
-3
No files found.
lib/python/OFS/ObjectManager.py
View file @
6175da90
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.3
8 1998/03/18 20:48:10 jeffrey
Exp $"""
$Id: ObjectManager.py,v 1.3
9 1998/04/09 17:18:41 jim
Exp $"""
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
9
$'
[
11
:
-
2
]
import
Persistence
,
App
.
Management
,
Acquisition
,
App
.
Undo
,
Globals
from
Globals
import
HTMLFile
,
HTMLFile
...
...
@@ -523,7 +523,8 @@ class ObjectManager(
def
locked_in_session
(
self
):
oid
=
self
.
_p_oid
return
oid
and
Globals
.
SessionBase
.
locks
.
has_key
(
oid
)
return
(
oid
and
Globals
.
SessionBase
.
locks
.
has_key
(
oid
)
and
Globals
.
SessionBase
.
verify_lock
(
oid
))
def
modified_in_session
(
self
):
jar
=
self
.
_p_jar
...
...
@@ -542,6 +543,10 @@ class ObjectManager(
##############################################################################
#
# $Log: ObjectManager.py,v $
# Revision 1.39 1998/04/09 17:18:41 jim
# Added extra logic to verify session locks, which can become
# stale after a session undo.
#
# Revision 1.38 1998/03/18 20:48:10 jeffrey
# Added some new property management options and Encyclopedia-esque doc
# strings
...
...
lib/python/OFS/SimpleItem.py
View file @
6175da90
...
...
@@ -16,8 +16,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
item types.
$Id: SimpleItem.py,v 1.1
7 1998/03/18 17:55:36 brian
Exp $'''
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
$Id: SimpleItem.py,v 1.1
8 1998/04/09 17:18:28 jim
Exp $'''
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
import
Globals
,
App
.
Management
from
DateTime
import
DateTime
...
...
@@ -89,7 +89,8 @@ class Item(CopySource, App.Management.Tabs):
def
locked_in_session
(
self
):
oid
=
self
.
_p_oid
return
oid
and
Globals
.
SessionBase
.
locks
.
has_key
(
oid
)
return
(
oid
and
Globals
.
SessionBase
.
locks
.
has_key
(
oid
)
and
Globals
.
SessionBase
.
verify_lock
(
oid
))
def
modified_in_session
(
self
):
jar
=
self
.
_p_jar
...
...
@@ -130,6 +131,10 @@ class Item_w__name__(Item):
##############################################################################
#
# $Log: SimpleItem.py,v $
# Revision 1.18 1998/04/09 17:18:28 jim
# Added extra logic to verify session locks, which can become
# stale after a session undo.
#
# Revision 1.17 1998/03/18 17:55:36 brian
# Added uniqueId and aqObjectBind
#
...
...
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