示例#1
0
    def addable_actions(self):
        rule = aq_inner(self.context)

        info = []
        for element in utils.allAvailableActions(rule.event):
            info.append({
                'title': element.title,
                'description': element.description,
                'addview': element.addview})

        return info
示例#2
0
    def addable_actions(self):
        rule = aq_inner(self.context)

        info = []
        for element in utils.allAvailableActions(rule.event):
            info.append({'title': element.title,
                         'description': element.description,
                         'addview': element.addview,
                        })

        return info
 def available_actions(self):
     return utils.allAvailableActions(IActionSucceededEvent)
示例#4
0
 def available_actions(self):
     return utils.allAvailableActions(IActionSucceededEvent)