def modify_node_relations(self, obj, old_obj): if old_obj is None: return merge_lists(self.collection, obj, old_obj, 'nodemembers', 'memberof')
def modify_group_relations(self, obj, old_obj): if old_obj is None: return # Modify parent relation merge_lists(self.collection, obj, old_obj, 'memberof', 'nodemembers')