(self, datums)
return result
Add in any `query` datums that are necessary.
        This only applies to datums that are loaded from a data registry.
Add in any `query` datums that are necessary.
        This only applies to datums that are loaded from a data registry.
Add in any query datums that are necessary . This only applies to datums that are loaded from a data registry .
def add_remote_query_datums(self, datums):
        """Add in any `query` datums that are necessary.
        This only applies to datums that are loaded from a data registry.
        """
        result = []
        for datum in datums:
            if datum.module_id and datum.case_type:
                module = self.app.get_module_by_unique_id(datum.module_id)
                if module_loads_registry_case(module):
                    result.append(self.get_data_registry_search_datums(module))
                    result.append(datum)
                    result.append(self.get_data_registry_case_datums(datum, module))
                else:
                    result.append(datum)
            else:
                result.append(datum)
        return result
def add_remote_query_datums ( self , datums ) : result = [ ] for datum in datums : if datum . module_id and datum . case_type : module = self . app . get_module_by_unique_id ( datum . module_id ) if module_loads_registry_case ( module ) : result . append ( self . get_data_registry_search_datums ( module ) ) result . append ( datum ) result . append ( self . get_data_registry_case_datums ( datum , module ) ) else : result . append ( datum ) else : result . append ( datum ) return result