(self, restore_state)
return self.serializer.get_xml_nodes(restore_user.domain, self.id, restore_user.user_id,
                                             locations_queryset)
By default this will generate a fixture for the users
        location and it's "footprint", meaning the path
        to a root location through parent hierarchies.

        There is an admin feature flag that will make this generate
        a fixture with ALL locations for the domain.
By default this will generate a fixture for the users
        location and it's "footprint", meaning the path
        to a root location through parent hierarchies.
By default this will generate a fixture for the users location and it s footprint meaning the path to a root location through parent hierarchies .
def __call__(self, restore_state):
        """
        By default this will generate a fixture for the users
        location and it's "footprint", meaning the path
        to a root location through parent hierarchies.

        There is an admin feature flag that will make this generate
        a fixture with ALL locations for the domain.
        """
        restore_user = restore_state.restore_user

        if not self.serializer.should_sync(restore_user, restore_state.params.app):
            return []

        # This just calls get_location_fixture_queryset but is memoized to the user
        locations_queryset = restore_user.get_locations_to_sync()
        if not should_sync_locations(restore_state.last_sync_log, locations_queryset, restore_state):
            return []

        return self.serializer.get_xml_nodes(restore_user.domain, self.id, restore_user.user_id,
                                             locations_queryset)
def __call__ ( self , restore_state ) : restore_user = restore_state . restore_user if not self . serializer . should_sync ( restore_user , restore_state . params . app ) : return [ ] # This just calls get_location_fixture_queryset but is memoized to the user locations_queryset = restore_user . get_locations_to_sync ( ) if not should_sync_locations ( restore_state . last_sync_log , locations_queryset , restore_state ) : return [ ] return self . serializer . get_xml_nodes ( restore_user . domain , self . id , restore_user . user_id , locations_queryset )