{"body":"   added_roles = set()\n   for role in roles:\n       trust_role = TrustRole()\n       trust_role.role_id = role['id']\n       trust_role.trust_id = trust_id\n       added_roles.add(role_id)\n       session.add(trust_role)\n    trust_dict = ref.to_dict()\n    trust_dict['roles'] = [{'id': rid} for rid in added_roles]","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/b1sIOydU","modified":1529353528,"id":"b1sIOydU","size":310,"lines":9,"own_paste":false,"theme":"","date":1529353528}