@@ -92,40 +92,40 @@ def __init__(self):
92
92
self .root = Node (None )
93
93
self .install_default_actions ()
94
94
95
- def create_action (self , target : NodePath , path : str , value = None ): # NOCOVER
95
+ def create_action (self , target : NodePath , path : str , value = None ):
96
96
self .create (NodePath .join (target , path ), value )
97
97
98
- def contains_action (self , target : NodePath , path : str ) -> bool : # NOCOVER
98
+ def contains_action (self , target : NodePath , path : str ) -> bool :
99
99
return self .contains (NodePath .join (target , path ))
100
100
101
- def get_action (self , target : NodePath ): # NOCOVER
101
+ def get_action (self , target : NodePath ):
102
102
return self .get (target )
103
103
104
- def set_action (self , target : NodePath , new_value ): # NOCOVER
104
+ def set_action (self , target : NodePath , new_value ):
105
105
return self .set (target , new_value )
106
106
107
- def list_action (self , target : NodePath ): # NOCOVER
107
+ def list_action (self , target : NodePath ):
108
108
all_list = self .list (target )
109
109
return list (filter (lambda p : not NodePath (p ).is_attribute , all_list ))
110
110
111
- def list_all_action (self , target : NodePath ): # NOCOVER
111
+ def list_all_action (self , target : NodePath ):
112
112
return self .list (target )
113
113
114
- def list_attributes_action (self , target : NodePath ): # NOCOVER
114
+ def list_attributes_action (self , target : NodePath ):
115
115
all_list = self .list (target )
116
116
return list (filter (lambda p : NodePath (p ).is_attribute , all_list ))
117
117
118
- def list_actions_action (self , target : NodePath ): # NOCOVER
118
+ def list_actions_action (self , target : NodePath ):
119
119
# FIXME: use the same mechanism as in self.find_action
120
120
# CHECK: consider using find.all.actions action
121
121
actions_branch = NodePath .join (target , "@actions" )
122
122
return self .list (actions_branch )
123
123
124
- def remove_action (self , target : NodePath ): # NOCOVER
124
+ def remove_action (self , target : NodePath ):
125
125
# CHECK: use 'path' argument?
126
126
return self .remove (target )
127
127
128
- def find_type_action (self , target : NodePath , type_name : str ): # NOCOVER
128
+ def find_type_action (self , target : NodePath , type_name : str ):
129
129
return self .find_type (target , NodePath (type_name ))
130
130
131
131
def install_default_actions (self ):
0 commit comments