def _unpublicize_activity(committer_id, activity_id, activity_type):
 if (not Actor(committer_id).can_unpublicize(activity_type, activity_id)):
  logging.error(('User %s tried to unpublicize exploration %s but was refused permission.' % (committer_id, activity_id)))
  raise Exception('This exploration cannot be unmarked as "featured".')
 _change_activity_status(committer_id, activity_id, activity_type, ACTIVITY_STATUS_PUBLIC, 'Exploration unpublicized.')

def _unpublicize_activity ( committer_id , activity_id , activity_type ) : if ( not Actor ( committer_id ) . can_unpublicize ( activity_type , activity_id ) ) : logging . error ( ( 'User %s tried to unpublicize exploration %s but was refused permission.' % ( committer_id , activity_id ) ) ) raise Exception ( 'This exploration cannot be unmarked as "featured".' ) _change_activity_status ( committer_id , activity_id , activity_type , ACTIVITY_STATUS_PUBLIC , 'Exploration unpublicized.' )
unpublicizes an exploration .