Commit b740fcaa authored by Jim Fulton's avatar Jim Fulton

Added a method to get base class names. And prettified a name.

parent cb8ffc59
......@@ -339,6 +339,14 @@ class ZClass(OFS.SimpleItem.SimpleItem):
def tpValues(self):
return self.propertysheets.common, self.propertysheets.methods
def ZClassBaseClassNames(self):
r=[]
for c in self._zbases:
if hasattr(c, 'id'): r.append(c.id)
elif hasattr(c, '__name__'): r.append(c.__name__)
return r
class ZClassSheets(OFS.PropertySheets.PropertySheets):
"Manage a collection of property sheets that provide ZClass management"
......@@ -358,7 +366,7 @@ class ZClassSheets(OFS.PropertySheets.PropertySheets):
self.common=Property.ZInstanceSheetsSheet('common')
class ZStandardSheets:
class ZObject:
manage_options=(
{'label': 'Basic', 'action' :'propertysheets/basic/manage'},
......@@ -370,6 +378,8 @@ class ZStandardSheets:
{'label': 'Security', 'action' :'manage_access'},
)
ZStandardSheets=ZObject
def findActions(klass, found):
for b in klass.__bases__:
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment