#NEWLINE# @ staticmethod #NEWLINE# def response_commcare_logo_uploader( domain ) : #NEWLINE# #INDENT# 'Make sure no existing applications are using a logo.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# for app in get_all_apps ( domain . name ) : #NEWLINE# #INDENT# if isinstance ( app , HQMediaMixin ) : #NEWLINE# #INDENT# has_restored = app . restore_logos ( ) #NEWLINE# if has_restored : #NEWLINE# #INDENT# app . save ( ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return True #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# log_accounting_error ( ( 'Failed to restore all commcare logos for domain %s.' % app . name ) ) #NEWLINE# return False