def article2draft(article): """Transform an Article to Draft""" draft = Draft( article._content, article.metadata, article.settings, article.source_path, article._context, ) draft.status = "draft" return draft
def article2draft(article): '''Transform an Article to Draft''' draft = Draft(article._content, article.metadata, article.settings, article.source_path, article._context) draft.status = 'draft' return draft
def article2draft(article): """Transform an Article to Draft""" draft = Draft(article._content, article.metadata, article.settings, article.source_path, article._context) draft.status = "draft" return draft