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
cb0e2d15
Commit
cb0e2d15
authored
May 23, 2004
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hasattr->getattr changes in order to reduce conflict potential.
parent
1eeff781
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/python/Products/Transience/TransientObject.py
lib/python/Products/Transience/TransientObject.py
+5
-2
No files found.
lib/python/Products/Transience/TransientObject.py
View file @
cb0e2d15
...
...
@@ -87,7 +87,8 @@ class TransientObject(Persistent, Implicit):
#
def
invalidate
(
self
):
if
hasattr
(
self
,
'_invalid'
):
# hasattr hides conflicts
if
getattr
(
self
,
'_invalid'
,
_notfound
)
is
not
_notfound
:
# we dont want to invalidate twice
return
trans_ob_container
=
None
...
...
@@ -103,7 +104,9 @@ class TransientObject(Persistent, Implicit):
self
.
_invalid
=
None
def
isValid
(
self
):
return
not
hasattr
(
self
,
'_invalid'
)
# hasattr hides conflicts
if
getattr
(
self
,
'_invalid'
,
_notfound
)
is
_notfound
:
return
1
def
getLastAccessed
(
self
):
return
self
.
_last_accessed
...
...
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