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
ddf351ad
Commit
ddf351ad
authored
Nov 11, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in modified_in_session.
parent
0cbfd2f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+9
-3
No files found.
lib/python/OFS/ObjectManager.py
View file @
ddf351ad
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.1
7 1997/11/10 14:54:42
jim Exp $"""
$Id: ObjectManager.py,v 1.1
8 1997/11/11 18:52:53
jim Exp $"""
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
from
SingleThreadedTransaction
import
Persistent
...
...
@@ -406,7 +406,10 @@ class ObjectManager(Acquirer,Management,Persistent):
def
modified_in_session
(
self
):
jar
=
self
.
_p_jar
if
jar
is
None
:
return
1
if
jar
is
None
:
if
hasattr
(
self
,
'aq_parent'
)
and
hasattr
(
self
.
aq_parent
,
'_p_jar'
):
jar
=
self
.
aq_parent
.
_p_jar
if
jar
is
None
:
return
0
if
not
jar
.
name
:
return
0
try
:
jar
.
db
[
self
.
_p_oid
]
except
:
return
0
...
...
@@ -418,6 +421,9 @@ class ObjectManager(Acquirer,Management,Persistent):
##############################################################################
#
# $Log: ObjectManager.py,v $
# Revision 1.18 1997/11/11 18:52:53 jim
# Fixed bug in modified_in_session.
#
# Revision 1.17 1997/11/10 14:54:42 jim
# Added two new methods, bobobase_modification_time, and
# modified_in_session, to support flagging new and session objects.
...
...
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