def listActions(self): """ List the actions defined in this category and its subcategories. """ actions = [] for obj in self.objectValues(): if IActionCategory.providedBy(obj): actions.extend( obj.listActions() ) elif IAction.providedBy(obj): actions.append(obj) return tuple(actions)
def listActions(self): """ List the actions defined in this category and its subcategories. """ actions = [] for obj in self.objectValues(): if IActionCategory.providedBy(obj): actions.extend(obj.listActions()) elif IAction.providedBy(obj): actions.append(obj) return tuple(actions)