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
c2d20afe
Commit
c2d20afe
authored
Apr 16, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug that broke the aq hierarchy for objects retrieved with objectValues.
parent
fc14d238
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+10
-6
No files found.
lib/python/OFS/ObjectManager.py
View file @
c2d20afe
...
...
@@ -84,9 +84,9 @@
##############################################################################
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.6
5 1999/04/12 23:56:27 amos
Exp $"""
$Id: ObjectManager.py,v 1.6
6 1999/04/16 13:54:23 brian
Exp $"""
__version__
=
'$Revision: 1.6
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.6
6
$'
[
11
:
-
2
]
import
App.Management
,
Acquisition
,
App
.
Undo
,
Globals
,
CopySupport
import
os
,
App
.
FactoryDispatcher
,
ts_regex
,
Products
...
...
@@ -187,10 +187,14 @@ class ObjectManager(
def
_setOb
(
self
,
id
,
object
):
setattr
(
self
,
id
,
object
)
def
_delOb
(
self
,
id
):
delattr
(
self
,
id
)
def
_getOb
(
self
,
id
,
default
=
_marker
):
if
hasattr
(
self
,
'aq_base'
):
self
=
self
.
aq_base
if
default
is
_marker
:
return
getattr
(
self
,
id
)
try
:
return
getattr
(
self
,
id
)
except
:
return
default
if
hasattr
(
self
,
'aq_base'
):
base
=
self
.
aq_base
else
:
base
=
self
if
not
hasattr
(
base
,
id
):
if
default
is
_marker
:
raise
AttributeError
,
id
return
default
return
getattr
(
self
,
id
)
def
_setObject
(
self
,
id
,
object
,
roles
=
None
,
user
=
None
):
v
=
self
.
_checkId
(
id
)
...
...
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