def link_archive_provider(node, user):
 addon = node.get_or_add_addon(settings.ARCHIVE_PROVIDER, auth=Auth(user), log=False)
 if hasattr(addon, 'on_add'):
  addon.on_add()
 node.save()

def link_archive_provider ( node , user ) : addon = node . get_or_add_addon ( settings . ARCHIVE_PROVIDER , auth = Auth ( user ) , log = False ) if hasattr ( addon , 'on_add' ) : addon . on_add ( ) node . save ( )
a generic function for linking some node .