dash-docs/en/doxygen/html/authproxy_8py_source.html

124 lines
47 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Dash Core: qa/rpc-tests/test_framework/authproxy.py Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="bitcoin_logo_doxygen.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Dash Core
&#160;<span id="projectnumber">0.12.2.1</span>
</div>
<div id="projectbrief">P2P Digital Currency</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('authproxy_8py_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">authproxy.py</div> </div>
</div><!--header-->
<div class="contents">
<a href="authproxy_8py.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="namespacetest__framework_1_1authproxy.html"> 1</a></span>&#160;</div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="stringliteral">&quot;&quot;&quot;</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="stringliteral"> Copyright 2011 Jeff Garzik</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="stringliteral"></span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="stringliteral"> AuthServiceProxy has the following improvements over python-jsonrpc&#39;s</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="stringliteral"> ServiceProxy class:</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="stringliteral"></span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="stringliteral"> - HTTP connections persist for the life of the AuthServiceProxy object</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="stringliteral"> (if server supports HTTP/1.1)</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="stringliteral"> - sends protocol &#39;version&#39;, per JSON-RPC 1.1</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="stringliteral"> - sends proper, incrementing &#39;id&#39;</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="stringliteral"> - sends Basic HTTP authentication headers</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="stringliteral"> - parses all JSON numbers that look like floats as Decimal</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="stringliteral"> - uses standard Python json lib</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="stringliteral"></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="stringliteral"> Previous copyright, from python-jsonrpc/jsonrpc/proxy.py:</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="stringliteral"></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="stringliteral"> Copyright (c) 2007 Jan-Klaas Kollhof</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="stringliteral"></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="stringliteral"> This file is part of jsonrpc.</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="stringliteral"></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="stringliteral"> jsonrpc is free software; you can redistribute it and/or modify</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="stringliteral"> it under the terms of the GNU Lesser General Public License as published by</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="stringliteral"> the Free Software Foundation; either version 2.1 of the License, or</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="stringliteral"> (at your option) any later version.</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="stringliteral"></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="stringliteral"> This software is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="stringliteral"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="stringliteral"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="stringliteral"> GNU Lesser General Public License for more details.</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="stringliteral"></span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="stringliteral"> You should have received a copy of the GNU Lesser General Public License</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="stringliteral"> along with this software; if not, write to the Free Software</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="stringliteral"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="stringliteral">&quot;&quot;&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keywordflow">try</span>:</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keyword">import</span> http.client <span class="keyword">as</span> httplib</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keywordflow">except</span> ImportError:</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keyword">import</span> httplib</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="keyword">import</span> base64</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keyword">import</span> decimal</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keyword">import</span> json</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keyword">import</span> logging</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="keywordflow">try</span>:</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keyword">import</span> urllib.parse <span class="keyword">as</span> urlparse</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="keywordflow">except</span> ImportError:</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keyword">import</span> urlparse</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="namespacetest__framework_1_1authproxy.html#ae650e4456f0aff7c5a36fd305c92791f"> 50</a></span>&#160;USER_AGENT = <span class="stringliteral">&quot;AuthServiceProxy/0.1&quot;</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="namespacetest__framework_1_1authproxy.html#a600299e529de34b0eaebbcf91cde048f"> 52</a></span>&#160;HTTP_TIMEOUT = 30</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="namespacetest__framework_1_1authproxy.html#a6b6e19de3aa8d8d1e8f6ae2eaab9d621"> 54</a></span>&#160;log = logging.getLogger(<span class="stringliteral">&quot;BitcoinRPC&quot;</span>)</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1JSONRPCException.html"> 56</a></span>&#160;<span class="keyword">class </span><a class="code" href="classtest__framework_1_1authproxy_1_1JSONRPCException.html">JSONRPCException</a>(Exception):</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1JSONRPCException.html#a8162e739cd1549620c2bf628646a1c2b"> 57</a></span>&#160; <span class="keyword">def </span><a class="code" href="classtest__framework_1_1authproxy_1_1JSONRPCException.html#a8162e739cd1549620c2bf628646a1c2b">__init__</a>(self, rpc_error):</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; Exception.__init__(self)</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1JSONRPCException.html#a9153ba77896743308ea5880006d5b56d"> 59</a></span>&#160; self.<a class="code" href="classtest__framework_1_1authproxy_1_1JSONRPCException.html#a9153ba77896743308ea5880006d5b56d">error</a> = rpc_error</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="namespacetest__framework_1_1authproxy.html#a5f8738b9fe6be52e227eaaa4ffabaac6"> 62</a></span>&#160;<span class="keyword">def </span><a class="code" href="namespacetest__framework_1_1authproxy.html#a5f8738b9fe6be52e227eaaa4ffabaac6">EncodeDecimal</a>(o):</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordflow">if</span> isinstance(o, decimal.Decimal):</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keywordflow">return</span> str(o)</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">raise</span> TypeError(repr(o) + <span class="stringliteral">&quot; is not JSON serializable&quot;</span>)</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html"> 67</a></span>&#160;<span class="keyword">class </span><a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html">AuthServiceProxy</a>(object):</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a704d06b9310cb627d2824b01da7323cb"> 68</a></span>&#160; __id_count = 0</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="comment"># ensure_ascii: escape unicode as \uXXXX, passed to json.dumps</span></div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a4a518c6f03598ccd648aa6206020e1bf"> 71</a></span>&#160; <span class="keyword">def </span><a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a4a518c6f03598ccd648aa6206020e1bf">__init__</a>(self, service_url, service_name=None, timeout=HTTP_TIMEOUT, connection=None, ensure_ascii=True):</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#ae5a8d72d8e6e79b81f41e691d8eef98b"> 72</a></span>&#160; self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#ae5a8d72d8e6e79b81f41e691d8eef98b">__service_url</a> = service_url</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a896dd13b5daaae87d825431e6a8b5a97"> 73</a></span>&#160; self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a896dd13b5daaae87d825431e6a8b5a97">_service_name</a> = service_name</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a5ae952dea6b0ccfa8f631f82aa0118d2"> 74</a></span>&#160; self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a5ae952dea6b0ccfa8f631f82aa0118d2">ensure_ascii</a> = ensure_ascii <span class="comment"># can be toggled on the fly by tests</span></div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a138f7e907e46a6b1587e7901374e5710"> 75</a></span>&#160; self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a138f7e907e46a6b1587e7901374e5710">__url</a> = urlparse.urlparse(service_url)</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keywordflow">if</span> self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a138f7e907e46a6b1587e7901374e5710">__url</a>.port <span class="keywordflow">is</span> <span class="keywordtype">None</span>:</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; port = 80</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="keywordflow">else</span>:</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; port = self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a138f7e907e46a6b1587e7901374e5710">__url</a>.port</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; (user, passwd) = (self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a138f7e907e46a6b1587e7901374e5710">__url</a>.username, self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a138f7e907e46a6b1587e7901374e5710">__url</a>.password)</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keywordflow">try</span>:</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; user = user.encode(<span class="stringliteral">&#39;utf8&#39;</span>)</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordflow">except</span> AttributeError:</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keywordflow">pass</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordflow">try</span>:</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; passwd = passwd.encode(<span class="stringliteral">&#39;utf8&#39;</span>)</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keywordflow">except</span> AttributeError:</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordflow">pass</span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; authpair = user + b<span class="stringliteral">&#39;:&#39;</span> + passwd</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a5e1aa87835e12c16c9a89d4ce9845b2a"> 90</a></span>&#160; self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a5e1aa87835e12c16c9a89d4ce9845b2a">__auth_header</a> = b<span class="stringliteral">&#39;Basic &#39;</span> + base64.b64encode(authpair)</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordflow">if</span> connection:</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="comment"># Callables re-use the connection of the original proxy</span></div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a591c1b410484a57bde575dd8155f058a"> 94</a></span>&#160; self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a591c1b410484a57bde575dd8155f058a">__conn</a> = connection</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keywordflow">elif</span> self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a138f7e907e46a6b1587e7901374e5710">__url</a>.scheme == <span class="stringliteral">&#39;https&#39;</span>:</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a591c1b410484a57bde575dd8155f058a">__conn</a> = httplib.HTTPSConnection(self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a138f7e907e46a6b1587e7901374e5710">__url</a>.hostname, port,</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; timeout=timeout)</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordflow">else</span>:</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a591c1b410484a57bde575dd8155f058a">__conn</a> = httplib.HTTPConnection(self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a138f7e907e46a6b1587e7901374e5710">__url</a>.hostname, port,</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; timeout=timeout)</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#ac21d1b0a1c8295c9a7792a90681f0cfc"> 102</a></span>&#160; <span class="keyword">def </span><a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#ac21d1b0a1c8295c9a7792a90681f0cfc">__getattr__</a>(self, name):</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keywordflow">if</span> name.startswith(<span class="stringliteral">&#39;__&#39;</span>) <span class="keywordflow">and</span> name.endswith(<span class="stringliteral">&#39;__&#39;</span>):</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="comment"># Python internal stuff</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordflow">raise</span> AttributeError</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordflow">if</span> self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a896dd13b5daaae87d825431e6a8b5a97">_service_name</a> <span class="keywordflow">is</span> <span class="keywordflow">not</span> <span class="keywordtype">None</span>:</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; name = <span class="stringliteral">&quot;%s.%s&quot;</span> % (self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a896dd13b5daaae87d825431e6a8b5a97">_service_name</a>, name)</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html">AuthServiceProxy</a>(self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#ae5a8d72d8e6e79b81f41e691d8eef98b">__service_url</a>, name, connection=self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a591c1b410484a57bde575dd8155f058a">__conn</a>)</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a3e1fc865e67035bfe18e1de7c088df0e"> 110</a></span>&#160; <span class="keyword">def </span><a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a3e1fc865e67035bfe18e1de7c088df0e">_request</a>(self, method, path, postdata):</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="stringliteral">&#39;&#39;&#39;</span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;<span class="stringliteral"> Do a HTTP request, with retry if we get disconnected (e.g. due to a timeout).</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;<span class="stringliteral"> This is a workaround for https://bugs.python.org/issue3566 which is fixed in Python 3.5.</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="stringliteral"> &#39;&#39;&#39;</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; headers = {<span class="stringliteral">&#39;Host&#39;</span>: self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a138f7e907e46a6b1587e7901374e5710">__url</a>.hostname,</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="stringliteral">&#39;User-Agent&#39;</span>: USER_AGENT,</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="stringliteral">&#39;Authorization&#39;</span>: self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a5e1aa87835e12c16c9a89d4ce9845b2a">__auth_header</a>,</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="stringliteral">&#39;Content-type&#39;</span>: <span class="stringliteral">&#39;application/json&#39;</span>}</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keywordflow">try</span>:</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a591c1b410484a57bde575dd8155f058a">__conn</a>.request(method, path, postdata, headers)</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordflow">return</span> self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#aab41fd348c1a9360de2d9e125f47db5f">_get_response</a>()</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keywordflow">except</span> httplib.BadStatusLine <span class="keyword">as</span> e:</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keywordflow">if</span> e.line == <span class="stringliteral">&quot;&#39;&#39;&quot;</span>: <span class="comment"># if connection was closed, try again</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a591c1b410484a57bde575dd8155f058a">__conn</a>.close()</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a591c1b410484a57bde575dd8155f058a">__conn</a>.request(method, path, postdata, headers)</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordflow">return</span> self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#aab41fd348c1a9360de2d9e125f47db5f">_get_response</a>()</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keywordflow">else</span>:</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordflow">raise</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a508bb5475fa4fdfbc211518e172dd1db"> 130</a></span>&#160; <span class="keyword">def </span><a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a508bb5475fa4fdfbc211518e172dd1db">__call__</a>(self, *args):</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; AuthServiceProxy.__id_count += 1</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; log.debug(<span class="stringliteral">&quot;-%s-&gt; %s %s&quot;</span>%(AuthServiceProxy.__id_count, self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a896dd13b5daaae87d825431e6a8b5a97">_service_name</a>,</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; json.dumps(args, default=EncodeDecimal, ensure_ascii=self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a5ae952dea6b0ccfa8f631f82aa0118d2">ensure_ascii</a>)))</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; postdata = json.dumps({<span class="stringliteral">&#39;version&#39;</span>: <span class="stringliteral">&#39;1.1&#39;</span>,</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="stringliteral">&#39;method&#39;</span>: self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a896dd13b5daaae87d825431e6a8b5a97">_service_name</a>,</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="stringliteral">&#39;params&#39;</span>: args,</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="stringliteral">&#39;id&#39;</span>: AuthServiceProxy.__id_count}, default=EncodeDecimal, ensure_ascii=self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a5ae952dea6b0ccfa8f631f82aa0118d2">ensure_ascii</a>)</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; response = self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a3e1fc865e67035bfe18e1de7c088df0e">_request</a>(<span class="stringliteral">&#39;POST&#39;</span>, self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a138f7e907e46a6b1587e7901374e5710">__url</a>.path, postdata.encode(<span class="stringliteral">&#39;utf-8&#39;</span>))</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keywordflow">if</span> response[<span class="stringliteral">&#39;error&#39;</span>] <span class="keywordflow">is</span> <span class="keywordflow">not</span> <span class="keywordtype">None</span>:</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keywordflow">raise</span> <a class="code" href="classtest__framework_1_1authproxy_1_1JSONRPCException.html">JSONRPCException</a>(response[<span class="stringliteral">&#39;error&#39;</span>])</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keywordflow">elif</span> <span class="stringliteral">&#39;result&#39;</span> <span class="keywordflow">not</span> <span class="keywordflow">in</span> response:</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keywordflow">raise</span> <a class="code" href="classtest__framework_1_1authproxy_1_1JSONRPCException.html">JSONRPCException</a>({</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="stringliteral">&#39;code&#39;</span>: -343, <span class="stringliteral">&#39;message&#39;</span>: <span class="stringliteral">&#39;missing JSON-RPC result&#39;</span>})</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordflow">else</span>:</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keywordflow">return</span> response[<span class="stringliteral">&#39;result&#39;</span>]</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a583dcb604f596cb3ed8da833c18b0e23"> 148</a></span>&#160; <span class="keyword">def </span><a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a583dcb604f596cb3ed8da833c18b0e23">_batch</a>(self, rpc_call_list):</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; postdata = json.dumps(list(rpc_call_list), default=EncodeDecimal, ensure_ascii=self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a5ae952dea6b0ccfa8f631f82aa0118d2">ensure_ascii</a>)</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; log.debug(<span class="stringliteral">&quot;--&gt; &quot;</span>+postdata)</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keywordflow">return</span> self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a3e1fc865e67035bfe18e1de7c088df0e">_request</a>(<span class="stringliteral">&#39;POST&#39;</span>, self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a138f7e907e46a6b1587e7901374e5710">__url</a>.path, postdata.encode(<span class="stringliteral">&#39;utf-8&#39;</span>))</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#aab41fd348c1a9360de2d9e125f47db5f"> 153</a></span>&#160; <span class="keyword">def </span><a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#aab41fd348c1a9360de2d9e125f47db5f">_get_response</a>(self):</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; http_response = self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a591c1b410484a57bde575dd8155f058a">__conn</a>.getresponse()</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keywordflow">if</span> http_response <span class="keywordflow">is</span> <span class="keywordtype">None</span>:</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keywordflow">raise</span> <a class="code" href="classtest__framework_1_1authproxy_1_1JSONRPCException.html">JSONRPCException</a>({</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <span class="stringliteral">&#39;code&#39;</span>: -342, <span class="stringliteral">&#39;message&#39;</span>: <span class="stringliteral">&#39;missing HTTP response from server&#39;</span>})</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; content_type = http_response.getheader(<span class="stringliteral">&#39;Content-Type&#39;</span>)</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keywordflow">if</span> content_type != <span class="stringliteral">&#39;application/json&#39;</span>:</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keywordflow">raise</span> <a class="code" href="classtest__framework_1_1authproxy_1_1JSONRPCException.html">JSONRPCException</a>({</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <span class="stringliteral">&#39;code&#39;</span>: -342, <span class="stringliteral">&#39;message&#39;</span>: <span class="stringliteral">&#39;non-JSON HTTP response with \&#39;%i %s\&#39; from server&#39;</span> % (http_response.status, http_response.reason)})</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; responsedata = http_response.read().decode(<span class="stringliteral">&#39;utf8&#39;</span>)</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; response = json.loads(responsedata, parse_float=decimal.Decimal)</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keywordflow">if</span> <span class="stringliteral">&quot;error&quot;</span> <span class="keywordflow">in</span> response <span class="keywordflow">and</span> response[<span class="stringliteral">&quot;error&quot;</span>] <span class="keywordflow">is</span> <span class="keywordtype">None</span>:</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; log.debug(<span class="stringliteral">&quot;&lt;-%s- %s&quot;</span>%(response[<span class="stringliteral">&quot;id&quot;</span>], json.dumps(response[<span class="stringliteral">&quot;result&quot;</span>], default=EncodeDecimal, ensure_ascii=self.<a class="code" href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a5ae952dea6b0ccfa8f631f82aa0118d2">ensure_ascii</a>)))</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="keywordflow">else</span>:</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; log.debug(<span class="stringliteral">&quot;&lt;-- &quot;</span>+responsedata)</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keywordflow">return</span> response</div><div class="ttc" id="classtest__framework_1_1authproxy_1_1AuthServiceProxy_html_a5e1aa87835e12c16c9a89d4ce9845b2a"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a5e1aa87835e12c16c9a89d4ce9845b2a">test_framework.authproxy.AuthServiceProxy.__auth_header</a></div><div class="ttdeci">__auth_header</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00090">authproxy.py:90</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1AuthServiceProxy_html_a138f7e907e46a6b1587e7901374e5710"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a138f7e907e46a6b1587e7901374e5710">test_framework.authproxy.AuthServiceProxy.__url</a></div><div class="ttdeci">__url</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00075">authproxy.py:75</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1AuthServiceProxy_html_a583dcb604f596cb3ed8da833c18b0e23"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a583dcb604f596cb3ed8da833c18b0e23">test_framework.authproxy.AuthServiceProxy._batch</a></div><div class="ttdeci">def _batch(self, rpc_call_list)</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00148">authproxy.py:148</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1AuthServiceProxy_html_a591c1b410484a57bde575dd8155f058a"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a591c1b410484a57bde575dd8155f058a">test_framework.authproxy.AuthServiceProxy.__conn</a></div><div class="ttdeci">__conn</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00094">authproxy.py:94</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1AuthServiceProxy_html"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html">test_framework.authproxy.AuthServiceProxy</a></div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00067">authproxy.py:67</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1JSONRPCException_html_a9153ba77896743308ea5880006d5b56d"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1JSONRPCException.html#a9153ba77896743308ea5880006d5b56d">test_framework.authproxy.JSONRPCException.error</a></div><div class="ttdeci">error</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00059">authproxy.py:59</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1JSONRPCException_html_a8162e739cd1549620c2bf628646a1c2b"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1JSONRPCException.html#a8162e739cd1549620c2bf628646a1c2b">test_framework.authproxy.JSONRPCException.__init__</a></div><div class="ttdeci">def __init__(self, rpc_error)</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00057">authproxy.py:57</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1AuthServiceProxy_html_a5ae952dea6b0ccfa8f631f82aa0118d2"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a5ae952dea6b0ccfa8f631f82aa0118d2">test_framework.authproxy.AuthServiceProxy.ensure_ascii</a></div><div class="ttdeci">ensure_ascii</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00074">authproxy.py:74</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1AuthServiceProxy_html_a896dd13b5daaae87d825431e6a8b5a97"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a896dd13b5daaae87d825431e6a8b5a97">test_framework.authproxy.AuthServiceProxy._service_name</a></div><div class="ttdeci">_service_name</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00073">authproxy.py:73</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1AuthServiceProxy_html_a508bb5475fa4fdfbc211518e172dd1db"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a508bb5475fa4fdfbc211518e172dd1db">test_framework.authproxy.AuthServiceProxy.__call__</a></div><div class="ttdeci">def __call__(self, args)</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00130">authproxy.py:130</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1AuthServiceProxy_html_a4a518c6f03598ccd648aa6206020e1bf"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a4a518c6f03598ccd648aa6206020e1bf">test_framework.authproxy.AuthServiceProxy.__init__</a></div><div class="ttdeci">def __init__(self, service_url, service_name=None, timeout=HTTP_TIMEOUT, connection=None, ensure_ascii=True)</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00071">authproxy.py:71</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1AuthServiceProxy_html_ae5a8d72d8e6e79b81f41e691d8eef98b"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#ae5a8d72d8e6e79b81f41e691d8eef98b">test_framework.authproxy.AuthServiceProxy.__service_url</a></div><div class="ttdeci">__service_url</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00072">authproxy.py:72</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1AuthServiceProxy_html_ac21d1b0a1c8295c9a7792a90681f0cfc"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#ac21d1b0a1c8295c9a7792a90681f0cfc">test_framework.authproxy.AuthServiceProxy.__getattr__</a></div><div class="ttdeci">def __getattr__(self, name)</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00102">authproxy.py:102</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1JSONRPCException_html"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1JSONRPCException.html">test_framework.authproxy.JSONRPCException</a></div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00056">authproxy.py:56</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1AuthServiceProxy_html_a3e1fc865e67035bfe18e1de7c088df0e"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#a3e1fc865e67035bfe18e1de7c088df0e">test_framework.authproxy.AuthServiceProxy._request</a></div><div class="ttdeci">def _request(self, method, path, postdata)</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00110">authproxy.py:110</a></div></div>
<div class="ttc" id="classtest__framework_1_1authproxy_1_1AuthServiceProxy_html_aab41fd348c1a9360de2d9e125f47db5f"><div class="ttname"><a href="classtest__framework_1_1authproxy_1_1AuthServiceProxy.html#aab41fd348c1a9360de2d9e125f47db5f">test_framework.authproxy.AuthServiceProxy._get_response</a></div><div class="ttdeci">def _get_response(self)</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00153">authproxy.py:153</a></div></div>
<div class="ttc" id="namespacetest__framework_1_1authproxy_html_a5f8738b9fe6be52e227eaaa4ffabaac6"><div class="ttname"><a href="namespacetest__framework_1_1authproxy.html#a5f8738b9fe6be52e227eaaa4ffabaac6">test_framework.authproxy.EncodeDecimal</a></div><div class="ttdeci">def EncodeDecimal(o)</div><div class="ttdef"><b>Definition:</b> <a href="authproxy_8py_source.html#l00062">authproxy.py:62</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_62ba24d7ce8eecc59962fe5b590c1065.html">qa</a></li><li class="navelem"><a class="el" href="dir_dbddb259b29a77ea11562b7a380aa303.html">rpc-tests</a></li><li class="navelem"><a class="el" href="dir_0f1fd91d0d18a547184c924770390b91.html">test_framework</a></li><li class="navelem"><a class="el" href="authproxy_8py.html">authproxy.py</a></li>
<li class="footer">Generated on Thu Dec 14 2017 13:15:02 for Dash Core by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
</ul>
</div>
</body>
</html>