diff options
author | Jakub Warmuz <jakub@warmuz.org> | 2015-03-24 21:33:29 +0300 |
---|---|---|
committer | Jakub Warmuz <jakub@warmuz.org> | 2015-03-24 21:33:43 +0300 |
commit | 7e5ccddf7eb9d817ba7dacaf3ac21baea781abaf (patch) | |
tree | b3fe541b1be0ee1d0b9752c6f4af4821e82a037b /examples | |
parent | 2fb3bd8728cf87b0f4a658391ce1a4a3ba13e465 (diff) |
restified example: auto-accept TOS
Diffstat (limited to 'examples')
-rw-r--r-- | examples/restified.py | 3 |
1 files changed, 3 insertions, 0 deletions
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( |