@register.function
def version_disabled(version):
 disabled = [(status == amo.STATUS_DISABLED) for (_id, status) in version.statuses]
 return all(disabled)

@ register . function def version_disabled ( version ) : disabled = [ ( status == amo . STATUS_DISABLED ) for ( _id , status ) in version . statuses ] return all ( disabled )
return true if all the files are disabled .