(self)
return has_archived
Archives any uploaded logos in the application.
Archives any uploaded logos in the application.
Archives any uploaded logos in the application .
def archive_logos(self):
        """
        Archives any uploaded logos in the application.
        """
        has_archived = False
        if LOGO_ARCHIVE_KEY not in self.archived_media:
            self.archived_media[LOGO_ARCHIVE_KEY] = {}
        for slug, logo_data in list(self.logo_refs.items()):
            self.archived_media[LOGO_ARCHIVE_KEY][slug] = logo_data
            has_archived = True
            del self.logo_refs[slug]
        return has_archived
def archive_logos ( self ) : has_archived = False if LOGO_ARCHIVE_KEY not in self . archived_media : self . archived_media [ LOGO_ARCHIVE_KEY ] = { } for slug , logo_data in list ( self . logo_refs . items ( ) ) : self . archived_media [ LOGO_ARCHIVE_KEY ] [ slug ] = logo_data has_archived = True del self . logo_refs [ slug ] return has_archived