Package ZenModel :: Module ZenMenuable :: Class ZenMenuable
[show private | hide private]
[frames | no frames]

Class ZenMenuable

Known Subclasses:
DeviceOrganizer

ZenMenuable is a mixin providing menuing.
Method Summary
  buildMenus(self, menudict)
Build menus from a dictionary.
  getMenus(self, menuids, context)
Build menus for this context, acquiring ZenMenus which in turn acquire ZenMenuItems.
  manage_addItemsToZenMenu(self, menuid, items)
Add ZenMenuItems to a ZenMenu.
  manage_addZenMenu(self, id, desc, REQUEST)
Add a menu item to this device organizer
  manage_addZenMenuItem(self, menuid, id, description, action, permissions, isdialog, isglobal, banned_classes, allowed_classes, ordering, REQUEST)
Add ZenMenuItem
  manage_deleteZenMenu(self, delids, REQUEST)
Delete Menu Items from this object
  manage_deleteZenMenuItem(self, menuid, delids, REQUEST)
Delete Menu Items
  manage_saveMenuItemOrdering(self, menuid, REQUEST)
Delete Menu Items

Class Variable Summary
tuple __ac_permissions__ = (('Change Device', ('manage_deleteZ...
PermissionRole buildMenus__roles__ = <PermissionRole object at 0x10bfcf...
PermissionRole getMenus__roles__ = <PermissionRole object at 0x320d0e0>
PermissionRole manage_addItemsToZenMenu__roles__ = <PermissionRole obje...
PermissionRole manage_addZenMenu__roles__ = <PermissionRole object at 0...
PermissionRole manage_addZenMenuItem__roles__ = <PermissionRole object ...
PermissionRole manage_deleteZenMenu__roles__ = <PermissionRole object a...
PermissionRole manage_deleteZenMenuItem__roles__ = <PermissionRole obje...
PermissionRole manage_saveMenuItemOrdering__roles__ = <PermissionRole o...

Method Details

buildMenus(self, menudict={})

Build menus from a dictionary.

getMenus(self, menuids=None, context=None)

Build menus for this context, acquiring ZenMenus which in turn acquire ZenMenuItems.

Pass it a menuid for a list of menuitems, a sequence of menuids for a dict of lists of items, or nothing for a dict of all available menus.

manage_addItemsToZenMenu(self, menuid, items=[{}])

Add ZenMenuItems to a ZenMenu. 
Accepts a list of dictionaries.
Available keyword args:
  id
  description
  action
  permissions
  isglobal
  isdialog
  banned_classes
  allowed_classes

manage_addZenMenu(self, id=None, desc='', REQUEST=None)

Add a menu item to this device organizer

manage_addZenMenuItem(self, menuid, id=None, description='', action='', permissions=('View',), isdialog=False, isglobal=True, banned_classes=(), allowed_classes=(), ordering=0.0, REQUEST=None)

Add ZenMenuItem

manage_deleteZenMenu(self, delids=(), REQUEST=None)

Delete Menu Items from this object

manage_deleteZenMenuItem(self, menuid, delids=(), REQUEST=None)

Delete Menu Items

manage_saveMenuItemOrdering(self, menuid, REQUEST=None)

Delete Menu Items

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('Change Device',
  ('manage_deleteZenMenuItem',
   'buildMenus',
   'manage_addZenMenuItem',
   'manage_deleteZenMenu',
   'manage_addZenMenu',
   'manage_addItemsToZenMenu',
   'manage_saveMenuItemOrdering')),
...                                                                    

buildMenus__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcf8>                                   

getMenus__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d0e0>                                   

manage_addItemsToZenMenu__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcf8>                                   

manage_addZenMenu__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcf8>                                   

manage_addZenMenuItem__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcf8>                                   

manage_deleteZenMenu__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcf8>                                   

manage_deleteZenMenuItem__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcf8>                                   

manage_saveMenuItemOrdering__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcf8>                                   

Generated by Epydoc 2.1 on Thu Aug 16 09:55:09 2007 http://epydoc.sf.net