From 08cd470e22da56fd0bb4e1a7b84990256c73fad2 Mon Sep 17 00:00:00 2001 From: jackjack-jj Date: Sun, 14 Apr 2013 23:18:23 +0200 Subject: [PATCH] add tab to stop pywallet --- pywallet.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pywallet.py b/pywallet.py index 1749273..2719a7d 100755 --- a/pywallet.py +++ b/pywallet.py @@ -1,6 +1,6 @@ #!/usr/bin/env python #-*- coding: utf-8 -*- -pywversion="2.0" +pywversion="2.0.1" never_update=False # @@ -2787,6 +2787,7 @@ def html_wui(listcontent,uptodate_text):
  • Passphrase
  • Transaction
  • About
  • +
  • Stop
  • @@ -3949,6 +3950,12 @@ if 'twisted' not in missing_dep: def render_POST(self, request): return self.render_GET(request) + class WIQuit(resource.Resource): + def render_GET(self, request): + reactor.stop() + def render_POST(self, request): + return self.render_GET(request) + class WICTListTx(resource.Resource): def render_GET(self, request): global CTX_adds @@ -4400,7 +4407,8 @@ if __name__ == '__main__': 'CTTest': WICTTest(), 'ListTransactions': WICTListTx(), 'CreateTransaction': WICT(), - 'CT': WICT() + 'CT': WICT(), + 'quit': WIQuit() }