Commit 7a9d0080 authored by Jim Fulton's avatar Jim Fulton

Added machinery to work with tree tag and navigation pane.

parent 5fa188fe
......@@ -339,17 +339,26 @@ class ZClass(OFS.SimpleItem.SimpleItem):
def ziconImage(self, REQUEST, RESPONSE):
"Display a class icon"
return self._zclass_.ziconImage.index_html(REQUEST, RESPONSE)
def tpValues(self): return self.propertysheets,
class ZClassSheets(OFS.PropertySheets.PropertySheets):
"Manage a collection of property sheets that provide ZClass management"
isPrincipiaFolderish=1
def tpValues(self): return self.methods, self.common
def tpURL(self): return 'propertysheets'
def manage_workspace(self, URL1):
"Emulate standard interface for use with navigation"
raise 'Redirect', URL1+'/manage'
views = Basic.ZClassViewsSheet('views')
basic = Basic.ZClassBasicSheet('basic')
permissions = Basic.ZClassPermissionsSheet('permissions')
def __init__(self):
self.methods=Method.ZClassMethodsSheet('methods')
self.common=Property.ZInstanceSheetsSheet()
self.common=Property.ZInstanceSheetsSheet('common')
class ZStandardSheets:
......
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