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
34dedeb1
Commit
34dedeb1
authored
Dec 19, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made objectIds and objectValues non-Web accessible
parent
5b565c13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+8
-8
No files found.
lib/python/OFS/ObjectManager.py
View file @
34dedeb1
...
...
@@ -84,9 +84,9 @@
##############################################################################
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.11
7 2000/12/13 19:57:44 ev
an Exp $"""
$Id: ObjectManager.py,v 1.11
8 2000/12/19 16:01:42 bri
an Exp $"""
__version__
=
'$Revision: 1.11
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.11
8
$'
[
11
:
-
2
]
import
App.Management
,
Acquisition
,
Globals
,
CopySupport
,
Products
import
os
,
App
.
FactoryDispatcher
,
ts_regex
,
Products
...
...
@@ -351,9 +351,9 @@ class ObjectManager(
except
:
pass
def
objectIds
(
self
,
spec
=
None
):
"""
Returns a list of subobject ids of the current object.
If 'spec' is specified, returns objects whose meta_type
matches 'spec'."""
#
Returns a list of subobject ids of the current object.
#
If 'spec' is specified, returns objects whose meta_type
# matches 'spec'.
if
spec
is
not
None
:
if
type
(
spec
)
==
type
(
's'
):
spec
=
[
spec
]
...
...
@@ -365,9 +365,9 @@ class ObjectManager(
return
map
(
lambda
i
:
i
[
'id'
],
self
.
_objects
)
def
objectValues
(
self
,
spec
=
None
):
"""
Returns a list of actual subobjects of the current object.
If 'spec' is specified, returns only objects whose meta_type
match 'spec'."""
#
Returns a list of actual subobjects of the current object.
#
If 'spec' is specified, returns only objects whose meta_type
# match 'spec'.
return
map
(
self
.
_getOb
,
self
.
objectIds
(
spec
))
def
objectItems
(
self
,
spec
=
None
):
...
...
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