def setup_modifiers(node, field=None, context=None, in_tree_view=False):
 modifiers = {}
 if (field is not None):
  transfer_field_to_modifiers(field, modifiers)
 transfer_node_to_modifiers(node, modifiers, context=context, in_tree_view=in_tree_view)
 transfer_modifiers_to_node(modifiers, node)

def setup_modifiers ( node , field = None , context = None , in_tree_view = False ) : modifiers = { } if ( field is not None ) : transfer_field_to_modifiers ( field , modifiers ) transfer_node_to_modifiers ( node , modifiers , context = context , in_tree_view = in_tree_view ) transfer_modifiers_to_node ( modifiers , node )
processes node attributes and field descriptors to generate the modifiers node attribute and set it on the provided node .