Ticket #1298: Exception.html

File Exception.html, 20.1 KB (added by zooko, at 2011-01-09T21:58:13Z)
Line 
1<html><head><title>Exception</title></head><body><style type="text/css">
2p.error {
3  color: black;
4  font-family: Verdana, Arial, helvetica, sans-serif;
5  font-weight: bold;
6  font-size: large;
7  margin: 0.25em;
8}
9
10div {
11  font-family: Verdana, Arial, helvetica, sans-serif;
12}
13
14strong.variableClass {
15  font-size: small;
16}
17
18div.stackTrace {
19}
20
21div.frame {
22  padding: 0.25em;
23  background: white;
24  border-bottom: thin black dotted;
25}
26
27div.firstFrame {
28  padding: 0.25em;
29  background: white;
30  border-top: thin black dotted;
31  border-bottom: thin black dotted;
32}
33
34div.location {
35    font-size: small;
36}
37
38div.snippet {
39  background: #FFFFDD;
40  padding: 0.25em;
41}
42
43div.snippetHighlightLine {
44  color: red;
45}
46
47span.lineno {
48    font-size: small;
49}
50
51pre.code {
52  margin: 0px;
53  padding: 0px;
54  display: inline;
55  font-size: small;
56  font-family: "Courier New", courier, monotype;
57}
58
59span.function {
60  font-weight: bold;
61  font-family: "Courier New", courier, monotype;
62}
63
64table.variables {
65  border-collapse: collapse;
66  width: 100%;
67}
68
69td.varName {
70  width: 1in;
71  vertical-align: top;
72  font-style: italic;
73  font-size: small;
74  padding-right: 0.25em;
75}
76
77td.varValue {
78  padding-left: 0.25em;
79  padding-right: 0.25em;
80  font-size: small;
81}
82
83div.variables {
84  margin-top: 0.5em;
85}
86
87div.dict {
88  background: #cccc99;
89  padding: 2px;
90  float: left;
91}
92
93td.dictKey {
94  background: #ffff99;
95  font-weight: bold;
96}
97
98td.dictValue {
99  background: #ffff99;
100}
101
102div.list {
103  background: #7777cc;
104  padding: 2px;
105  float: left;
106}
107
108div.listItem {
109  background: #9999ff;
110}
111
112div.instance {
113  width: 100%;
114  background: #efefef;
115  padding: 2px;
116  float: left;
117}
118
119span.instanceName {
120  font-size: small;
121  display: block;
122}
123
124span.instanceRepr {
125  font-family: "Courier New", courier, monotype;
126}
127
128div.function {
129  background: orange;
130  font-weight: bold;
131  float: left;
132}
133</style><a href="#tracebackEnd"><p class="error">&lt;type 'exceptions.UnicodeEncodeError'&gt;: 'ascii' codec can't encode character u'\u03b1' in position 34: ordinal not in range(128)</p></a><div class="stackTrace"><div class="firstFrame"><div class="location">/usr/lib/python2.6/dist-packages/nevow/flat/twist.py, line 24 in <span class="function">_drive</span></div><div class="snippet"><div class="snippetLine"><span class="lineno">22</span><pre class="code">    """
134</pre></div><div class="snippetLine"><span class="lineno">23</span><pre class="code">    try:
135</pre></div><div class="snippetHighlightLine"><span class="lineno">24</span><pre class="code">        next = iterable.next()
136</pre></div><div class="snippetLine"><span class="lineno">25</span><pre class="code">    except StopIteration:
137</pre></div></div><div class="variables"><strong class="variableClass">Locals</strong></div><table class="variables"><tr class="varRow"><td class="varName">iterable</td><td class="varValue">&lt;generator object iterflatten at 0xa8abfcc&gt;</td></tr></table></div><div class="frame"><div class="location">/usr/lib/python2.6/dist-packages/nevow/flat/ten.py, line 83 in <span class="function">iterflatten</span></div><div class="snippet"><div class="snippetLine"><span class="lineno">81</span><pre class="code">    while rest:
138</pre></div><div class="snippetLine"><span class="lineno">82</span><pre class="code">        gen = rest.pop()
139</pre></div><div class="snippetHighlightLine"><span class="lineno">83</span><pre class="code">        for item in gen:
140</pre></div><div class="snippetLine"><span class="lineno">84</span><pre class="code">            if isinstance(item, str):
141</pre></div></div><div class="variables"><strong class="variableClass">Locals</strong></div><table class="variables"><tr class="varRow"><td class="varName">rest</td><td class="varValue">[&lt;listiterator object at 0xa755c6c&gt;, &lt;generator object ListSerializer at 0xa8abeb4&gt;]</td></tr><tr class="varRow"><td class="varName">item</td><td class="varValue">&lt;generator object TagSerializer at 0xa8e266c&gt;</td></tr><tr class="varRow"><td class="varName">gen</td><td class="varValue">&lt;generator object TagSerializer at 0xa8e266c&gt;</td></tr></table></div><div class="frame"><div class="location">/usr/lib/python2.6/dist-packages/nevow/flat/flatstan.py, line 103 in <span class="function">TagSerializer</span></div><div class="snippet"><div class="snippetLine"><span class="lineno">101</span><pre class="code">        # the specials won't be on the context twice.
142</pre></div><div class="snippetLine"><span class="lineno">102</span><pre class="code">        original._clearSpecials()
143</pre></div><div class="snippetHighlightLine"><span class="lineno">103</span><pre class="code">        yield serialize(toBeRenderedBy, context)
144</pre></div><div class="snippetLine"><span class="lineno">104</span><pre class="code">        return
145</pre></div></div><div class="variables"><strong class="variableClass">Locals</strong></div><table class="variables"><tr class="varRow"><td class="varName">context</td><td class="varValue">WovenContext(tag=Tag(u'td', attributes={u'class': u'nickname mine'}), remembrances={'nevow.inevow.IData': u'Zooko\'s ec2 micro instance named "\u03b12"'})</td></tr><tr class="varRow"><td class="varName">toBeRenderedBy</td><td class="varValue">directive('string')</td></tr><tr class="varRow"><td class="varName">original</td><td class="varValue">Tag(u'td', attributes={u'class': u'nickname mine'})</td></tr></table><div class="variables"><strong class="variableClass">Globals</strong></div><table class="variables"><tr class="varRow"><td class="varName">serialize</td><td class="varValue">&lt;function serialize at 0x9d6f454&gt;</td></tr></table></div><div class="frame"><div class="location">/usr/lib/python2.6/dist-packages/nevow/flat/ten.py, line 70 in <span class="function">serialize</span></div><div class="snippet"><div class="snippetLine"><span class="lineno">68</span><pre class="code">def serialize(obj, context):
146</pre></div><div class="snippetLine"><span class="lineno">69</span><pre class="code">    #warnings.warn('serialize is deprecated; it has been renamed partialflatten.', stacklevel=2)
147</pre></div><div class="snippetHighlightLine"><span class="lineno">70</span><pre class="code">    return partialflatten(context, obj)
148</pre></div><div class="snippetLine"><span class="lineno">71</span><pre class="code">
149</pre></div></div><div class="variables"><strong class="variableClass">Locals</strong></div><table class="variables"><tr class="varRow"><td class="varName">obj</td><td class="varValue">directive('string')</td></tr><tr class="varRow"><td class="varName">context</td><td class="varValue">WovenContext(tag=Tag(u'td', attributes={u'class': u'nickname mine'}), remembrances={'nevow.inevow.IData': u'Zooko\'s ec2 micro instance named "\u03b12"'})</td></tr></table><div class="variables"><strong class="variableClass">Globals</strong></div><table class="variables"><tr class="varRow"><td class="varName">serialize</td><td class="varValue">&lt;function serialize at 0x9d6f454&gt;</td></tr><tr class="varRow"><td class="varName">partialflatten</td><td class="varValue">&lt;function partialflatten at 0x9d6f41c&gt;</td></tr><tr class="varRow"><td class="varName">warnings</td><td class="varValue">&lt;module 'warnings' from '/usr/lib/python2.6/warnings.pyc'&gt;</td></tr></table></div><div class="frame"><div class="location">/usr/lib/python2.6/dist-packages/nevow/flat/ten.py, line 61 in <span class="function">partialflatten</span></div><div class="snippet"><div class="snippetLine"><span class="lineno">59</span><pre class="code">    flattener = getFlattener(obj)
150</pre></div><div class="snippetLine"><span class="lineno">60</span><pre class="code">    if flattener is not None:
151</pre></div><div class="snippetHighlightLine"><span class="lineno">61</span><pre class="code">        return flattener(obj, context)
152</pre></div><div class="snippetLine"><span class="lineno">62</span><pre class="code">
153</pre></div></div><div class="variables"><strong class="variableClass">Locals</strong></div><table class="variables"><tr class="varRow"><td class="varName">flattener</td><td class="varValue">&lt;function DirectiveSerializer at 0xa20afb4&gt;</td></tr><tr class="varRow"><td class="varName">obj</td><td class="varValue">directive('string')</td></tr><tr class="varRow"><td class="varName">context</td><td class="varValue">WovenContext(tag=Tag(u'td', attributes={u'class': u'nickname mine'}), remembrances={'nevow.inevow.IData': u'Zooko\'s ec2 micro instance named "\u03b12"'})</td></tr></table><div class="variables"><strong class="variableClass">Globals</strong></div><table class="variables"><tr class="varRow"><td class="varName">getFlattener</td><td class="varValue">&lt;function getFlattener at 0x9d6f3ac&gt;</td></tr></table></div><div class="frame"><div class="location">/usr/lib/python2.6/dist-packages/nevow/flat/flatstan.py, line 264 in <span class="function">DirectiveSerializer</span></div><div class="snippet"><div class="snippetLine"><span class="lineno">262</span><pre class="code">    rendererFactory = context.locate(IRendererFactory)
154</pre></div><div class="snippetLine"><span class="lineno">263</span><pre class="code">    renderer = rendererFactory.renderer(context, original.name)
155</pre></div><div class="snippetHighlightLine"><span class="lineno">264</span><pre class="code">    return serialize(renderer, context)
156</pre></div><div class="snippetLine"><span class="lineno">265</span><pre class="code">
157</pre></div></div><div class="variables"><strong class="variableClass">Locals</strong></div><table class="variables"><tr class="varRow"><td class="varName">rendererFactory</td><td class="varValue">&lt;allmydata.web.root.Root object at 0xa69b0ec&gt;</td></tr><tr class="varRow"><td class="varName">renderer</td><td class="varValue">&lt;bound method Root.&lt;lambda&gt; of &lt;allmydata.web.root.Root object at 0xa69b0ec&gt;&gt;</td></tr><tr class="varRow"><td class="varName">context</td><td class="varValue">WovenContext(tag=Tag(u'td', attributes={u'class': u'nickname mine'}), remembrances={'nevow.inevow.IData': u'Zooko\'s ec2 micro instance named "\u03b12"'})</td></tr><tr class="varRow"><td class="varName">original</td><td class="varValue">directive('string')</td></tr></table><div class="variables"><strong class="variableClass">Globals</strong></div><table class="variables"><tr class="varRow"><td class="varName">serialize</td><td class="varValue">&lt;function serialize at 0x9d6f454&gt;</td></tr><tr class="varRow"><td class="varName">IRendererFactory</td><td class="varValue">&lt;InterfaceClass nevow.inevow.IRendererFactory&gt;</td></tr></table></div><div class="frame"><div class="location">/usr/lib/python2.6/dist-packages/nevow/flat/ten.py, line 70 in <span class="function">serialize</span></div><div class="snippet"><div class="snippetLine"><span class="lineno">68</span><pre class="code">def serialize(obj, context):
158</pre></div><div class="snippetLine"><span class="lineno">69</span><pre class="code">    #warnings.warn('serialize is deprecated; it has been renamed partialflatten.', stacklevel=2)
159</pre></div><div class="snippetHighlightLine"><span class="lineno">70</span><pre class="code">    return partialflatten(context, obj)
160</pre></div><div class="snippetLine"><span class="lineno">71</span><pre class="code">
161</pre></div></div><div class="variables"><strong class="variableClass">Locals</strong></div><table class="variables"><tr class="varRow"><td class="varName">obj</td><td class="varValue">&lt;bound method Root.&lt;lambda&gt; of &lt;allmydata.web.root.Root object at 0xa69b0ec&gt;&gt;</td></tr><tr class="varRow"><td class="varName">context</td><td class="varValue">WovenContext(tag=Tag(u'td', attributes={u'class': u'nickname mine'}), remembrances={'nevow.inevow.IData': u'Zooko\'s ec2 micro instance named "\u03b12"'})</td></tr></table><div class="variables"><strong class="variableClass">Globals</strong></div><table class="variables"><tr class="varRow"><td class="varName">serialize</td><td class="varValue">&lt;function serialize at 0x9d6f454&gt;</td></tr><tr class="varRow"><td class="varName">partialflatten</td><td class="varValue">&lt;function partialflatten at 0x9d6f41c&gt;</td></tr><tr class="varRow"><td class="varName">warnings</td><td class="varValue">&lt;module 'warnings' from '/usr/lib/python2.6/warnings.pyc'&gt;</td></tr></table></div><div class="frame"><div class="location">/usr/lib/python2.6/dist-packages/nevow/flat/ten.py, line 61 in <span class="function">partialflatten</span></div><div class="snippet"><div class="snippetLine"><span class="lineno">59</span><pre class="code">    flattener = getFlattener(obj)
162</pre></div><div class="snippetLine"><span class="lineno">60</span><pre class="code">    if flattener is not None:
163</pre></div><div class="snippetHighlightLine"><span class="lineno">61</span><pre class="code">        return flattener(obj, context)
164</pre></div><div class="snippetLine"><span class="lineno">62</span><pre class="code">
165</pre></div></div><div class="variables"><strong class="variableClass">Locals</strong></div><table class="variables"><tr class="varRow"><td class="varName">flattener</td><td class="varValue">&lt;function MethodSerializer at 0xa20af44&gt;</td></tr><tr class="varRow"><td class="varName">obj</td><td class="varValue">&lt;bound method Root.&lt;lambda&gt; of &lt;allmydata.web.root.Root object at 0xa69b0ec&gt;&gt;</td></tr><tr class="varRow"><td class="varName">context</td><td class="varValue">WovenContext(tag=Tag(u'td', attributes={u'class': u'nickname mine'}), remembrances={'nevow.inevow.IData': u'Zooko\'s ec2 micro instance named "\u03b12"'})</td></tr></table><div class="variables"><strong class="variableClass">Globals</strong></div><table class="variables"><tr class="varRow"><td class="varName">getFlattener</td><td class="varValue">&lt;function getFlattener at 0x9d6f3ac&gt;</td></tr></table></div><div class="frame"><div class="location">/usr/lib/python2.6/dist-packages/nevow/flat/flatstan.py, line 247 in <span class="function">MethodSerializer</span></div><div class="snippet"><div class="snippetLine"><span class="lineno">245</span><pre class="code">        code = getattr(func, 'func_code', None)
166</pre></div><div class="snippetLine"><span class="lineno">246</span><pre class="code">        return code is None or code.co_argcount == 2
167</pre></div><div class="snippetHighlightLine"><span class="lineno">247</span><pre class="code">    return FunctionSerializer(original, context, nocontext)
168</pre></div><div class="snippetLine"><span class="lineno">248</span><pre class="code">
169</pre></div></div><div class="variables"><strong class="variableClass">Locals</strong></div><table class="variables"><tr class="varRow"><td class="varName">nocontext</td><td class="varValue">&lt;function nocontext at 0xac508b4&gt;</td></tr><tr class="varRow"><td class="varName">original</td><td class="varValue">&lt;bound method Root.&lt;lambda&gt; of &lt;allmydata.web.root.Root object at 0xa69b0ec&gt;&gt;</td></tr><tr class="varRow"><td class="varName">context</td><td class="varValue">WovenContext(tag=Tag(u'td', attributes={u'class': u'nickname mine'}), remembrances={'nevow.inevow.IData': u'Zooko\'s ec2 micro instance named "\u03b12"'})</td></tr></table><div class="variables"><strong class="variableClass">Globals</strong></div><table class="variables"><tr class="varRow"><td class="varName">FunctionSerializer</td><td class="varValue">&lt;function FunctionSerializer at 0xa20af0c&gt;</td></tr></table></div><div class="frame"><div class="location">/usr/lib/python2.6/dist-packages/nevow/flat/flatstan.py, line 236 in <span class="function">FunctionSerializer</span></div><div class="snippet"><div class="snippetLine"><span class="lineno">234</span><pre class="code">                    result = original(renderer, context, data)
170</pre></div><div class="snippetLine"><span class="lineno">235</span><pre class="code">                else:
171</pre></div><div class="snippetHighlightLine"><span class="lineno">236</span><pre class="code">                    result = original(context, data)
172</pre></div><div class="snippetLine"><span class="lineno">237</span><pre class="code">        except StopIteration:
173</pre></div></div><div class="variables"><strong class="variableClass">Locals</strong></div><table class="variables"><tr class="varRow"><td class="varName">data</td><td class="varValue">u'Zooko\'s ec2 micro instance named "\u03b12"'</td></tr><tr class="varRow"><td class="varName">context</td><td class="varValue">WovenContext(tag=Tag(u'td', attributes={u'class': u'nickname mine'}), remembrances={'nevow.inevow.IData': u'Zooko\'s ec2 micro instance named "\u03b12"'})</td></tr><tr class="varRow"><td class="varName">original</td><td class="varValue">&lt;bound method Root.&lt;lambda&gt; of &lt;allmydata.web.root.Root object at 0xa69b0ec&gt;&gt;</td></tr></table></div><div class="frame"><div class="location">/usr/lib/python2.6/dist-packages/nevow/rend.py, line 86 in <span class="function">&lt;lambda&gt;</span></div><div class="snippet"><div class="snippetLine"><span class="lineno">84</span><pre class="code">    render_sequence = lambda self, context, data: sequence(context, data)
174</pre></div><div class="snippetLine"><span class="lineno">85</span><pre class="code">    render_mapping = lambda self, context, data: mapping(context, data)
175</pre></div><div class="snippetHighlightLine"><span class="lineno">86</span><pre class="code">    render_string = lambda self, context, data: string(context, data)
176</pre></div><div class="snippetLine"><span class="lineno">87</span><pre class="code">    render_xml = lambda self, context, data: context.tag.clear()[tags.xml(data)]
177</pre></div></div><div class="variables"><strong class="variableClass">Locals</strong></div><table class="variables"><tr class="varRow"><td class="varName">self</td><td class="varValue">&lt;allmydata.web.root.Root object at 0xa69b0ec&gt;</td></tr><tr class="varRow"><td class="varName">data</td><td class="varValue">u'Zooko\'s ec2 micro instance named "\u03b12"'</td></tr><tr class="varRow"><td class="varName">context</td><td class="varValue">WovenContext(tag=Tag(u'td', attributes={u'class': u'nickname mine'}), remembrances={'nevow.inevow.IData': u'Zooko\'s ec2 micro instance named "\u03b12"'})</td></tr></table><div class="variables"><strong class="variableClass">Globals</strong></div><table class="variables"><tr class="varRow"><td class="varName">sequence</td><td class="varValue">&lt;function sequence at 0xa0d917c&gt;</td></tr><tr class="varRow"><td class="varName">string</td><td class="varValue">&lt;function string at 0xa0d95a4&gt;</td></tr><tr class="varRow"><td class="varName">tags</td><td class="varValue">&lt;module 'nevow.tags' from '/usr/lib/python2.6/dist-packages/nevow/tags.pyc'&gt;</td></tr><tr class="varRow"><td class="varName">mapping</td><td class="varValue">&lt;function mapping at 0xa0d956c&gt;</td></tr><tr class="varRow"><td class="varName">data</td><td class="varValue">&lt;function data at 0xa0d95dc&gt;</td></tr></table></div><div class="frame"><div class="location">/usr/lib/python2.6/dist-packages/nevow/rend.py, line 777 in <span class="function">string</span></div><div class="snippet"><div class="snippetLine"><span class="lineno">775</span><pre class="code">
178</pre></div><div class="snippetLine"><span class="lineno">776</span><pre class="code">def string(context, data):
179</pre></div><div class="snippetHighlightLine"><span class="lineno">777</span><pre class="code">    return context.tag.clear()[str(data)]
180</pre></div><div class="snippetLine"><span class="lineno">778</span><pre class="code">
181</pre></div></div><div class="variables"><strong class="variableClass">Locals</strong></div><table class="variables"><tr class="varRow"><td class="varName">data</td><td class="varValue">u'Zooko\'s ec2 micro instance named "\u03b12"'</td></tr><tr class="varRow"><td class="varName">context</td><td class="varValue">WovenContext(tag=Tag(u'td', attributes={u'class': u'nickname mine'}), remembrances={'nevow.inevow.IData': u'Zooko\'s ec2 micro instance named "\u03b12"'})</td></tr></table><div class="variables"><strong class="variableClass">Globals</strong></div><table class="variables"><tr class="varRow"><td class="varName">string</td><td class="varValue">&lt;function string at 0xa0d95a4&gt;</td></tr><tr class="varRow"><td class="varName">data</td><td class="varValue">&lt;function data at 0xa0d95dc&gt;</td></tr></table></div></div><a name="tracebackEnd"><p class="error">&lt;type 'exceptions.UnicodeEncodeError'&gt;: 'ascii' codec can't encode character u'\u03b1' in position 34: ordinal not in range(128)</p></a></body></html>