def set_base_attr(self, plugin):
    for attr in ['parent_id', 'placeholder', 'language', 'plugin_type', 'creation_date', 'depth', 'path', 'numchild', 'pk', 'position']:
        setattr(plugin, attr, getattr(self, attr))
def set_base_attr(self, plugin):
    for attr in ['parent_id', 'placeholder', 'language', 'plugin_type', 'creation_date', 'depth', 'path', 'numchild', 'pk', 'position']:
        setattr(plugin, attr, getattr(self, attr))