From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 221606DE0183 for ; Thu, 7 Dec 2017 03:46:31 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Amavis-Alert: BAD HEADER SECTION, MIME error: error: part did not end with expected boundary; ; error: unexpected end of parts before epilogue X-Spam-Flag: NO X-Spam-Score: -0.73 X-Spam-Level: X-Spam-Status: No, score=-0.73 tagged_above=-999 required=5 tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PD5-cbQRySAv for ; Thu, 7 Dec 2017 03:46:30 -0800 (PST) X-Greylist: delayed 305 seconds by postgrey-1.36 at arlo; Thu, 07 Dec 2017 03:46:29 PST Received: from mout.web.de (mout.web.de [212.227.17.12]) by arlo.cworth.org (Postfix) with ESMTPS id 6AB0E6DE009B for ; Thu, 7 Dec 2017 03:46:29 -0800 (PST) Received: from localhost ([78.53.227.28]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LbrUu-1eoW3w0Owu-00jMWd; Thu, 07 Dec 2017 12:41:20 +0100 From: l-m-h@web.de To: notmuch@notmuchmail.org Cc: Lucas Hoffmann Subject: [PATCH 0/6] python: add bindings for notmuch_database_get_config{, _list} Date: Thu, 7 Dec 2017 12:40:45 +0100 Message-Id: X-Mailer: git-send-email 2.15.1 In-Reply-To: <8737am9w18.fsf@tethera.net> References: <8737am9w18.fsf@tethera.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.15.1" X-Provags-ID: V03:K0:1c2ZnP4++JnJrCCLd+Z8n9F33yegr2/dFgFudwc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MNkHRqUhNap/T9/OI9u7+MQPiKA19xweH6 X-Mailman-Approved-At: Thu, 07 Dec 2017 11:31:51 -0800 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Dec 2017 11:46:31 -0000 From: Lucas Hoffmann This is a multi-part message in MIME format. --------------2.15.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit Comming back after a long time (sorry for the wait). I now changed the binding for notmuch_database_get_config_list into a generator. It is called get_configs in the python bindings (the "s" should indicate the iterable/generator nature like for dict.items or dict.keys). Tests and the set_config entry point were also added. If you want you can merge it as is or I can squash the commits in any way you want. Lucas Hoffmann (6): python: add bindings to access config python: add default arg to get_config_list python: turn get_config_list into a generator test: Add tests for new python bindings python: Rename get_config_list to get_configs test: Add test to unset config items with the python bindings bindings/python/docs/source/database.rst | 6 ++ bindings/python/notmuch/database.py | 111 ++++++++++++++++++++++++++++++- bindings/python/notmuch/globals.py | 5 ++ test/T390-python.sh | 81 ++++++++++++++++++++++ 4 files changed, 202 insertions(+), 1 deletion(-) -- 2.15.1 --------------2.15.1--