From 7e5ccddf7eb9d817ba7dacaf3ac21baea781abaf Mon Sep 17 00:00:00 2001 From: Jakub Warmuz Date: Tue, 24 Mar 2015 18:33:29 +0000 Subject: [PATCH] restified example: auto-accept TOS --- examples/restified.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/restified.py b/examples/restified.py index 7947887eb..1a11bf783 100644 --- a/examples/restified.py +++ b/examples/restified.py @@ -19,6 +19,9 @@ net = network2.Network(NEW_REG_URL, key) regr = net.register(contact=( 'mailto:cert-admin@example.com', 'tel:+12025551212')) +logging.info('Auto-accepting TOS: %s', regr.terms_of_service) +net.update_registration(regr.update( + body=regr.body.update(agreement=regr.terms_of_service))) logging.debug(regr) authzr = net.request_challenges(