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
e5368cdc
Commit
e5368cdc
authored
Jan 17, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged sorting change from 2.3 branch
parent
236463ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
lib/python/App/dtml/menu.dtml
lib/python/App/dtml/menu.dtml
+1
-1
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+16
-8
No files found.
lib/python/App/dtml/menu.dtml
View file @
e5368cdc
...
...
@@ -34,7 +34,7 @@ td {
</td>
</tr>
</table>
<dtml-tree
sort=id
nowrap=1>
<dtml-tree nowrap=1>
<dtml-if icon>
<a href="<dtml-var tree-item-url fmt=url-quote>/manage_workspace"
target="manage_main"><img src="&dtml-BASEPATH1;/&dtml-icon;" border="0"
...
...
lib/python/OFS/ObjectManager.py
View file @
e5368cdc
...
...
@@ -84,9 +84,9 @@
##############################################################################
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.12
1 2001/01/11 21:29:41 chrism
Exp $"""
$Id: ObjectManager.py,v 1.12
2 2001/01/17 16:18:02 brian
Exp $"""
__version__
=
'$Revision: 1.12
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.12
2
$'
[
11
:
-
2
]
import
App.Management
,
Acquisition
,
Globals
,
CopySupport
,
Products
import
os
,
App
.
FactoryDispatcher
,
ts_regex
,
Products
...
...
@@ -475,16 +475,24 @@ class ObjectManager(
# Return a list of subobjects, used by tree tag.
r
=
[]
if
hasattr
(
aq_base
(
self
),
'tree_ids'
):
for
id
in
self
.
tree_ids
:
tree_ids
=
self
.
tree_ids
try
:
tree_ids
=
list
(
tree_ids
)
except
TypeError
:
pass
if
hasattr
(
tree_ids
,
'sort'
):
tree_ids
.
sort
()
for
id
in
tree_ids
:
if
hasattr
(
self
,
id
):
r
.
append
(
self
.
_getOb
(
id
))
else
:
obj_ids
=
self
.
objectIds
()
obj_ids
.
sort
()
for
id
in
obj_ids
:
for
id
in
self
.
_objects
:
o
=
self
.
_getOb
(
id
[
'id'
])
try
:
if
o
.
isPrincipiaFolderish
:
r
.
append
(
o
)
except
:
pass
o
=
self
.
_getOb
(
id
)
if
hasattr
(
o
,
'isPrincipiaFolderish'
)
and
\
o
.
isPrincipiaFolderish
:
r
.
append
(
o
)
return
r
def
manage_exportObject
(
self
,
id
=
''
,
download
=
None
,
toxml
=
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