(self, export)
return {
            'groupId': None,  # This can be removed when we're off legacy exports
            'hasFile': has_file,
            'index': None,  # This can be removed when we're off legacy exports
            'fileData': file_data,
            'isLocationSafeForUser': export.filters.is_location_safe_for_user(self.request),
            'locationRestrictions': self.get_location_restriction_names(export.filters.accessible_location_ids),
            'taskStatus': _get_task_status_json(export._id),
            'updatingData': False,
        }
Return a dictionary containing details about an emailed export.
        This will eventually be passed to javascript.
Return a dictionary containing details about an emailed export.
        This will eventually be passed to javascript.
Return a dictionary containing details about an emailed export . This will eventually be passed to javascript .
def _get_daily_saved_export_metadata(self, export):
        """
        Return a dictionary containing details about an emailed export.
        This will eventually be passed to javascript.
        """
        if not export.is_daily_saved_export:
            return None

        has_file = export.has_file()
        file_data = {}
        if has_file:
            download_url = self.request.build_absolute_uri(
                reverse('download_daily_saved_export', args=[self.domain, export._id]))
            file_data = self._fmt_emailed_export_fileData(
                export._id, export.file_size, export.last_updated,
                export.last_accessed, download_url
            )

        return {
            'groupId': None,  # This can be removed when we're off legacy exports
            'hasFile': has_file,
            'index': None,  # This can be removed when we're off legacy exports
            'fileData': file_data,
            'isLocationSafeForUser': export.filters.is_location_safe_for_user(self.request),
            'locationRestrictions': self.get_location_restriction_names(export.filters.accessible_location_ids),
            'taskStatus': _get_task_status_json(export._id),
            'updatingData': False,
        }
def _get_daily_saved_export_metadata ( self , export ) : if not export . is_daily_saved_export : return None has_file = export . has_file ( ) file_data = { } if has_file : download_url = self . request . build_absolute_uri ( reverse ( 'download_daily_saved_export' , args = [ self . domain , export . _id ] ) ) file_data = self . _fmt_emailed_export_fileData ( export . _id , export . file_size , export . last_updated , export . last_accessed , download_url ) return { 'groupId' : None , # This can be removed when we're off legacy exports 'hasFile' : has_file , 'index' : None , # This can be removed when we're off legacy exports 'fileData' : file_data , 'isLocationSafeForUser' : export . filters . is_location_safe_for_user ( self . request ) , 'locationRestrictions' : self . get_location_restriction_names ( export . filters . accessible_location_ids ) , 'taskStatus' : _get_task_status_json ( export . _id ) , 'updatingData' : False , }