def add_action_view(self, name, url, actions, **kwargs):
        """Creates an ActionsView instance and registers it.
        """
        view = ActionsView(name, url=url, self_var=self, **kwargs)
        if isinstance(actions, dict):
            for group, actions in actions.iteritems():
                view.actions.extend(load_actions(actions, group=group or None))
        else:
            view.actions.extend(load_actions(actions))
        self.add_view(view)
        return view
def add_action_view ( self , name , url , actions , ** kwargs ) : view = ActionsView ( name , url = url , self_var = self , ** kwargs ) if isinstance ( actions , dict ) : for group , actions in actions . iteritems ( ) : view . actions . extend ( load_actions ( actions , group = group or None ) ) else : view . actions . extend ( load_actions ( actions ) ) self . add_view ( view ) return view
Creates an ActionsView instance and registers it.