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
9e4ac492
Commit
9e4ac492
authored
Jan 10, 2000
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved manage_subclassableClassNames here.
parent
a8d39ff9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
lib/python/ZClasses/ZClassOwner.py
lib/python/ZClasses/ZClassOwner.py
+12
-15
No files found.
lib/python/ZClasses/ZClassOwner.py
View file @
9e4ac492
...
...
@@ -86,6 +86,17 @@
"""
import
ExtensionClass
,
Globals
,
ZClass
,
Products
def
manage_subclassableClassNames
(
self
):
r
=
{}
r
.
update
(
Products
.
meta_class_info
)
for
data
in
self
.
aq_acquire
(
'_getProductRegistryData'
)(
'zclasses'
):
r
[
'%(product)s/%(id)s'
%
data
]
=
'%(product)s: %(id)s'
%
data
r
=
r
.
items
()
r
.
sort
()
return
r
class
ZClassOwner
(
ExtensionClass
.
Base
):
manage_addZClassForm
=
Globals
.
HTMLFile
(
...
...
@@ -101,21 +112,7 @@ class ZClassOwner(ExtensionClass.Base):
self
,
id
,
title
,
baseclasses
,
meta_type
,
CreateAFactory
,
REQUEST
,
zope_object
=
zope_object
)
def
manage_subclassableClassNames
(
self
):
r
=
{}
r
.
update
(
Products
.
meta_class_info
)
while
1
:
if
not
hasattr
(
self
,
'objectItems'
):
break
for
k
,
v
in
self
.
objectItems
():
if
hasattr
(
v
,
'_zclass_'
)
and
not
r
.
has_key
(
k
):
r
[
k
]
=
v
.
title_and_id
()
if
not
hasattr
(
self
,
'aq_parent'
):
break
self
=
self
.
aq_parent
r
=
r
.
items
()
r
.
sort
()
return
r
manage_subclassableClassNames
=
manage_subclassableClassNames
Globals
.
default__class_init__
(
ZClassOwner
)
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