#NEWLINE# def copy( self , target_placeholder , source_language , fieldname , model , target_language , **kwargs ) : #NEWLINE# #INDENT# from cms.utils.copy_plugins import copy_plugins_to #NEWLINE# trgt = model . objects . get ( ** { #NEWLINE# #INDENT# fieldname : target_placeholder , #NEWLINE# #UNINDENT# } ) #NEWLINE# src = model . objects . get ( master = trgt . master , language_code = source_language ) #NEWLINE# source_placeholder = getattr ( src , fieldname , None ) #NEWLINE# if ( not source_placeholder ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return copy_plugins_to ( source_placeholder . get_plugins_list ( ) , target_placeholder , target_language )