306f380 Refactored action list and control buttons to use shared list of actions

Authored and Committed by pvoborni 11 years ago
    Refactored action list and control buttons to use shared list of actions
    
    This is a first step for implementing action panels which will also use the shared list of actions.
    
    This effor changes the way how action list and control buttons are defined. First all actions are defined on facet level - attribute 'actions' in spec file. Implementation of action list widget is not specified on facet level. It is left in facet header. A list of action names used in action list can be now specified in facet spec in 'header_actions' attribute.
    Control buttons use similar concept. Facet by default is using control_buttons_widget. Details and search facet are defining their own default actions (refresh/add/remove/update/reset). Additional buttons can be defined as array of action names on facet level in control_buttons attribute.
    
    state_evaluators and state_listeners were united. They are called state_evaluators but they uses state_listener concept, they are attached to an event. For former state_evaluator the event is post_load. They are defined in spec in state attribute. State object purpose is to aggregate states from all state evaluators. It offers changed event to which can other objects subscribe. It also has summary evaluator which evaluation conditions.  Summary evaluator creates summary status with human readable description. It can be used by facet header.
    
    https://fedorahosted.org/freeipa/ticket/2248
    
        
file modified
+114 -49
file modified
+368 -179
file modified
+50 -40
file modified
+39 -21