From patchwork Thu Sep 10 15:57:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 3450 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4BnNp40zz1z3x3Y for ; Thu, 10 Sep 2020 15:58:04 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4BnNp337QczpV; Thu, 10 Sep 2020 15:58:03 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4BnNp32nlmz2yVt; Thu, 10 Sep 2020 15:58:03 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4BnNp2061Nz2xms; Thu, 10 Sep 2020 15:58:02 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 4BnNp069SXzsW; Thu, 10 Sep 2020 15:58:00 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1599753481; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8cFW66U6PvFp7/jssREhzlHtNqfEMPgCc6mZBtsWg90=; b=/1B/IX03Tw3jU0nQ2JRHC445/7abuWv8+vqCqZeLFJlWwc5p60oIZploGlmwHFQkA1/liI adAZ3yoAKi9OxjBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1599753481; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8cFW66U6PvFp7/jssREhzlHtNqfEMPgCc6mZBtsWg90=; b=B1g8LheOWFryhrLXUNFd/QFixvp2gLPjbWdOucJicEjgv//l/fM3lplD7pDLaoc56OzcN/ K7zHm7DW1oAIepsgaw/ekR9Sp5PFOHC5R4982h0TpV23dhsXo3MNLZCPUK96jYsrvbQg7a 0whHXRJFLh4MWiV1YEN9FvjZHyFWAyVVciUV6YQaefkKARnromCdW3eLtnwMTqHBu3jFiE Mlf6KsvxgfhMM0J56aQh/QPypNUTin/Aqrc1VuhjAfI8S8+XbEinDmXaNWcML2Q1ViaVD9 aVLzir63TtsTDys2Vjz+uxlL+NKvBSGl2vUUpekf6Ds3ar5tfv0M7oumKwgbYQ== From: Stefan Schantl To: location@lists.ipfire.org Subject: [PATCH 2/4] python example script: Add country name and continent code. Date: Thu, 10 Sep 2020 17:57:45 +0200 Message-Id: <20200910155747.12553-2-stefan.schantl@ipfire.org> In-Reply-To: <20200910155747.12553-1-stefan.schantl@ipfire.org> References: <20200910155747.12553-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.mailfrom=stefan.schantl@ipfire.org X-BeenThere: location@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: development@lists.ipfire.org Errors-To: location-bounces@lists.ipfire.org Sender: "Location" Signed-off-by: Stefan Schantl --- examples/python/create-database.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/python/create-database.py b/examples/python/create-database.py index bf8838b..04b2dc3 100644 --- a/examples/python/create-database.py +++ b/examples/python/create-database.py @@ -22,6 +22,8 @@ with open(private_key_path, "r") as pkey: # Add a country c = w.add_country("DE") + c.continent_code = "EU" + c.name = "Germany" # Add an AS a = w.add_as(204867)