コード例 #1
0
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
コード例 #2
0
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
コード例 #3
0
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