(self, export)
return {
            'id': export.get_id,
            'isDeid': export.is_safe,
            'name': export.name,
            'description': export.description,
            'sharing': export.sharing,
            'owner_username': (
                CouchUser.get_by_user_id(export.owner_id).username
                if export.owner_id else UNKNOWN_EXPORT_OWNER
            ),
            'can_edit': export.can_edit(self.request.couch_user),
            'exportType': export.type,
            'filters': self._get_filters(export),
            'formname': formname,
            'deleteUrl': reverse(DeleteNewCustomExportView.urlname,
                                 args=(self.domain, export.type, export.get_id)),
            'domain': self.domain,
            'type': export.type,
            'downloadUrl': reverse(self._download_view(export).urlname, args=(self.domain, export.get_id)),
            'showDetDownload': export.show_det_config_download,
            'detSchemaUrl': reverse(DownloadDETSchemaView.urlname,
                                    args=(self.domain, export.get_id)),
            'editUrl': reverse(self._edit_view(export).urlname, args=(self.domain, export.get_id)),
            'editNameUrl': reverse(EditExportNameView.urlname, args=(self.domain, export.get_id)),
            'editDescriptionUrl': reverse(EditExportDescription.urlname, args=(self.domain, export.get_id)),
            'lastBuildDuration': '',
            'addedToBulk': False,
            'emailedExport': self._get_daily_saved_export_metadata(export),
            'odataUrl': self._get_odata_url(export),
            'additionalODataUrls': self._get_additional_odata_urls(export),
        }
Returns the object used for each row (per export) in the exports table.
        This data will eventually be processed as a JSON object.
        :return dict
Returns the object used for each row (per export) in the exports table.
        This data will eventually be processed as a JSON object.
        :return dict
Returns the object used for each row ( per export ) in the exports table . This data will eventually be processed as a JSON object . : return dict
def fmt_export_data(self, export):
        """Returns the object used for each row (per export) in the exports table.
        This data will eventually be processed as a JSON object.
        :return dict
        """
        from corehq.apps.export.views.new import DeleteNewCustomExportView
        formname = export.formname if isinstance(export, FormExportInstance) else None
        return {
            'id': export.get_id,
            'isDeid': export.is_safe,
            'name': export.name,
            'description': export.description,
            'sharing': export.sharing,
            'owner_username': (
                CouchUser.get_by_user_id(export.owner_id).username
                if export.owner_id else UNKNOWN_EXPORT_OWNER
            ),
            'can_edit': export.can_edit(self.request.couch_user),
            'exportType': export.type,
            'filters': self._get_filters(export),
            'formname': formname,
            'deleteUrl': reverse(DeleteNewCustomExportView.urlname,
                                 args=(self.domain, export.type, export.get_id)),
            'domain': self.domain,
            'type': export.type,
            'downloadUrl': reverse(self._download_view(export).urlname, args=(self.domain, export.get_id)),
            'showDetDownload': export.show_det_config_download,
            'detSchemaUrl': reverse(DownloadDETSchemaView.urlname,
                                    args=(self.domain, export.get_id)),
            'editUrl': reverse(self._edit_view(export).urlname, args=(self.domain, export.get_id)),
            'editNameUrl': reverse(EditExportNameView.urlname, args=(self.domain, export.get_id)),
            'editDescriptionUrl': reverse(EditExportDescription.urlname, args=(self.domain, export.get_id)),
            'lastBuildDuration': '',
            'addedToBulk': False,
            'emailedExport': self._get_daily_saved_export_metadata(export),
            'odataUrl': self._get_odata_url(export),
            'additionalODataUrls': self._get_additional_odata_urls(export),
        }
def fmt_export_data ( self , export ) : from corehq . apps . export . views . new import DeleteNewCustomExportView formname = export . formname if isinstance ( export , FormExportInstance ) else None return { 'id' : export . get_id , 'isDeid' : export . is_safe , 'name' : export . name , 'description' : export . description , 'sharing' : export . sharing , 'owner_username' : ( CouchUser . get_by_user_id ( export . owner_id ) . username if export . owner_id else UNKNOWN_EXPORT_OWNER ) , 'can_edit' : export . can_edit ( self . request . couch_user ) , 'exportType' : export . type , 'filters' : self . _get_filters ( export ) , 'formname' : formname , 'deleteUrl' : reverse ( DeleteNewCustomExportView . urlname , args = ( self . domain , export . type , export . get_id ) ) , 'domain' : self . domain , 'type' : export . type , 'downloadUrl' : reverse ( self . _download_view ( export ) . urlname , args = ( self . domain , export . get_id ) ) , 'showDetDownload' : export . show_det_config_download , 'detSchemaUrl' : reverse ( DownloadDETSchemaView . urlname , args = ( self . domain , export . get_id ) ) , 'editUrl' : reverse ( self . _edit_view ( export ) . urlname , args = ( self . domain , export . get_id ) ) , 'editNameUrl' : reverse ( EditExportNameView . urlname , args = ( self . domain , export . get_id ) ) , 'editDescriptionUrl' : reverse ( EditExportDescription . urlname , args = ( self . domain , export . get_id ) ) , 'lastBuildDuration' : '' , 'addedToBulk' : False , 'emailedExport' : self . _get_daily_saved_export_metadata ( export ) , 'odataUrl' : self . _get_odata_url ( export ) , 'additionalODataUrls' : self . _get_additional_odata_urls ( export ) , }