code: def publish_article(article, language, changed_by=None):
      
      article = article.reload()
  
      # get username
      if changed_by:
          username = changed_by.get_username()
      else:
          username = 'script'
  
      with current_user(username):
          article.publish(language)
  
      return article.reload()
docs: Publish an article. This sets `article.published` to `True`
      and calls article.publish() which does the actual publishing.