Ticket #16100: sentry_traceback.html

File sentry_traceback.html, 164.5 KB (added by geber@…, 13 years ago)

Sentry Traceback including all Local Vars and the entire environment.

Line 
1<html>
2<head>
3</head>
4<body>
5 <h2>Traceback</h2>
6
7
8<div id="summary">
9 <h3>TypeError: float() argument must be a string or a number</h3>
10 <table class="meta">
11 <tr>
12 <th>Request Method:</th>
13 <td>GET</td>
14 </tr>
15
16 <tr>
17 <th>Request URL:</th>
18 <td><a href="http://www.mytrafficdata.com/admin/imports/webimport/">http://www.mytrafficdata.com/admin/imports/webimport/</a></td>
19 </tr>
20
21 <tr>
22 <th>Exception Value:</th>
23 <td><pre>float() argument must be a string or a number</pre></td>
24 </tr>
25
26 <tr>
27 <th>Exception Location:</th>
28 <td>/home/dcollectpy/htdocs/prod/lib/django/db/models/sql/query.py in resolve_aggregate, line 319</td>
29 </tr>
30
31 </table>
32</div>
33
34
35<div id="traceback">
36 <h2>Traceback <span class="commands"><a href="#" onclick="return switchPastebinFriendly(this);">Switch to copy-and-paste view</a></span></h2>
37
38 <div id="browserTraceback">
39 <ul class="traceback">
40
41 <li class="frame">
42 <code>/home/dcollectpy/htdocs/prod/lib/django/core/handlers/base.py</code> in <code>get_response</code>
43
44
45 <div class="context" id="c175901872">
46
47 <ol start="104" class="pre-context" id="pre175901872"><li onclick="toggle('pre175901872', 'post175901872')"> for middleware_method in self._view_middleware:</li><li onclick="toggle('pre175901872', 'post175901872')"> response = middleware_method(request, callback, callback_args, callback_kwargs)</li><li onclick="toggle('pre175901872', 'post175901872')"> if response:</li><li onclick="toggle('pre175901872', 'post175901872')"> break</li><li onclick="toggle('pre175901872', 'post175901872')"></li><li onclick="toggle('pre175901872', 'post175901872')"> if response is None:</li><li onclick="toggle('pre175901872', 'post175901872')"> try:</li></ol>
48
49 <ol start="111" class="context-line"><li onclick="toggle('pre175901872', 'post175901872')"> response = callback(request, *callback_args, **callback_kwargs) <span>...</span></li></ol>
50
51 <ol start='112' class="post-context" id="post175901872"><li onclick="toggle('pre175901872', 'post175901872')"> except Exception, e:</li><li onclick="toggle('pre175901872', 'post175901872')"> # If the view raised an exception, run it through exception</li><li onclick="toggle('pre175901872', 'post175901872')"> # middleware, and if the exception middleware returns a</li><li onclick="toggle('pre175901872', 'post175901872')"> # response, use that. Otherwise, reraise the exception.</li><li onclick="toggle('pre175901872', 'post175901872')"> for middleware_method in self._exception_middleware:</li><li onclick="toggle('pre175901872', 'post175901872')"> response = middleware_method(request, e)</li></ol>
52
53 </div>
54
55
56
57 <div class="commands">
58 <a href="#" onclick="return varToggle(this, '175901872')"><span>&#x25b6;</span> Local vars</a>
59 </div>
60 <table class="vars" id="v175901872">
61 <thead>
62 <tr>
63 <th>Variable</th>
64 <th>Value</th>
65 </tr>
66 </thead>
67 <tbody>
68
69 <tr>
70 <td>exceptions</td>
71 <td class="code"><pre>u&quot;&lt;module &#39;django.core.exceptions&#39; from &#39;/home/dcollectpy/htdocs/prod/lib/django/core/exceptions.pyc&#39;&gt;&quot;</pre></td>
72 </tr>
73
74 <tr>
75 <td>e</td>
76 <td class="code"><pre>u&#39;float() argument must be a string or a number&#39;</pre></td>
77 </tr>
78
79 <tr>
80 <td>callback_args</td>
81 <td class="code"><pre>[]</pre></td>
82 </tr>
83
84 <tr>
85 <td>settings</td>
86 <td class="code"><pre>u&#39;&lt;django.conf.LazySettings object at 0xb3fa10&gt;&#39;</pre></td>
87 </tr>
88
89 <tr>
90 <td>middleware_method</td>
91 <td class="code"><pre>u&#39;&lt;bound method TransactionMiddleware.process_exception of &lt;django.middleware.transaction.TransactionMiddleware object at 0x113d550&gt;&gt;&#39;</pre></td>
92 </tr>
93
94 <tr>
95 <td>self</td>
96 <td class="code"><pre>u&#39;&lt;django.core.handlers.wsgi.WSGIHandler object at 0xe12810&gt;&#39;</pre></td>
97 </tr>
98
99 <tr>
100 <td>receivers</td>
101 <td class="code"><pre>[[u&#39;&lt;function _rollback_on_exception at 0xf70578&gt;&#39;, None],
102 [u&#39;&lt;function sentry_exception_handler at 0x1139d70&gt;&#39;, None]]</pre></td>
103 </tr>
104
105 <tr>
106 <td>request</td>
107 <td class="code"><pre>u&quot;&lt;WSGIRequest\nGET:&lt;QueryDict: {}&gt;,\nPOST:&lt;QueryDict: {}&gt;,\nCOOKIES:{&#39;csrftoken&#39;: &#39;f499601909593a52f3b5234e99ef6c7d&#39;,\n &#39;sessionid&#39;: &#39;ac24b53bfd982916457e5efdcc06f137&#39;},\nMETA:{&#39;CSRF_COOKIE&#39;: &#39;f499601909593...&quot;</pre></td>
108 </tr>
109
110 <tr>
111 <td>callback</td>
112 <td class="code"><pre>u&#39;&lt;function changelist_view at 0x3463500&gt;&#39;</pre></td>
113 </tr>
114
115 <tr>
116 <td>resolver</td>
117 <td class="code"><pre>u&#39;&lt;RegexURLResolver urls (None:None) ^/&gt;&#39;</pre></td>
118 </tr>
119
120 <tr>
121 <td>urlresolvers</td>
122 <td class="code"><pre>u&quot;&lt;module &#39;django.core.urlresolvers&#39; from &#39;/home/dcollectpy/htdocs/prod/lib/django/core/urlresolvers.pyc&#39;&gt;&quot;</pre></td>
123 </tr>
124
125 <tr>
126 <td>callback_kwargs</td>
127 <td class="code"><pre>{}</pre></td>
128 </tr>
129
130 <tr>
131 <td>response</td>
132 <td class="code"><pre>None</pre></td>
133 </tr>
134
135 <tr>
136 <td>urlconf</td>
137 <td class="code"><pre>&#39;urls&#39;</pre></td>
138 </tr>
139
140 </tbody>
141 </table>
142
143 </li>
144
145 <li class="frame">
146 <code>/home/dcollectpy/htdocs/prod/lib/django/contrib/admin/options.py</code> in <code>wrapper</code>
147
148
149 <div class="context" id="c175899064">
150
151 <ol start="300" class="pre-context" id="pre175899064"><li onclick="toggle('pre175899064', 'post175899064')"> super(ModelAdmin, self).__init__()</li><li onclick="toggle('pre175899064', 'post175899064')"></li><li onclick="toggle('pre175899064', 'post175899064')"> def get_urls(self):</li><li onclick="toggle('pre175899064', 'post175899064')"> from django.conf.urls.defaults import patterns, url</li><li onclick="toggle('pre175899064', 'post175899064')"></li><li onclick="toggle('pre175899064', 'post175899064')"> def wrap(view):</li><li onclick="toggle('pre175899064', 'post175899064')"> def wrapper(*args, **kwargs):</li></ol>
152
153 <ol start="307" class="context-line"><li onclick="toggle('pre175899064', 'post175899064')"> return self.admin_site.admin_view(view)(*args, **kwargs) <span>...</span></li></ol>
154
155 <ol start='308' class="post-context" id="post175899064"><li onclick="toggle('pre175899064', 'post175899064')"> return update_wrapper(wrapper, view)</li><li onclick="toggle('pre175899064', 'post175899064')"></li><li onclick="toggle('pre175899064', 'post175899064')"> info = self.model._meta.app_label, self.model._meta.module_name</li><li onclick="toggle('pre175899064', 'post175899064')"></li><li onclick="toggle('pre175899064', 'post175899064')"> urlpatterns = patterns(&#39;&#39;,</li><li onclick="toggle('pre175899064', 'post175899064')"> url(r&#39;^$&#39;,</li></ol>
156
157 </div>
158
159
160
161 <div class="commands">
162 <a href="#" onclick="return varToggle(this, '175899064')"><span>&#x25b6;</span> Local vars</a>
163 </div>
164 <table class="vars" id="v175899064">
165 <thead>
166 <tr>
167 <th>Variable</th>
168 <th>Value</th>
169 </tr>
170 </thead>
171 <tbody>
172
173 <tr>
174 <td>self</td>
175 <td class="code"><pre>u&#39;&lt;datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0&gt;&#39;</pre></td>
176 </tr>
177
178 <tr>
179 <td>args</td>
180 <td class="code"><pre>[u&quot;&lt;WSGIRequest\nGET:&lt;QueryDict: {}&gt;,\nPOST:&lt;QueryDict: {}&gt;,\nCOOKIES:{&#39;csrftoken&#39;: &#39;f499601909593a52f3b5234e99ef6c7d&#39;,\n &#39;sessionid&#39;: &#39;ac24b53bfd982916457e5efdcc06f137&#39;},\nMETA:{&#39;CSRF_COOKIE&#39;: &#39;f499601909593...&quot;]</pre></td>
181 </tr>
182
183 <tr>
184 <td>view</td>
185 <td class="code"><pre>u&#39;&lt;bound method WebImportAdmin.changelist_view of &lt;datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0&gt;&gt;&#39;</pre></td>
186 </tr>
187
188 <tr>
189 <td>kwargs</td>
190 <td class="code"><pre>{}</pre></td>
191 </tr>
192
193 </tbody>
194 </table>
195
196 </li>
197
198 <li class="frame">
199 <code>/home/dcollectpy/htdocs/prod/lib/django/utils/decorators.py</code> in <code>_wrapped_view</code>
200
201
202 <div class="context" id="c175899928">
203
204 <ol start="86" class="pre-context" id="pre175899928"><li onclick="toggle('pre175899928', 'post175899928')"> if result is not None:</li><li onclick="toggle('pre175899928', 'post175899928')"> return result</li><li onclick="toggle('pre175899928', 'post175899928')"> if hasattr(middleware, &#39;process_view&#39;):</li><li onclick="toggle('pre175899928', 'post175899928')"> result = middleware.process_view(request, view_func, args, kwargs)</li><li onclick="toggle('pre175899928', 'post175899928')"> if result is not None:</li><li onclick="toggle('pre175899928', 'post175899928')"> return result</li><li onclick="toggle('pre175899928', 'post175899928')"> try:</li></ol>
205
206 <ol start="93" class="context-line"><li onclick="toggle('pre175899928', 'post175899928')"> response = view_func(request, *args, **kwargs) <span>...</span></li></ol>
207
208 <ol start='94' class="post-context" id="post175899928"><li onclick="toggle('pre175899928', 'post175899928')"> except Exception, e:</li><li onclick="toggle('pre175899928', 'post175899928')"> if hasattr(middleware, &#39;process_exception&#39;):</li><li onclick="toggle('pre175899928', 'post175899928')"> result = middleware.process_exception(request, e)</li><li onclick="toggle('pre175899928', 'post175899928')"> if result is not None:</li><li onclick="toggle('pre175899928', 'post175899928')"> return result</li><li onclick="toggle('pre175899928', 'post175899928')"> raise</li></ol>
209
210 </div>
211
212
213
214 <div class="commands">
215 <a href="#" onclick="return varToggle(this, '175899928')"><span>&#x25b6;</span> Local vars</a>
216 </div>
217 <table class="vars" id="v175899928">
218 <thead>
219 <tr>
220 <th>Variable</th>
221 <th>Value</th>
222 </tr>
223 </thead>
224 <tbody>
225
226 <tr>
227 <td>e</td>
228 <td class="code"><pre>u&#39;float() argument must be a string or a number&#39;</pre></td>
229 </tr>
230
231 <tr>
232 <td>middleware</td>
233 <td class="code"><pre>u&#39;&lt;django.middleware.csrf.CsrfViewMiddleware object at 0x13c9ed0&gt;&#39;</pre></td>
234 </tr>
235
236 <tr>
237 <td>args</td>
238 <td class="code"><pre>[]</pre></td>
239 </tr>
240
241 <tr>
242 <td>request</td>
243 <td class="code"><pre>u&quot;&lt;WSGIRequest\nGET:&lt;QueryDict: {}&gt;,\nPOST:&lt;QueryDict: {}&gt;,\nCOOKIES:{&#39;csrftoken&#39;: &#39;f499601909593a52f3b5234e99ef6c7d&#39;,\n &#39;sessionid&#39;: &#39;ac24b53bfd982916457e5efdcc06f137&#39;},\nMETA:{&#39;CSRF_COOKIE&#39;: &#39;f499601909593...&quot;</pre></td>
244 </tr>
245
246 <tr>
247 <td>result</td>
248 <td class="code"><pre>None</pre></td>
249 </tr>
250
251 <tr>
252 <td>kwargs</td>
253 <td class="code"><pre>{}</pre></td>
254 </tr>
255
256 <tr>
257 <td>view_func</td>
258 <td class="code"><pre>u&#39;&lt;function inner at 0xb7e0410&gt;&#39;</pre></td>
259 </tr>
260
261 </tbody>
262 </table>
263
264 </li>
265
266 <li class="frame">
267 <code>/home/dcollectpy/htdocs/prod/lib/django/views/decorators/cache.py</code> in <code>_wrapped_view_func</code>
268
269
270 <div class="context" id="c175901440">
271
272 <ol start="72" class="pre-context" id="pre175901440"><li onclick="toggle('pre175901440', 'post175901440')"></li><li onclick="toggle('pre175901440', 'post175901440')">def never_cache(view_func):</li><li onclick="toggle('pre175901440', 'post175901440')"> &quot;&quot;&quot;</li><li onclick="toggle('pre175901440', 'post175901440')"> Decorator that adds headers to a response so that it will</li><li onclick="toggle('pre175901440', 'post175901440')"> never be cached.</li><li onclick="toggle('pre175901440', 'post175901440')"> &quot;&quot;&quot;</li><li onclick="toggle('pre175901440', 'post175901440')"> def _wrapped_view_func(request, *args, **kwargs):</li></ol>
273
274 <ol start="79" class="context-line"><li onclick="toggle('pre175901440', 'post175901440')"> response = view_func(request, *args, **kwargs) <span>...</span></li></ol>
275
276 <ol start='80' class="post-context" id="post175901440"><li onclick="toggle('pre175901440', 'post175901440')"> add_never_cache_headers(response)</li><li onclick="toggle('pre175901440', 'post175901440')"> return response</li><li onclick="toggle('pre175901440', 'post175901440')"> return wraps(view_func, assigned=available_attrs(view_func))(_wrapped_view_func)</li></ol>
277
278 </div>
279
280
281
282 <div class="commands">
283 <a href="#" onclick="return varToggle(this, '175901440')"><span>&#x25b6;</span> Local vars</a>
284 </div>
285 <table class="vars" id="v175901440">
286 <thead>
287 <tr>
288 <th>Variable</th>
289 <th>Value</th>
290 </tr>
291 </thead>
292 <tbody>
293
294 <tr>
295 <td>args</td>
296 <td class="code"><pre>[]</pre></td>
297 </tr>
298
299 <tr>
300 <td>request</td>
301 <td class="code"><pre>u&quot;&lt;WSGIRequest\nGET:&lt;QueryDict: {}&gt;,\nPOST:&lt;QueryDict: {}&gt;,\nCOOKIES:{&#39;csrftoken&#39;: &#39;f499601909593a52f3b5234e99ef6c7d&#39;,\n &#39;sessionid&#39;: &#39;ac24b53bfd982916457e5efdcc06f137&#39;},\nMETA:{&#39;CSRF_COOKIE&#39;: &#39;f499601909593...&quot;</pre></td>
302 </tr>
303
304 <tr>
305 <td>view_func</td>
306 <td class="code"><pre>u&#39;&lt;function inner at 0xb7e0500&gt;&#39;</pre></td>
307 </tr>
308
309 <tr>
310 <td>kwargs</td>
311 <td class="code"><pre>{}</pre></td>
312 </tr>
313
314 </tbody>
315 </table>
316
317 </li>
318
319 <li class="frame">
320 <code>/home/dcollectpy/htdocs/prod/lib/django/contrib/admin/sites.py</code> in <code>inner</code>
321
322
323 <div class="context" id="c175900936">
324
325 <ol start="190" class="pre-context" id="pre175900936"><li onclick="toggle('pre175900936', 'post175900936')"> By default, admin_views are marked non-cacheable using the</li><li onclick="toggle('pre175900936', 'post175900936')"> ``never_cache`` decorator. If the view can be safely cached, set</li><li onclick="toggle('pre175900936', 'post175900936')"> cacheable=True.</li><li onclick="toggle('pre175900936', 'post175900936')"> &quot;&quot;&quot;</li><li onclick="toggle('pre175900936', 'post175900936')"> def inner(request, *args, **kwargs):</li><li onclick="toggle('pre175900936', 'post175900936')"> if not self.has_permission(request):</li><li onclick="toggle('pre175900936', 'post175900936')"> return self.login(request)</li></ol>
326
327 <ol start="197" class="context-line"><li onclick="toggle('pre175900936', 'post175900936')"> return view(request, *args, **kwargs) <span>...</span></li></ol>
328
329 <ol start='198' class="post-context" id="post175900936"><li onclick="toggle('pre175900936', 'post175900936')"> if not cacheable:</li><li onclick="toggle('pre175900936', 'post175900936')"> inner = never_cache(inner)</li><li onclick="toggle('pre175900936', 'post175900936')"> # We add csrf_protect here so this function can be used as a utility</li><li onclick="toggle('pre175900936', 'post175900936')"> # function for any view, without having to repeat &#39;csrf_protect&#39;.</li><li onclick="toggle('pre175900936', 'post175900936')"> if not getattr(view, &#39;csrf_exempt&#39;, False):</li><li onclick="toggle('pre175900936', 'post175900936')"> inner = csrf_protect(inner)</li></ol>
330
331 </div>
332
333
334
335 <div class="commands">
336 <a href="#" onclick="return varToggle(this, '175900936')"><span>&#x25b6;</span> Local vars</a>
337 </div>
338 <table class="vars" id="v175900936">
339 <thead>
340 <tr>
341 <th>Variable</th>
342 <th>Value</th>
343 </tr>
344 </thead>
345 <tbody>
346
347 <tr>
348 <td>view</td>
349 <td class="code"><pre>u&#39;&lt;bound method WebImportAdmin.changelist_view of &lt;datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0&gt;&gt;&#39;</pre></td>
350 </tr>
351
352 <tr>
353 <td>self</td>
354 <td class="code"><pre>u&#39;&lt;django.contrib.admin.sites.AdminSite object at 0x15674d0&gt;&#39;</pre></td>
355 </tr>
356
357 <tr>
358 <td>args</td>
359 <td class="code"><pre>[]</pre></td>
360 </tr>
361
362 <tr>
363 <td>request</td>
364 <td class="code"><pre>u&quot;&lt;WSGIRequest\nGET:&lt;QueryDict: {}&gt;,\nPOST:&lt;QueryDict: {}&gt;,\nCOOKIES:{&#39;csrftoken&#39;: &#39;f499601909593a52f3b5234e99ef6c7d&#39;,\n &#39;sessionid&#39;: &#39;ac24b53bfd982916457e5efdcc06f137&#39;},\nMETA:{&#39;CSRF_COOKIE&#39;: &#39;f499601909593...&quot;</pre></td>
365 </tr>
366
367 <tr>
368 <td>kwargs</td>
369 <td class="code"><pre>{}</pre></td>
370 </tr>
371
372 </tbody>
373 </table>
374
375 </li>
376
377 <li class="frame">
378 <code>/home/dcollectpy/htdocs/prod/src/../lib/mobileadmin/decorators.py</code> in <code>_change_templates</code>
379
380
381 <div class="context" id="c175902592">
382
383 <ol start="45" class="pre-context" id="pre175902592"><li onclick="toggle('pre175902592', 'post175902592')"> ]</li><li onclick="toggle('pre175902592', 'post175902592')"> else:</li><li onclick="toggle('pre175902592', 'post175902592')"> path_list += [</li><li onclick="toggle('pre175902592', 'post175902592')"> &#39;admin/%(template_name)s&#39;,</li><li onclick="toggle('pre175902592', 'post175902592')"> &#39;%(template_name)s&#39;,</li><li onclick="toggle('pre175902592', 'post175902592')"> ]</li><li onclick="toggle('pre175902592', 'post175902592')"> setattr(self, attr_name, [path % params for path in path_list])</li></ol>
384
385 <ol start="52" class="context-line"><li onclick="toggle('pre175902592', 'post175902592')"> return function(self, request, *args, **kwargs) <span>...</span></li></ol>
386
387 <ol start='53' class="post-context" id="post175902592"><li onclick="toggle('pre175902592', 'post175902592')"> return wraps(function)(_change_templates)</li></ol>
388
389 </div>
390
391
392
393 <div class="commands">
394 <a href="#" onclick="return varToggle(this, '175902592')"><span>&#x25b6;</span> Local vars</a>
395 </div>
396 <table class="vars" id="v175902592">
397 <thead>
398 <tr>
399 <th>Variable</th>
400 <th>Value</th>
401 </tr>
402 </thead>
403 <tbody>
404
405 <tr>
406 <td>function</td>
407 <td class="code"><pre>u&#39;&lt;function changelist_view at 0x14f7c08&gt;&#39;</pre></td>
408 </tr>
409
410 <tr>
411 <td>args</td>
412 <td class="code"><pre>[]</pre></td>
413 </tr>
414
415 <tr>
416 <td>template_name</td>
417 <td class="code"><pre>&#39;change_list.html&#39;</pre></td>
418 </tr>
419
420 <tr>
421 <td>self</td>
422 <td class="code"><pre>u&#39;&lt;datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0&gt;&#39;</pre></td>
423 </tr>
424
425 <tr>
426 <td>kwargs</td>
427 <td class="code"><pre>{}</pre></td>
428 </tr>
429
430 <tr>
431 <td>attr_name</td>
432 <td class="code"><pre>&#39;change_list_template&#39;</pre></td>
433 </tr>
434
435 <tr>
436 <td>request</td>
437 <td class="code"><pre>u&quot;&lt;WSGIRequest\nGET:&lt;QueryDict: {}&gt;,\nPOST:&lt;QueryDict: {}&gt;,\nCOOKIES:{&#39;csrftoken&#39;: &#39;f499601909593a52f3b5234e99ef6c7d&#39;,\n &#39;sessionid&#39;: &#39;ac24b53bfd982916457e5efdcc06f137&#39;},\nMETA:{&#39;CSRF_COOKIE&#39;: &#39;f499601909593...&quot;</pre></td>
438 </tr>
439
440 <tr>
441 <td>params</td>
442 <td class="code"><pre>{&#39;template_name&#39;: &#39;change_list.html&#39;}</pre></td>
443 </tr>
444
445 <tr>
446 <td>user_agent</td>
447 <td class="code"><pre>False</pre></td>
448 </tr>
449
450 <tr>
451 <td>func_name</td>
452 <td class="code"><pre>&#39;changelist_view&#39;</pre></td>
453 </tr>
454
455 <tr>
456 <td>path_list</td>
457 <td class="code"><pre>[&#39;admin/%(template_name)s&#39;, &#39;%(template_name)s&#39;]</pre></td>
458 </tr>
459
460 <tr>
461 <td>path</td>
462 <td class="code"><pre>&#39;%(template_name)s&#39;</pre></td>
463 </tr>
464
465 </tbody>
466 </table>
467
468 </li>
469
470 <li class="frame">
471 <code>/home/dcollectpy/htdocs/prod/lib/django/utils/decorators.py</code> in <code>_wrapper</code>
472
473
474 <div class="context" id="c175899640">
475
476 <ol start="21" class="pre-context" id="pre175899640"><li onclick="toggle('pre175899640', 'post175899640')"> def _wrapper(self, *args, **kwargs):</li><li onclick="toggle('pre175899640', 'post175899640')"> @decorator</li><li onclick="toggle('pre175899640', 'post175899640')"> def bound_func(*args2, **kwargs2):</li><li onclick="toggle('pre175899640', 'post175899640')"> return func(self, *args2, **kwargs2)</li><li onclick="toggle('pre175899640', 'post175899640')"> # bound_func has the signature that &#39;decorator&#39; expects i.e. no</li><li onclick="toggle('pre175899640', 'post175899640')"> # &#39;self&#39; argument, but it is a closure over self so it can call</li><li onclick="toggle('pre175899640', 'post175899640')"> # &#39;func&#39; correctly.</li></ol>
477
478 <ol start="28" class="context-line"><li onclick="toggle('pre175899640', 'post175899640')"> return bound_func(*args, **kwargs) <span>...</span></li></ol>
479
480 <ol start='29' class="post-context" id="post175899640"><li onclick="toggle('pre175899640', 'post175899640')"> # In case &#39;decorator&#39; adds attributes to the function it decorates, we</li><li onclick="toggle('pre175899640', 'post175899640')"> # want to copy those. We don&#39;t have access to bound_func in this scope,</li><li onclick="toggle('pre175899640', 'post175899640')"> # but we can cheat by using it on a dummy function.</li><li onclick="toggle('pre175899640', 'post175899640')"> @decorator</li><li onclick="toggle('pre175899640', 'post175899640')"> def dummy(*args, **kwargs):</li><li onclick="toggle('pre175899640', 'post175899640')"> pass</li></ol>
481
482 </div>
483
484
485
486 <div class="commands">
487 <a href="#" onclick="return varToggle(this, '175899640')"><span>&#x25b6;</span> Local vars</a>
488 </div>
489 <table class="vars" id="v175899640">
490 <thead>
491 <tr>
492 <th>Variable</th>
493 <th>Value</th>
494 </tr>
495 </thead>
496 <tbody>
497
498 <tr>
499 <td>self</td>
500 <td class="code"><pre>u&#39;&lt;datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0&gt;&#39;</pre></td>
501 </tr>
502
503 <tr>
504 <td>args</td>
505 <td class="code"><pre>[u&quot;&lt;WSGIRequest\nGET:&lt;QueryDict: {}&gt;,\nPOST:&lt;QueryDict: {}&gt;,\nCOOKIES:{&#39;csrftoken&#39;: &#39;f499601909593a52f3b5234e99ef6c7d&#39;,\n &#39;sessionid&#39;: &#39;ac24b53bfd982916457e5efdcc06f137&#39;},\nMETA:{&#39;CSRF_COOKIE&#39;: &#39;f499601909593...&quot;]</pre></td>
506 </tr>
507
508 <tr>
509 <td>bound_func</td>
510 <td class="code"><pre>u&#39;&lt;function bound_func at 0xb64b410&gt;&#39;</pre></td>
511 </tr>
512
513 <tr>
514 <td>func</td>
515 <td class="code"><pre>u&#39;&lt;function changelist_view at 0x14f7c80&gt;&#39;</pre></td>
516 </tr>
517
518 <tr>
519 <td>kwargs</td>
520 <td class="code"><pre>{}</pre></td>
521 </tr>
522
523 <tr>
524 <td>decorator</td>
525 <td class="code"><pre>u&#39;&lt;function csrf_protect at 0x13ce410&gt;&#39;</pre></td>
526 </tr>
527
528 </tbody>
529 </table>
530
531 </li>
532
533 <li class="frame">
534 <code>/home/dcollectpy/htdocs/prod/lib/django/utils/decorators.py</code> in <code>_wrapped_view</code>
535
536
537 <div class="context" id="c175899352">
538
539 <ol start="86" class="pre-context" id="pre175899352"><li onclick="toggle('pre175899352', 'post175899352')"> if result is not None:</li><li onclick="toggle('pre175899352', 'post175899352')"> return result</li><li onclick="toggle('pre175899352', 'post175899352')"> if hasattr(middleware, &#39;process_view&#39;):</li><li onclick="toggle('pre175899352', 'post175899352')"> result = middleware.process_view(request, view_func, args, kwargs)</li><li onclick="toggle('pre175899352', 'post175899352')"> if result is not None:</li><li onclick="toggle('pre175899352', 'post175899352')"> return result</li><li onclick="toggle('pre175899352', 'post175899352')"> try:</li></ol>
540
541 <ol start="93" class="context-line"><li onclick="toggle('pre175899352', 'post175899352')"> response = view_func(request, *args, **kwargs) <span>...</span></li></ol>
542
543 <ol start='94' class="post-context" id="post175899352"><li onclick="toggle('pre175899352', 'post175899352')"> except Exception, e:</li><li onclick="toggle('pre175899352', 'post175899352')"> if hasattr(middleware, &#39;process_exception&#39;):</li><li onclick="toggle('pre175899352', 'post175899352')"> result = middleware.process_exception(request, e)</li><li onclick="toggle('pre175899352', 'post175899352')"> if result is not None:</li><li onclick="toggle('pre175899352', 'post175899352')"> return result</li><li onclick="toggle('pre175899352', 'post175899352')"> raise</li></ol>
544
545 </div>
546
547
548
549 <div class="commands">
550 <a href="#" onclick="return varToggle(this, '175899352')"><span>&#x25b6;</span> Local vars</a>
551 </div>
552 <table class="vars" id="v175899352">
553 <thead>
554 <tr>
555 <th>Variable</th>
556 <th>Value</th>
557 </tr>
558 </thead>
559 <tbody>
560
561 <tr>
562 <td>e</td>
563 <td class="code"><pre>u&#39;float() argument must be a string or a number&#39;</pre></td>
564 </tr>
565
566 <tr>
567 <td>middleware</td>
568 <td class="code"><pre>u&#39;&lt;django.middleware.csrf.CsrfViewMiddleware object at 0x13c9ed0&gt;&#39;</pre></td>
569 </tr>
570
571 <tr>
572 <td>args</td>
573 <td class="code"><pre>[]</pre></td>
574 </tr>
575
576 <tr>
577 <td>request</td>
578 <td class="code"><pre>u&quot;&lt;WSGIRequest\nGET:&lt;QueryDict: {}&gt;,\nPOST:&lt;QueryDict: {}&gt;,\nCOOKIES:{&#39;csrftoken&#39;: &#39;f499601909593a52f3b5234e99ef6c7d&#39;,\n &#39;sessionid&#39;: &#39;ac24b53bfd982916457e5efdcc06f137&#39;},\nMETA:{&#39;CSRF_COOKIE&#39;: &#39;f499601909593...&quot;</pre></td>
579 </tr>
580
581 <tr>
582 <td>result</td>
583 <td class="code"><pre>None</pre></td>
584 </tr>
585
586 <tr>
587 <td>kwargs</td>
588 <td class="code"><pre>{}</pre></td>
589 </tr>
590
591 <tr>
592 <td>view_func</td>
593 <td class="code"><pre>u&#39;&lt;function bound_func at 0x83ef758&gt;&#39;</pre></td>
594 </tr>
595
596 </tbody>
597 </table>
598
599 </li>
600
601 <li class="frame">
602 <code>/home/dcollectpy/htdocs/prod/lib/django/utils/decorators.py</code> in <code>bound_func</code>
603
604
605 <div class="context" id="c175902088">
606
607 <ol start="17" class="pre-context" id="pre175902088"><li onclick="toggle('pre175902088', 'post175902088')"> &quot;&quot;&quot;</li><li onclick="toggle('pre175902088', 'post175902088')"> # &#39;func&#39; is a function at the time it is passed to _dec, but will eventually</li><li onclick="toggle('pre175902088', 'post175902088')"> # be a method of the class it is defined it.</li><li onclick="toggle('pre175902088', 'post175902088')"> def _dec(func):</li><li onclick="toggle('pre175902088', 'post175902088')"> def _wrapper(self, *args, **kwargs):</li><li onclick="toggle('pre175902088', 'post175902088')"> @decorator</li><li onclick="toggle('pre175902088', 'post175902088')"> def bound_func(*args2, **kwargs2):</li></ol>
608
609 <ol start="24" class="context-line"><li onclick="toggle('pre175902088', 'post175902088')"> return func(self, *args2, **kwargs2) <span>...</span></li></ol>
610
611 <ol start='25' class="post-context" id="post175902088"><li onclick="toggle('pre175902088', 'post175902088')"> # bound_func has the signature that &#39;decorator&#39; expects i.e. no</li><li onclick="toggle('pre175902088', 'post175902088')"> # &#39;self&#39; argument, but it is a closure over self so it can call</li><li onclick="toggle('pre175902088', 'post175902088')"> # &#39;func&#39; correctly.</li><li onclick="toggle('pre175902088', 'post175902088')"> return bound_func(*args, **kwargs)</li><li onclick="toggle('pre175902088', 'post175902088')"> # In case &#39;decorator&#39; adds attributes to the function it decorates, we</li><li onclick="toggle('pre175902088', 'post175902088')"> # want to copy those. We don&#39;t have access to bound_func in this scope,</li></ol>
612
613 </div>
614
615
616
617 <div class="commands">
618 <a href="#" onclick="return varToggle(this, '175902088')"><span>&#x25b6;</span> Local vars</a>
619 </div>
620 <table class="vars" id="v175902088">
621 <thead>
622 <tr>
623 <th>Variable</th>
624 <th>Value</th>
625 </tr>
626 </thead>
627 <tbody>
628
629 <tr>
630 <td>args2</td>
631 <td class="code"><pre>[u&quot;&lt;WSGIRequest\nGET:&lt;QueryDict: {}&gt;,\nPOST:&lt;QueryDict: {}&gt;,\nCOOKIES:{&#39;csrftoken&#39;: &#39;f499601909593a52f3b5234e99ef6c7d&#39;,\n &#39;sessionid&#39;: &#39;ac24b53bfd982916457e5efdcc06f137&#39;},\nMETA:{&#39;CSRF_COOKIE&#39;: &#39;f499601909593...&quot;]</pre></td>
632 </tr>
633
634 <tr>
635 <td>func</td>
636 <td class="code"><pre>u&#39;&lt;function changelist_view at 0x14f7c80&gt;&#39;</pre></td>
637 </tr>
638
639 <tr>
640 <td>self</td>
641 <td class="code"><pre>u&#39;&lt;datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0&gt;&#39;</pre></td>
642 </tr>
643
644 <tr>
645 <td>kwargs2</td>
646 <td class="code"><pre>{}</pre></td>
647 </tr>
648
649 </tbody>
650 </table>
651
652 </li>
653
654 <li class="frame">
655 <code>/home/dcollectpy/htdocs/prod/lib/django/contrib/admin/options.py</code> in <code>changelist_view</code>
656
657
658 <div class="context" id="c175901512">
659
660 <ol start="1172" class="pre-context" id="pre175901512"><li onclick="toggle('pre175901512', 'post175901512')"> }</li><li onclick="toggle('pre175901512', 'post175901512')"> context.update(extra_context or {})</li><li onclick="toggle('pre175901512', 'post175901512')"> context_instance = template.RequestContext(request, current_app=self.admin_site.name)</li><li onclick="toggle('pre175901512', 'post175901512')"> return render_to_response(self.change_list_template or [</li><li onclick="toggle('pre175901512', 'post175901512')"> &#39;admin/%s/%s/change_list.html&#39; % (app_label, opts.object_name.lower()),</li><li onclick="toggle('pre175901512', 'post175901512')"> &#39;admin/%s/change_list.html&#39; % app_label,</li><li onclick="toggle('pre175901512', 'post175901512')"> &#39;admin/change_list.html&#39;</li></ol>
661
662 <ol start="1179" class="context-line"><li onclick="toggle('pre175901512', 'post175901512')"> ], context, context_instance=context_instance) <span>...</span></li></ol>
663
664 <ol start='1180' class="post-context" id="post175901512"><li onclick="toggle('pre175901512', 'post175901512')"></li><li onclick="toggle('pre175901512', 'post175901512')"> @csrf_protect_m</li><li onclick="toggle('pre175901512', 'post175901512')"> @transaction.commit_on_success</li><li onclick="toggle('pre175901512', 'post175901512')"> def delete_view(self, request, object_id, extra_context=None):</li><li onclick="toggle('pre175901512', 'post175901512')"> &quot;The &#39;delete&#39; admin view for this model.&quot;</li><li onclick="toggle('pre175901512', 'post175901512')"> opts = self.model._meta</li></ol>
665
666 </div>
667
668
669
670 <div class="commands">
671 <a href="#" onclick="return varToggle(this, '175901512')"><span>&#x25b6;</span> Local vars</a>
672 </div>
673 <table class="vars" id="v175901512">
674 <thead>
675 <tr>
676 <th>Variable</th>
677 <th>Value</th>
678 </tr>
679 </thead>
680 <tbody>
681
682 <tr>
683 <td>cl</td>
684 <td class="code"><pre>u&#39;&lt;django.contrib.admin.views.main.ChangeList object at 0xb548150&gt;&#39;</pre></td>
685 </tr>
686
687 <tr>
688 <td>action_failed</td>
689 <td class="code"><pre>False</pre></td>
690 </tr>
691
692 <tr>
693 <td>selection_note_all</td>
694 <td class="code"><pre>u&#39;Alle %(total_count)s ausgew\xe4hlt&#39;</pre></td>
695 </tr>
696
697 <tr>
698 <td>media</td>
699 <td class="code"><pre>u&#39;&lt;script type=&quot;text/javascript&quot; src=&quot;http://media.acp.mytrafficdata.com/js/core.js&quot;&gt;&lt;/script&gt;\n&lt;script type=&quot;text/javascript&quot; src=&quot;http://media.acp.mytrafficdata.com/js/admin/RelatedObjectLookups.js&quot;&gt;&lt;/...&#39;</pre></td>
700 </tr>
701
702 <tr>
703 <td>ChangeList</td>
704 <td class="code"><pre>u&quot;&lt;class &#39;django.contrib.admin.views.main.ChangeList&#39;&gt;&quot;</pre></td>
705 </tr>
706
707 <tr>
708 <td>selected</td>
709 <td class="code"><pre>[]</pre></td>
710 </tr>
711
712 <tr>
713 <td>action_form</td>
714 <td class="code"><pre>u&#39;&lt;tr&gt;&lt;th&gt;Aktion:&lt;/th&gt;&lt;td&gt;&lt;select name=&quot;action&quot;&gt;\n&lt;option value=&quot;&quot; selected=&quot;selected&quot;&gt;---------&lt;/option&gt;\n&lt;option value=&quot;delete_selected&quot;&gt;Ausgew\xe4hlte Importe l\xf6schen&lt;/option&gt;\n&lt;/select&gt;&lt;input type=&quot;hidden...&#39;</pre></td>
715 </tr>
716
717 <tr>
718 <td>request</td>
719 <td class="code"><pre>u&quot;&lt;WSGIRequest\nGET:&lt;QueryDict: {}&gt;,\nPOST:&lt;QueryDict: {}&gt;,\nCOOKIES:{&#39;csrftoken&#39;: &#39;f499601909593a52f3b5234e99ef6c7d&#39;,\n &#39;sessionid&#39;: &#39;ac24b53bfd982916457e5efdcc06f137&#39;},\nMETA:{&#39;CSRF_COOKIE&#39;: &#39;f499601909593...&quot;</pre></td>
720 </tr>
721
722 <tr>
723 <td>actions</td>
724 <td class="code"><pre>{&#39;delete_selected&#39;: [u&#39;&lt;function delete_selected at 0x14f9f50&gt;&#39;,
725 &#39;delete_selected&#39;,
726 u&#39;Ausgew\xe4hlte %(verbose_name_plural)s l\xf6schen&#39;]}</pre></td>
727 </tr>
728
729 <tr>
730 <td>ERROR_FLAG</td>
731 <td class="code"><pre>&#39;e&#39;</pre></td>
732 </tr>
733
734 <tr>
735 <td>self</td>
736 <td class="code"><pre>u&#39;&lt;datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0&gt;&#39;</pre></td>
737 </tr>
738
739 <tr>
740 <td>context_instance</td>
741 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
742 </tr>
743
744 <tr>
745 <td>context</td>
746 <td class="code"><pre>{&#39;action_form&#39;: u&#39;&lt;tr&gt;&lt;th&gt;Aktion:&lt;/th&gt;&lt;td&gt;&lt;select name=&quot;action&quot;&gt;\n&lt;option value=&quot;&quot; selected=&quot;selected&quot;&gt;---------&lt;/option&gt;\n&lt;option value=&quot;delete_selected&quot;&gt;Ausgew\xe4hlte Importe l\xf6schen&lt;/option&gt;\n&lt;/select&gt;&lt;input type=&quot;hidden...&#39;,
747 &#39;actions_on_bottom&#39;: False,
748 &#39;actions_on_top&#39;: True,
749 &#39;actions_selection_counter&#39;: True,
750 &#39;app_label&#39;: &#39;imports&#39;,
751 &#39;cl&#39;: u&#39;&lt;django.contrib.admin.views.main.ChangeList object at 0xb548150&gt;&#39;,
752 &#39;has_add_permission&#39;: True,
753 &#39;is_popup&#39;: False,
754 &#39;media&#39;: u&#39;&lt;script type=&quot;text/javascript&quot; src=&quot;http://media.acp.mytrafficdata.com/js/core.js&quot;&gt;&lt;/script&gt;\n&lt;script type=&quot;text/javascript&quot; src=&quot;http://media.acp.mytrafficdata.com/js/admin/RelatedObjectLookups.js&quot;&gt;&lt;/...&#39;,
755 &#39;module_name&#39;: u&#39;Importe&#39;,
756 &#39;root_path&#39;: None,
757 &#39;selection_note&#39;: u&#39;0 von 100 ausgew\xe4hlt&#39;,
758 &#39;selection_note_all&#39;: u&#39;Alle 11107 ausgew\xe4hlt&#39;,
759 &#39;title&#39;: u&#39;Import zur \xc4nderung ausw\xe4hlen&#39;}</pre></td>
760 </tr>
761
762 <tr>
763 <td>app_label</td>
764 <td class="code"><pre>&#39;imports&#39;</pre></td>
765 </tr>
766
767 <tr>
768 <td>list_display</td>
769 <td class="code"><pre>[&#39;action_checkbox&#39;,
770 &#39;import_date&#39;,
771 &#39;name&#39;,
772 &#39;raw_device&#39;,
773 &#39;file_link&#39;,
774 &#39;version&#39;,
775 &#39;import_successes&#39;,
776 &#39;vehicle_count&#39;,
777 &#39;import_failures&#39;,
778 &#39;generator_type&#39;,
779 &#39;generator_version&#39;]</pre></td>
780 </tr>
781
782 <tr>
783 <td>extra_context</td>
784 <td class="code"><pre>None</pre></td>
785 </tr>
786
787 <tr>
788 <td>formset</td>
789 <td class="code"><pre>None</pre></td>
790 </tr>
791
792 <tr>
793 <td>opts</td>
794 <td class="code"><pre>u&#39;imports.webimport&#39;</pre></td>
795 </tr>
796
797 </tbody>
798 </table>
799
800 </li>
801
802 <li class="frame">
803 <code>/home/dcollectpy/htdocs/prod/lib/django/shortcuts/__init__.py</code> in <code>render_to_response</code>
804
805
806 <div class="context" id="c175902664">
807
808 <ol start="13" class="pre-context" id="pre175902664"><li onclick="toggle('pre175902664', 'post175902664')"></li><li onclick="toggle('pre175902664', 'post175902664')">def render_to_response(*args, **kwargs):</li><li onclick="toggle('pre175902664', 'post175902664')"> &quot;&quot;&quot;</li><li onclick="toggle('pre175902664', 'post175902664')"> Returns a HttpResponse whose content is filled with the result of calling</li><li onclick="toggle('pre175902664', 'post175902664')"> django.template.loader.render_to_string() with the passed arguments.</li><li onclick="toggle('pre175902664', 'post175902664')"> &quot;&quot;&quot;</li><li onclick="toggle('pre175902664', 'post175902664')"> httpresponse_kwargs = {&#39;mimetype&#39;: kwargs.pop(&#39;mimetype&#39;, None)}</li></ol>
809
810 <ol start="20" class="context-line"><li onclick="toggle('pre175902664', 'post175902664')"> return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) <span>...</span></li></ol>
811
812 <ol start='21' class="post-context" id="post175902664"><li onclick="toggle('pre175902664', 'post175902664')"></li><li onclick="toggle('pre175902664', 'post175902664')">def render(request, *args, **kwargs):</li><li onclick="toggle('pre175902664', 'post175902664')"> &quot;&quot;&quot;</li><li onclick="toggle('pre175902664', 'post175902664')"> Returns a HttpResponse whose content is filled with the result of calling</li><li onclick="toggle('pre175902664', 'post175902664')"> django.template.loader.render_to_string() with the passed arguments.</li><li onclick="toggle('pre175902664', 'post175902664')"> Uses a RequestContext by default.</li></ol>
813
814 </div>
815
816
817
818 <div class="commands">
819 <a href="#" onclick="return varToggle(this, '175902664')"><span>&#x25b6;</span> Local vars</a>
820 </div>
821 <table class="vars" id="v175902664">
822 <thead>
823 <tr>
824 <th>Variable</th>
825 <th>Value</th>
826 </tr>
827 </thead>
828 <tbody>
829
830 <tr>
831 <td>httpresponse_kwargs</td>
832 <td class="code"><pre>{&#39;mimetype&#39;: None}</pre></td>
833 </tr>
834
835 <tr>
836 <td>args</td>
837 <td class="code"><pre>[[&#39;admin/change_list.html&#39;, &#39;change_list.html&#39;],
838 {&#39;action_form&#39;: u&#39;&lt;tr&gt;&lt;th&gt;Aktion:&lt;/th&gt;&lt;td&gt;&lt;select name=&quot;action&quot;&gt;\n&lt;option value=&quot;&quot; selected=&quot;selected&quot;&gt;---------&lt;/option&gt;\n&lt;option value=&quot;delete_selected&quot;&gt;Ausgew\xe4hlte Importe l\xf6schen&lt;/option&gt;\n&lt;/select&gt;&lt;input type=&quot;hidden...&#39;,
839 &#39;actions_on_bottom&#39;: False,
840 &#39;actions_on_top&#39;: True,
841 &#39;actions_selection_counter&#39;: True,
842 &#39;app_label&#39;: &#39;imports&#39;,
843 &#39;cl&#39;: u&#39;&lt;django.contrib.admin.views.main.ChangeList object at 0xb548150&gt;&#39;,
844 &#39;has_add_permission&#39;: True,
845 &#39;is_popup&#39;: False,
846 &#39;media&#39;: u&#39;&lt;script type=&quot;text/javascript&quot; src=&quot;http://media.acp.mytrafficdata.com/js/core.js&quot;&gt;&lt;/script&gt;\n&lt;script type=&quot;text/javascript&quot; src=&quot;http://media.acp.mytrafficdata.com/js/admin/RelatedObjectLookups.js&quot;&gt;&lt;/...&#39;,
847 &#39;module_name&#39;: u&#39;Importe&#39;,
848 &#39;root_path&#39;: None,
849 &#39;selection_note&#39;: u&#39;0 von 100 ausgew\xe4hlt&#39;,
850 &#39;selection_note_all&#39;: u&#39;Alle 11107 ausgew\xe4hlt&#39;,
851 &#39;title&#39;: u&#39;Import zur \xc4nderung ausw\xe4hlen&#39;}]</pre></td>
852 </tr>
853
854 <tr>
855 <td>kwargs</td>
856 <td class="code"><pre>{&#39;context_instance&#39;: u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;}</pre></td>
857 </tr>
858
859 </tbody>
860 </table>
861
862 </li>
863
864 <li class="frame">
865 <code>/home/dcollectpy/htdocs/prod/lib/django/template/loader.py</code> in <code>render_to_string</code>
866
867
868 <div class="context" id="c163811200">
869
870 <ol start="181" class="pre-context" id="pre163811200"><li onclick="toggle('pre163811200', 'post163811200')"> t = get_template(template_name)</li><li onclick="toggle('pre163811200', 'post163811200')"> if not context_instance:</li><li onclick="toggle('pre163811200', 'post163811200')"> return t.render(Context(dictionary))</li><li onclick="toggle('pre163811200', 'post163811200')"> # Add the dictionary to the context stack, ensuring it gets removed again</li><li onclick="toggle('pre163811200', 'post163811200')"> # to keep the context_instance in the same state it started in.</li><li onclick="toggle('pre163811200', 'post163811200')"> context_instance.update(dictionary)</li><li onclick="toggle('pre163811200', 'post163811200')"> try:</li></ol>
871
872 <ol start="188" class="context-line"><li onclick="toggle('pre163811200', 'post163811200')"> return t.render(context_instance) <span>...</span></li></ol>
873
874 <ol start='189' class="post-context" id="post163811200"><li onclick="toggle('pre163811200', 'post163811200')"> finally:</li><li onclick="toggle('pre163811200', 'post163811200')"> context_instance.pop()</li><li onclick="toggle('pre163811200', 'post163811200')"></li><li onclick="toggle('pre163811200', 'post163811200')">def select_template(template_name_list):</li><li onclick="toggle('pre163811200', 'post163811200')"> &quot;Given a list of template names, returns the first that can be loaded.&quot;</li><li onclick="toggle('pre163811200', 'post163811200')"> not_found = []</li></ol>
875
876 </div>
877
878
879
880 <div class="commands">
881 <a href="#" onclick="return varToggle(this, '163811200')"><span>&#x25b6;</span> Local vars</a>
882 </div>
883 <table class="vars" id="v163811200">
884 <thead>
885 <tr>
886 <th>Variable</th>
887 <th>Value</th>
888 </tr>
889 </thead>
890 <tbody>
891
892 <tr>
893 <td>template_name</td>
894 <td class="code"><pre>[&#39;admin/change_list.html&#39;, &#39;change_list.html&#39;]</pre></td>
895 </tr>
896
897 <tr>
898 <td>t</td>
899 <td class="code"><pre>u&#39;&lt;django.template.base.Template object at 0xb634450&gt;&#39;</pre></td>
900 </tr>
901
902 <tr>
903 <td>dictionary</td>
904 <td class="code"><pre>{&#39;action_form&#39;: u&#39;&lt;tr&gt;&lt;th&gt;Aktion:&lt;/th&gt;&lt;td&gt;&lt;select name=&quot;action&quot;&gt;\n&lt;option value=&quot;&quot; selected=&quot;selected&quot;&gt;---------&lt;/option&gt;\n&lt;option value=&quot;delete_selected&quot;&gt;Ausgew\xe4hlte Importe l\xf6schen&lt;/option&gt;\n&lt;/select&gt;&lt;input type=&quot;hidden...&#39;,
905 &#39;actions_on_bottom&#39;: False,
906 &#39;actions_on_top&#39;: True,
907 &#39;actions_selection_counter&#39;: True,
908 &#39;app_label&#39;: &#39;imports&#39;,
909 &#39;cl&#39;: u&#39;&lt;django.contrib.admin.views.main.ChangeList object at 0xb548150&gt;&#39;,
910 &#39;has_add_permission&#39;: True,
911 &#39;is_popup&#39;: False,
912 &#39;media&#39;: u&#39;&lt;script type=&quot;text/javascript&quot; src=&quot;http://media.acp.mytrafficdata.com/js/core.js&quot;&gt;&lt;/script&gt;\n&lt;script type=&quot;text/javascript&quot; src=&quot;http://media.acp.mytrafficdata.com/js/admin/RelatedObjectLookups.js&quot;&gt;&lt;/...&#39;,
913 &#39;module_name&#39;: u&#39;Importe&#39;,
914 &#39;root_path&#39;: None,
915 &#39;selection_note&#39;: u&#39;0 von 100 ausgew\xe4hlt&#39;,
916 &#39;selection_note_all&#39;: u&#39;Alle 11107 ausgew\xe4hlt&#39;,
917 &#39;title&#39;: u&#39;Import zur \xc4nderung ausw\xe4hlen&#39;}</pre></td>
918 </tr>
919
920 <tr>
921 <td>context_instance</td>
922 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
923 </tr>
924
925 </tbody>
926 </table>
927
928 </li>
929
930 <li class="frame">
931 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>render</code>
932
933
934 <div class="context" id="c163811128">
935
936 <ol start="116" class="pre-context" id="pre163811128"><li onclick="toggle('pre163811128', 'post163811128')"> def _render(self, context):</li><li onclick="toggle('pre163811128', 'post163811128')"> return self.nodelist.render(context)</li><li onclick="toggle('pre163811128', 'post163811128')"></li><li onclick="toggle('pre163811128', 'post163811128')"> def render(self, context):</li><li onclick="toggle('pre163811128', 'post163811128')"> &quot;Display stage -- can be called many times&quot;</li><li onclick="toggle('pre163811128', 'post163811128')"> context.render_context.push()</li><li onclick="toggle('pre163811128', 'post163811128')"> try:</li></ol>
937
938 <ol start="123" class="context-line"><li onclick="toggle('pre163811128', 'post163811128')"> return self._render(context) <span>...</span></li></ol>
939
940 <ol start='124' class="post-context" id="post163811128"><li onclick="toggle('pre163811128', 'post163811128')"> finally:</li><li onclick="toggle('pre163811128', 'post163811128')"> context.render_context.pop()</li><li onclick="toggle('pre163811128', 'post163811128')"></li><li onclick="toggle('pre163811128', 'post163811128')">def compile_string(template_string, origin):</li><li onclick="toggle('pre163811128', 'post163811128')"> &quot;Compiles template_string into NodeList ready for rendering&quot;</li><li onclick="toggle('pre163811128', 'post163811128')"> if settings.TEMPLATE_DEBUG:</li></ol>
941
942 </div>
943
944
945
946 <div class="commands">
947 <a href="#" onclick="return varToggle(this, '163811128')"><span>&#x25b6;</span> Local vars</a>
948 </div>
949 <table class="vars" id="v163811128">
950 <thead>
951 <tr>
952 <th>Variable</th>
953 <th>Value</th>
954 </tr>
955 </thead>
956 <tbody>
957
958 <tr>
959 <td>self</td>
960 <td class="code"><pre>u&#39;&lt;django.template.base.Template object at 0xb634450&gt;&#39;</pre></td>
961 </tr>
962
963 <tr>
964 <td>context</td>
965 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
966 </tr>
967
968 </tbody>
969 </table>
970
971 </li>
972
973 <li class="frame">
974 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>_render</code>
975
976
977 <div class="context" id="c163810768">
978
979 <ol start="110" class="pre-context" id="pre163810768"><li onclick="toggle('pre163810768', 'post163810768')"></li><li onclick="toggle('pre163810768', 'post163810768')"> def __iter__(self):</li><li onclick="toggle('pre163810768', 'post163810768')"> for node in self.nodelist:</li><li onclick="toggle('pre163810768', 'post163810768')"> for subnode in node:</li><li onclick="toggle('pre163810768', 'post163810768')"> yield subnode</li><li onclick="toggle('pre163810768', 'post163810768')"></li><li onclick="toggle('pre163810768', 'post163810768')"> def _render(self, context):</li></ol>
980
981 <ol start="117" class="context-line"><li onclick="toggle('pre163810768', 'post163810768')"> return self.nodelist.render(context) <span>...</span></li></ol>
982
983 <ol start='118' class="post-context" id="post163810768"><li onclick="toggle('pre163810768', 'post163810768')"></li><li onclick="toggle('pre163810768', 'post163810768')"> def render(self, context):</li><li onclick="toggle('pre163810768', 'post163810768')"> &quot;Display stage -- can be called many times&quot;</li><li onclick="toggle('pre163810768', 'post163810768')"> context.render_context.push()</li><li onclick="toggle('pre163810768', 'post163810768')"> try:</li><li onclick="toggle('pre163810768', 'post163810768')"> return self._render(context)</li></ol>
984
985 </div>
986
987
988
989 <div class="commands">
990 <a href="#" onclick="return varToggle(this, '163810768')"><span>&#x25b6;</span> Local vars</a>
991 </div>
992 <table class="vars" id="v163810768">
993 <thead>
994 <tr>
995 <th>Variable</th>
996 <th>Value</th>
997 </tr>
998 </thead>
999 <tbody>
1000
1001 <tr>
1002 <td>self</td>
1003 <td class="code"><pre>u&#39;&lt;django.template.base.Template object at 0xb634450&gt;&#39;</pre></td>
1004 </tr>
1005
1006 <tr>
1007 <td>context</td>
1008 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1009 </tr>
1010
1011 </tbody>
1012 </table>
1013
1014 </li>
1015
1016 <li class="frame">
1017 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>render</code>
1018
1019
1020 <div class="context" id="c138798360">
1021
1022 <ol start="737" class="pre-context" id="pre138798360"><li onclick="toggle('pre138798360', 'post138798360')"> # extend_nodelist().</li><li onclick="toggle('pre138798360', 'post138798360')"> contains_nontext = False</li><li onclick="toggle('pre138798360', 'post138798360')"></li><li onclick="toggle('pre138798360', 'post138798360')"> def render(self, context):</li><li onclick="toggle('pre138798360', 'post138798360')"> bits = []</li><li onclick="toggle('pre138798360', 'post138798360')"> for node in self:</li><li onclick="toggle('pre138798360', 'post138798360')"> if isinstance(node, Node):</li></ol>
1023
1024 <ol start="744" class="context-line"><li onclick="toggle('pre138798360', 'post138798360')"> bits.append(self.render_node(node, context)) <span>...</span></li></ol>
1025
1026 <ol start='745' class="post-context" id="post138798360"><li onclick="toggle('pre138798360', 'post138798360')"> else:</li><li onclick="toggle('pre138798360', 'post138798360')"> bits.append(node)</li><li onclick="toggle('pre138798360', 'post138798360')"> return mark_safe(&#39;&#39;.join([force_unicode(b) for b in bits]))</li><li onclick="toggle('pre138798360', 'post138798360')"></li><li onclick="toggle('pre138798360', 'post138798360')"> def get_nodes_by_type(self, nodetype):</li><li onclick="toggle('pre138798360', 'post138798360')"> &quot;Return a list of all nodes of the given type&quot;</li></ol>
1027
1028 </div>
1029
1030
1031
1032 <div class="commands">
1033 <a href="#" onclick="return varToggle(this, '138798360')"><span>&#x25b6;</span> Local vars</a>
1034 </div>
1035 <table class="vars" id="v138798360">
1036 <thead>
1037 <tr>
1038 <th>Variable</th>
1039 <th>Value</th>
1040 </tr>
1041 </thead>
1042 <tbody>
1043
1044 <tr>
1045 <td>node</td>
1046 <td class="code"><pre>u&#39;&lt;ExtendsNode: extends &quot;admin/base_site.html&quot;&gt;&#39;</pre></td>
1047 </tr>
1048
1049 <tr>
1050 <td>self</td>
1051 <td class="code"><pre>[u&#39;&lt;ExtendsNode: extends &quot;admin/base_site.html&quot;&gt;&#39;]</pre></td>
1052 </tr>
1053
1054 <tr>
1055 <td>bits</td>
1056 <td class="code"><pre>[]</pre></td>
1057 </tr>
1058
1059 <tr>
1060 <td>context</td>
1061 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1062 </tr>
1063
1064 </tbody>
1065 </table>
1066
1067 </li>
1068
1069 <li class="frame">
1070 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>render_node</code>
1071
1072
1073 <div class="context" id="c138800016">
1074
1075 <ol start="750" class="pre-context" id="pre138800016"><li onclick="toggle('pre138800016', 'post138800016')"> &quot;Return a list of all nodes of the given type&quot;</li><li onclick="toggle('pre138800016', 'post138800016')"> nodes = []</li><li onclick="toggle('pre138800016', 'post138800016')"> for node in self:</li><li onclick="toggle('pre138800016', 'post138800016')"> nodes.extend(node.get_nodes_by_type(nodetype))</li><li onclick="toggle('pre138800016', 'post138800016')"> return nodes</li><li onclick="toggle('pre138800016', 'post138800016')"></li><li onclick="toggle('pre138800016', 'post138800016')"> def render_node(self, node, context):</li></ol>
1076
1077 <ol start="757" class="context-line"><li onclick="toggle('pre138800016', 'post138800016')"> return node.render(context) <span>...</span></li></ol>
1078
1079 <ol start='758' class="post-context" id="post138800016"><li onclick="toggle('pre138800016', 'post138800016')"></li><li onclick="toggle('pre138800016', 'post138800016')">class TextNode(Node):</li><li onclick="toggle('pre138800016', 'post138800016')"> def __init__(self, s):</li><li onclick="toggle('pre138800016', 'post138800016')"> self.s = s</li><li onclick="toggle('pre138800016', 'post138800016')"></li><li onclick="toggle('pre138800016', 'post138800016')"> def __repr__(self):</li></ol>
1080
1081 </div>
1082
1083
1084
1085 <div class="commands">
1086 <a href="#" onclick="return varToggle(this, '138800016')"><span>&#x25b6;</span> Local vars</a>
1087 </div>
1088 <table class="vars" id="v138800016">
1089 <thead>
1090 <tr>
1091 <th>Variable</th>
1092 <th>Value</th>
1093 </tr>
1094 </thead>
1095 <tbody>
1096
1097 <tr>
1098 <td>node</td>
1099 <td class="code"><pre>u&#39;&lt;ExtendsNode: extends &quot;admin/base_site.html&quot;&gt;&#39;</pre></td>
1100 </tr>
1101
1102 <tr>
1103 <td>self</td>
1104 <td class="code"><pre>[u&#39;&lt;ExtendsNode: extends &quot;admin/base_site.html&quot;&gt;&#39;]</pre></td>
1105 </tr>
1106
1107 <tr>
1108 <td>context</td>
1109 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1110 </tr>
1111
1112 </tbody>
1113 </table>
1114
1115 </li>
1116
1117 <li class="frame">
1118 <code>/home/dcollectpy/htdocs/prod/lib/django/template/loader_tags.py</code> in <code>render</code>
1119
1120
1121 <div class="context" id="c138799224">
1122
1123 <ol start="120" class="pre-context" id="pre138799224"><li onclick="toggle('pre138799224', 'post138799224')"> blocks = dict([(n.name, n) for n in</li><li onclick="toggle('pre138799224', 'post138799224')"> compiled_parent.nodelist.get_nodes_by_type(BlockNode)])</li><li onclick="toggle('pre138799224', 'post138799224')"> block_context.add_blocks(blocks)</li><li onclick="toggle('pre138799224', 'post138799224')"> break</li><li onclick="toggle('pre138799224', 'post138799224')"></li><li onclick="toggle('pre138799224', 'post138799224')"> # Call Template._render explicitly so the parser context stays</li><li onclick="toggle('pre138799224', 'post138799224')"> # the same.</li></ol>
1124
1125 <ol start="127" class="context-line"><li onclick="toggle('pre138799224', 'post138799224')"> return compiled_parent._render(context) <span>...</span></li></ol>
1126
1127 <ol start='128' class="post-context" id="post138799224"><li onclick="toggle('pre138799224', 'post138799224')"></li><li onclick="toggle('pre138799224', 'post138799224')">class BaseIncludeNode(Node):</li><li onclick="toggle('pre138799224', 'post138799224')"> def __init__(self, *args, **kwargs):</li><li onclick="toggle('pre138799224', 'post138799224')"> self.extra_context = kwargs.pop(&#39;extra_context&#39;, {})</li><li onclick="toggle('pre138799224', 'post138799224')"> self.isolated_context = kwargs.pop(&#39;isolated_context&#39;, False)</li><li onclick="toggle('pre138799224', 'post138799224')"> super(BaseIncludeNode, self).__init__(*args, **kwargs)</li></ol>
1128
1129 </div>
1130
1131
1132
1133 <div class="commands">
1134 <a href="#" onclick="return varToggle(this, '138799224')"><span>&#x25b6;</span> Local vars</a>
1135 </div>
1136 <table class="vars" id="v138799224">
1137 <thead>
1138 <tr>
1139 <th>Variable</th>
1140 <th>Value</th>
1141 </tr>
1142 </thead>
1143 <tbody>
1144
1145 <tr>
1146 <td>node</td>
1147 <td class="code"><pre>u&#39;&lt;ExtendsNode: extends &quot;admin/base.html&quot;&gt;&#39;</pre></td>
1148 </tr>
1149
1150 <tr>
1151 <td>block_context</td>
1152 <td class="code"><pre>u&#39;&lt;django.template.loader_tags.BlockContext object at 0x857e950&gt;&#39;</pre></td>
1153 </tr>
1154
1155 <tr>
1156 <td>compiled_parent</td>
1157 <td class="code"><pre>u&#39;&lt;django.template.base.Template object at 0xb7e5050&gt;&#39;</pre></td>
1158 </tr>
1159
1160 <tr>
1161 <td>self</td>
1162 <td class="code"><pre>u&#39;&lt;ExtendsNode: extends &quot;admin/base_site.html&quot;&gt;&#39;</pre></td>
1163 </tr>
1164
1165 <tr>
1166 <td>context</td>
1167 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1168 </tr>
1169
1170 </tbody>
1171 </table>
1172
1173 </li>
1174
1175 <li class="frame">
1176 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>_render</code>
1177
1178
1179 <div class="context" id="c138798864">
1180
1181 <ol start="110" class="pre-context" id="pre138798864"><li onclick="toggle('pre138798864', 'post138798864')"></li><li onclick="toggle('pre138798864', 'post138798864')"> def __iter__(self):</li><li onclick="toggle('pre138798864', 'post138798864')"> for node in self.nodelist:</li><li onclick="toggle('pre138798864', 'post138798864')"> for subnode in node:</li><li onclick="toggle('pre138798864', 'post138798864')"> yield subnode</li><li onclick="toggle('pre138798864', 'post138798864')"></li><li onclick="toggle('pre138798864', 'post138798864')"> def _render(self, context):</li></ol>
1182
1183 <ol start="117" class="context-line"><li onclick="toggle('pre138798864', 'post138798864')"> return self.nodelist.render(context) <span>...</span></li></ol>
1184
1185 <ol start='118' class="post-context" id="post138798864"><li onclick="toggle('pre138798864', 'post138798864')"></li><li onclick="toggle('pre138798864', 'post138798864')"> def render(self, context):</li><li onclick="toggle('pre138798864', 'post138798864')"> &quot;Display stage -- can be called many times&quot;</li><li onclick="toggle('pre138798864', 'post138798864')"> context.render_context.push()</li><li onclick="toggle('pre138798864', 'post138798864')"> try:</li><li onclick="toggle('pre138798864', 'post138798864')"> return self._render(context)</li></ol>
1186
1187 </div>
1188
1189
1190
1191 <div class="commands">
1192 <a href="#" onclick="return varToggle(this, '138798864')"><span>&#x25b6;</span> Local vars</a>
1193 </div>
1194 <table class="vars" id="v138798864">
1195 <thead>
1196 <tr>
1197 <th>Variable</th>
1198 <th>Value</th>
1199 </tr>
1200 </thead>
1201 <tbody>
1202
1203 <tr>
1204 <td>self</td>
1205 <td class="code"><pre>u&#39;&lt;django.template.base.Template object at 0xb7e5050&gt;&#39;</pre></td>
1206 </tr>
1207
1208 <tr>
1209 <td>context</td>
1210 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1211 </tr>
1212
1213 </tbody>
1214 </table>
1215
1216 </li>
1217
1218 <li class="frame">
1219 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>render</code>
1220
1221
1222 <div class="context" id="c138799368">
1223
1224 <ol start="737" class="pre-context" id="pre138799368"><li onclick="toggle('pre138799368', 'post138799368')"> # extend_nodelist().</li><li onclick="toggle('pre138799368', 'post138799368')"> contains_nontext = False</li><li onclick="toggle('pre138799368', 'post138799368')"></li><li onclick="toggle('pre138799368', 'post138799368')"> def render(self, context):</li><li onclick="toggle('pre138799368', 'post138799368')"> bits = []</li><li onclick="toggle('pre138799368', 'post138799368')"> for node in self:</li><li onclick="toggle('pre138799368', 'post138799368')"> if isinstance(node, Node):</li></ol>
1225
1226 <ol start="744" class="context-line"><li onclick="toggle('pre138799368', 'post138799368')"> bits.append(self.render_node(node, context)) <span>...</span></li></ol>
1227
1228 <ol start='745' class="post-context" id="post138799368"><li onclick="toggle('pre138799368', 'post138799368')"> else:</li><li onclick="toggle('pre138799368', 'post138799368')"> bits.append(node)</li><li onclick="toggle('pre138799368', 'post138799368')"> return mark_safe(&#39;&#39;.join([force_unicode(b) for b in bits]))</li><li onclick="toggle('pre138799368', 'post138799368')"></li><li onclick="toggle('pre138799368', 'post138799368')"> def get_nodes_by_type(self, nodetype):</li><li onclick="toggle('pre138799368', 'post138799368')"> &quot;Return a list of all nodes of the given type&quot;</li></ol>
1229
1230 </div>
1231
1232
1233
1234 <div class="commands">
1235 <a href="#" onclick="return varToggle(this, '138799368')"><span>&#x25b6;</span> Local vars</a>
1236 </div>
1237 <table class="vars" id="v138799368">
1238 <thead>
1239 <tr>
1240 <th>Variable</th>
1241 <th>Value</th>
1242 </tr>
1243 </thead>
1244 <tbody>
1245
1246 <tr>
1247 <td>node</td>
1248 <td class="code"><pre>u&#39;&lt;ExtendsNode: extends &quot;admin/base.html&quot;&gt;&#39;</pre></td>
1249 </tr>
1250
1251 <tr>
1252 <td>self</td>
1253 <td class="code"><pre>[u&#39;&lt;ExtendsNode: extends &quot;admin/base.html&quot;&gt;&#39;]</pre></td>
1254 </tr>
1255
1256 <tr>
1257 <td>bits</td>
1258 <td class="code"><pre>[]</pre></td>
1259 </tr>
1260
1261 <tr>
1262 <td>context</td>
1263 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1264 </tr>
1265
1266 </tbody>
1267 </table>
1268
1269 </li>
1270
1271 <li class="frame">
1272 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>render_node</code>
1273
1274
1275 <div class="context" id="c138800232">
1276
1277 <ol start="750" class="pre-context" id="pre138800232"><li onclick="toggle('pre138800232', 'post138800232')"> &quot;Return a list of all nodes of the given type&quot;</li><li onclick="toggle('pre138800232', 'post138800232')"> nodes = []</li><li onclick="toggle('pre138800232', 'post138800232')"> for node in self:</li><li onclick="toggle('pre138800232', 'post138800232')"> nodes.extend(node.get_nodes_by_type(nodetype))</li><li onclick="toggle('pre138800232', 'post138800232')"> return nodes</li><li onclick="toggle('pre138800232', 'post138800232')"></li><li onclick="toggle('pre138800232', 'post138800232')"> def render_node(self, node, context):</li></ol>
1278
1279 <ol start="757" class="context-line"><li onclick="toggle('pre138800232', 'post138800232')"> return node.render(context) <span>...</span></li></ol>
1280
1281 <ol start='758' class="post-context" id="post138800232"><li onclick="toggle('pre138800232', 'post138800232')"></li><li onclick="toggle('pre138800232', 'post138800232')">class TextNode(Node):</li><li onclick="toggle('pre138800232', 'post138800232')"> def __init__(self, s):</li><li onclick="toggle('pre138800232', 'post138800232')"> self.s = s</li><li onclick="toggle('pre138800232', 'post138800232')"></li><li onclick="toggle('pre138800232', 'post138800232')"> def __repr__(self):</li></ol>
1282
1283 </div>
1284
1285
1286
1287 <div class="commands">
1288 <a href="#" onclick="return varToggle(this, '138800232')"><span>&#x25b6;</span> Local vars</a>
1289 </div>
1290 <table class="vars" id="v138800232">
1291 <thead>
1292 <tr>
1293 <th>Variable</th>
1294 <th>Value</th>
1295 </tr>
1296 </thead>
1297 <tbody>
1298
1299 <tr>
1300 <td>node</td>
1301 <td class="code"><pre>u&#39;&lt;ExtendsNode: extends &quot;admin/base.html&quot;&gt;&#39;</pre></td>
1302 </tr>
1303
1304 <tr>
1305 <td>self</td>
1306 <td class="code"><pre>[u&#39;&lt;ExtendsNode: extends &quot;admin/base.html&quot;&gt;&#39;]</pre></td>
1307 </tr>
1308
1309 <tr>
1310 <td>context</td>
1311 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1312 </tr>
1313
1314 </tbody>
1315 </table>
1316
1317 </li>
1318
1319 <li class="frame">
1320 <code>/home/dcollectpy/htdocs/prod/lib/django/template/loader_tags.py</code> in <code>render</code>
1321
1322
1323 <div class="context" id="c138798144">
1324
1325 <ol start="120" class="pre-context" id="pre138798144"><li onclick="toggle('pre138798144', 'post138798144')"> blocks = dict([(n.name, n) for n in</li><li onclick="toggle('pre138798144', 'post138798144')"> compiled_parent.nodelist.get_nodes_by_type(BlockNode)])</li><li onclick="toggle('pre138798144', 'post138798144')"> block_context.add_blocks(blocks)</li><li onclick="toggle('pre138798144', 'post138798144')"> break</li><li onclick="toggle('pre138798144', 'post138798144')"></li><li onclick="toggle('pre138798144', 'post138798144')"> # Call Template._render explicitly so the parser context stays</li><li onclick="toggle('pre138798144', 'post138798144')"> # the same.</li></ol>
1326
1327 <ol start="127" class="context-line"><li onclick="toggle('pre138798144', 'post138798144')"> return compiled_parent._render(context) <span>...</span></li></ol>
1328
1329 <ol start='128' class="post-context" id="post138798144"><li onclick="toggle('pre138798144', 'post138798144')"></li><li onclick="toggle('pre138798144', 'post138798144')">class BaseIncludeNode(Node):</li><li onclick="toggle('pre138798144', 'post138798144')"> def __init__(self, *args, **kwargs):</li><li onclick="toggle('pre138798144', 'post138798144')"> self.extra_context = kwargs.pop(&#39;extra_context&#39;, {})</li><li onclick="toggle('pre138798144', 'post138798144')"> self.isolated_context = kwargs.pop(&#39;isolated_context&#39;, False)</li><li onclick="toggle('pre138798144', 'post138798144')"> super(BaseIncludeNode, self).__init__(*args, **kwargs)</li></ol>
1330
1331 </div>
1332
1333
1334
1335 <div class="commands">
1336 <a href="#" onclick="return varToggle(this, '138798144')"><span>&#x25b6;</span> Local vars</a>
1337 </div>
1338 <table class="vars" id="v138798144">
1339 <thead>
1340 <tr>
1341 <th>Variable</th>
1342 <th>Value</th>
1343 </tr>
1344 </thead>
1345 <tbody>
1346
1347 <tr>
1348 <td>node</td>
1349 <td class="code"><pre>u&#39;&lt;django.template.defaulttags.LoadNode object at 0xb7eb410&gt;&#39;</pre></td>
1350 </tr>
1351
1352 <tr>
1353 <td>blocks</td>
1354 <td class="code"><pre>{u&#39;blockbots&#39;: u&#39;&lt;Block Node: blockbots. Contents: [&lt;Text Node: \&#39;&lt;meta name=&quot;robots&quot; conte\&#39;&gt;]&gt;&#39;,
1355 u&#39;bodyclass&#39;: u&#39;&lt;Block Node: bodyclass. Contents: []&gt;&#39;,
1356 u&#39;branding&#39;: u&#39;&lt;Block Node: branding. Contents: []&gt;&#39;,
1357 u&#39;breadcrumbs&#39;: u&#39;&lt;Block Node: breadcrumbs. Contents: [&lt;Text Node: \&#39;&lt;div class=&quot;breadcrumbs&quot;&gt;\&#39;&gt;, &lt;django.templatetags.i18n.TranslateNode object at 0xb7e9410&gt;, &lt;Text Node: \&#39;&lt;/a&gt;\&#39;&gt;, &lt;If node&gt;, &lt;Text Node: \&#39;&lt;/div&gt;\&#39;&gt;]&gt;&#39;,
1358 u&#39;coltype&#39;: u&quot;&lt;Block Node: coltype. Contents: [&lt;Text Node: &#39;colM&#39;&gt;]&gt;&quot;,
1359 u&#39;content&#39;: u&quot;&lt;Block Node: content. Contents: [&lt;Text Node: &#39;\n &#39;&gt;, &lt;Block Node: object-tools. Contents: []&gt;, &lt;Text Node: &#39;\n &#39;&gt;, &lt;Variable Node: content&gt;, &lt;Text Node: &#39;\n &#39;&gt;]&gt;&quot;,
1360 u&#39;content_title&#39;: u&#39;&lt;Block Node: content_title. Contents: [&lt;If node&gt;]&gt;&#39;,
1361 u&#39;extrahead&#39;: u&#39;&lt;Block Node: extrahead. Contents: []&gt;&#39;,
1362 u&#39;extrastyle&#39;: u&#39;&lt;Block Node: extrastyle. Contents: []&gt;&#39;,
1363 u&#39;footer&#39;: u&#39;&lt;Block Node: footer. Contents: [&lt;Text Node: \&#39;&lt;div id=&quot;footer&quot;&gt;&lt;/div&gt;\&#39;&gt;]&gt;&#39;,
1364 u&#39;nav-global&#39;: u&#39;&lt;Block Node: nav-global. Contents: []&gt;&#39;,
1365 u&#39;object-tools&#39;: u&#39;&lt;Block Node: object-tools. Contents: []&gt;&#39;,
1366 u&#39;pretitle&#39;: u&#39;&lt;Block Node: pretitle. Contents: []&gt;&#39;,
1367 u&#39;sidebar&#39;: u&#39;&lt;Block Node: sidebar. Contents: []&gt;&#39;,
1368 u&#39;stylesheet&#39;: u&quot;&lt;Block Node: stylesheet. Contents: [&lt;django.template.defaulttags.LoadNode object at 0xb7ebc10&gt;, &lt;django.template.base.SimpleNode object at 0xb7f0ad0&gt;, &lt;Text Node: &#39;css/base.css&#39;&gt;]&gt;&quot;,
1369 u&#39;stylesheet_ie&#39;: u&quot;&lt;Block Node: stylesheet_ie. Contents: [&lt;django.template.defaulttags.LoadNode object at 0xb7f0d10&gt;, &lt;django.template.base.SimpleNode object at 0xb7f0d50&gt;, &lt;Text Node: &#39;css/ie.css&#39;&gt;]&gt;&quot;,
1370 u&#39;stylesheet_rtl&#39;: u&quot;&lt;Block Node: stylesheet_rtl. Contents: [&lt;django.template.base.SimpleNode object at 0xb7ebcd0&gt;, &lt;Text Node: &#39;css/rtl.css&#39;&gt;]&gt;&quot;,
1371 u&#39;title&#39;: u&#39;&lt;Block Node: title. Contents: []&gt;&#39;,
1372 u&#39;userlinks&#39;: u&quot;&lt;Block Node: userlinks. Contents: [&lt;Text Node: &#39;\n &#39;&gt;, &lt;django.template.defaulttags.URLNode object at 0xb7f0b10&gt;, &lt;Text Node: &#39;\n &#39;&gt;, &lt;If node&gt;, &lt;Text Node: &#39;\n ...&quot;}</pre></td>
1373 </tr>
1374
1375 <tr>
1376 <td>block_context</td>
1377 <td class="code"><pre>u&#39;&lt;django.template.loader_tags.BlockContext object at 0x857e950&gt;&#39;</pre></td>
1378 </tr>
1379
1380 <tr>
1381 <td>n</td>
1382 <td class="code"><pre>u&#39;&lt;Block Node: footer. Contents: [&lt;Text Node: \&#39;&lt;div id=&quot;footer&quot;&gt;&lt;/div&gt;\&#39;&gt;]&gt;&#39;</pre></td>
1383 </tr>
1384
1385 <tr>
1386 <td>context</td>
1387 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1388 </tr>
1389
1390 <tr>
1391 <td>compiled_parent</td>
1392 <td class="code"><pre>u&#39;&lt;django.template.base.Template object at 0xb7eef90&gt;&#39;</pre></td>
1393 </tr>
1394
1395 <tr>
1396 <td>self</td>
1397 <td class="code"><pre>u&#39;&lt;ExtendsNode: extends &quot;admin/base.html&quot;&gt;&#39;</pre></td>
1398 </tr>
1399
1400 </tbody>
1401 </table>
1402
1403 </li>
1404
1405 <li class="frame">
1406 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>_render</code>
1407
1408
1409 <div class="context" id="c138798576">
1410
1411 <ol start="110" class="pre-context" id="pre138798576"><li onclick="toggle('pre138798576', 'post138798576')"></li><li onclick="toggle('pre138798576', 'post138798576')"> def __iter__(self):</li><li onclick="toggle('pre138798576', 'post138798576')"> for node in self.nodelist:</li><li onclick="toggle('pre138798576', 'post138798576')"> for subnode in node:</li><li onclick="toggle('pre138798576', 'post138798576')"> yield subnode</li><li onclick="toggle('pre138798576', 'post138798576')"></li><li onclick="toggle('pre138798576', 'post138798576')"> def _render(self, context):</li></ol>
1412
1413 <ol start="117" class="context-line"><li onclick="toggle('pre138798576', 'post138798576')"> return self.nodelist.render(context) <span>...</span></li></ol>
1414
1415 <ol start='118' class="post-context" id="post138798576"><li onclick="toggle('pre138798576', 'post138798576')"></li><li onclick="toggle('pre138798576', 'post138798576')"> def render(self, context):</li><li onclick="toggle('pre138798576', 'post138798576')"> &quot;Display stage -- can be called many times&quot;</li><li onclick="toggle('pre138798576', 'post138798576')"> context.render_context.push()</li><li onclick="toggle('pre138798576', 'post138798576')"> try:</li><li onclick="toggle('pre138798576', 'post138798576')"> return self._render(context)</li></ol>
1416
1417 </div>
1418
1419
1420
1421 <div class="commands">
1422 <a href="#" onclick="return varToggle(this, '138798576')"><span>&#x25b6;</span> Local vars</a>
1423 </div>
1424 <table class="vars" id="v138798576">
1425 <thead>
1426 <tr>
1427 <th>Variable</th>
1428 <th>Value</th>
1429 </tr>
1430 </thead>
1431 <tbody>
1432
1433 <tr>
1434 <td>self</td>
1435 <td class="code"><pre>u&#39;&lt;django.template.base.Template object at 0xb7eef90&gt;&#39;</pre></td>
1436 </tr>
1437
1438 <tr>
1439 <td>context</td>
1440 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1441 </tr>
1442
1443 </tbody>
1444 </table>
1445
1446 </li>
1447
1448 <li class="frame">
1449 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>render</code>
1450
1451
1452 <div class="context" id="c139847080">
1453
1454 <ol start="737" class="pre-context" id="pre139847080"><li onclick="toggle('pre139847080', 'post139847080')"> # extend_nodelist().</li><li onclick="toggle('pre139847080', 'post139847080')"> contains_nontext = False</li><li onclick="toggle('pre139847080', 'post139847080')"></li><li onclick="toggle('pre139847080', 'post139847080')"> def render(self, context):</li><li onclick="toggle('pre139847080', 'post139847080')"> bits = []</li><li onclick="toggle('pre139847080', 'post139847080')"> for node in self:</li><li onclick="toggle('pre139847080', 'post139847080')"> if isinstance(node, Node):</li></ol>
1455
1456 <ol start="744" class="context-line"><li onclick="toggle('pre139847080', 'post139847080')"> bits.append(self.render_node(node, context)) <span>...</span></li></ol>
1457
1458 <ol start='745' class="post-context" id="post139847080"><li onclick="toggle('pre139847080', 'post139847080')"> else:</li><li onclick="toggle('pre139847080', 'post139847080')"> bits.append(node)</li><li onclick="toggle('pre139847080', 'post139847080')"> return mark_safe(&#39;&#39;.join([force_unicode(b) for b in bits]))</li><li onclick="toggle('pre139847080', 'post139847080')"></li><li onclick="toggle('pre139847080', 'post139847080')"> def get_nodes_by_type(self, nodetype):</li><li onclick="toggle('pre139847080', 'post139847080')"> &quot;Return a list of all nodes of the given type&quot;</li></ol>
1459
1460 </div>
1461
1462
1463
1464 <div class="commands">
1465 <a href="#" onclick="return varToggle(this, '139847080')"><span>&#x25b6;</span> Local vars</a>
1466 </div>
1467 <table class="vars" id="v139847080">
1468 <thead>
1469 <tr>
1470 <th>Variable</th>
1471 <th>Value</th>
1472 </tr>
1473 </thead>
1474 <tbody>
1475
1476 <tr>
1477 <td>node</td>
1478 <td class="code"><pre>u&quot;&lt;Block Node: content. Contents: [&lt;Text Node: &#39;\n &#39;&gt;, &lt;Block Node: object-tools. Contents: []&gt;, &lt;Text Node: &#39;\n &#39;&gt;, &lt;Variable Node: content&gt;, &lt;Text Node: &#39;\n &#39;&gt;]&gt;&quot;</pre></td>
1479 </tr>
1480
1481 <tr>
1482 <td>self</td>
1483 <td class="code"><pre>[u&#39;&lt;django.template.defaulttags.LoadNode object at 0xb7eb410&gt;&#39;,
1484 u&#39;&lt;Text Node: \&#39;&lt;!DOCTYPE html PUBLIC &quot;-/\&#39;&gt;&#39;,
1485 u&#39;&lt;Variable Node: LANGUAGE_CODE|default:&quot;en-us&quot;&gt;&#39;,
1486 u&#39;&lt;Text Node: \&#39;&quot; xml:lang=&quot;\&#39;&gt;&#39;,
1487 u&#39;&lt;Variable Node: LANGUAGE_CODE|default:&quot;en-us&quot;&gt;&#39;,
1488 u&#39;&lt;Text Node: \&#39;&quot; \&#39;&gt;&#39;,
1489 u&#39;&lt;If node&gt;&#39;,
1490 u&quot;&lt;Text Node: &#39;&gt;\n&lt;head&gt;\n&lt;title&gt;&#39;&gt;&quot;,
1491 u&#39;&lt;Block Node: title. Contents: []&gt;&#39;,
1492 u&#39;&lt;Text Node: \&#39;&lt;/title&gt;\n&lt;link rel=&quot;style\&#39;&gt;&#39;,
1493 u&quot;&lt;Block Node: stylesheet. Contents: [&lt;django.template.defaulttags.LoadNode object at 0xb7ebc10&gt;, &lt;django.template.base.SimpleNode object at 0xb7f0ad0&gt;, &lt;Text Node: &#39;css/base.css&#39;&gt;]&gt;&quot;,
1494 u&#39;&lt;Text Node: \&#39;&quot; /&gt;\n\&#39;&gt;&#39;,
1495 u&#39;&lt;Block Node: extrastyle. Contents: []&gt;&#39;,
1496 u&quot;&lt;Text Node: &#39;\n&lt;!--[if lte IE 7]&gt;&lt;link &#39;&gt;&quot;,
1497 u&quot;&lt;Block Node: stylesheet_ie. Contents: [&lt;django.template.defaulttags.LoadNode object at 0xb7f0d10&gt;, &lt;django.template.base.SimpleNode object at 0xb7f0d50&gt;, &lt;Text Node: &#39;css/ie.css&#39;&gt;]&gt;&quot;,
1498 u&#39;&lt;Text Node: \&#39;&quot; /&gt;&lt;![endif]--&gt;\n\&#39;&gt;&#39;,
1499 u&#39;&lt;If node&gt;&#39;,
1500 u&#39;&lt;Text Node: \&#39;\n&lt;script type=&quot;text/javas\&#39;&gt;&#39;,
1501 u&#39;&lt;django.template.defaulttags.FilterNode object at 0xb7f0110&gt;&#39;,
1502 u&#39;&lt;Text Node: \&#39;&quot;;&lt;/script&gt;\n\&#39;&gt;&#39;,
1503 u&#39;&lt;Block Node: extrahead. Contents: []&gt;&#39;,
1504 u&quot;&lt;Text Node: &#39;\n&#39;&gt;&quot;,
1505 u&#39;&lt;Block Node: blockbots. Contents: [&lt;Text Node: \&#39;&lt;meta name=&quot;robots&quot; conte\&#39;&gt;]&gt;&#39;,
1506 u&quot;&lt;Text Node: &#39;\n&lt;/head&gt;\n&#39;&gt;&quot;,
1507 u&#39;&lt;django.template.defaulttags.LoadNode object at 0xb7f0690&gt;&#39;,
1508 u&#39;&lt;Text Node: \&#39;\n\n&lt;body class=&quot;\&#39;&gt;&#39;,
1509 u&#39;&lt;If node&gt;&#39;,
1510 u&#39;&lt;Block Node: bodyclass. Contents: []&gt;&#39;,
1511 u&#39;&lt;Text Node: \&#39;&quot;&gt;\n\n&lt;!-- Container --&gt;\n&lt;d\&#39;&gt;&#39;,
1512 u&#39;&lt;If node&gt;&#39;,
1513 u&quot;&lt;Text Node: &#39;\n\n &#39;&gt;&quot;,
1514 u&#39;&lt;If node&gt;&#39;,
1515 u&quot;&lt;Text Node: &#39;\n\n &lt;!-- Content --&gt;\n &#39;&gt;&quot;,
1516 u&quot;&lt;Block Node: coltype. Contents: [&lt;Text Node: &#39;colM&#39;&gt;]&gt;&quot;,
1517 u&#39;&lt;Text Node: \&#39;&quot;&gt;\n \&#39;&gt;&#39;,
1518 u&#39;&lt;Block Node: pretitle. Contents: []&gt;&#39;,
1519 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1520 u&#39;&lt;Block Node: content_title. Contents: [&lt;If node&gt;]&gt;&#39;,
1521 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1522 u&quot;&lt;Block Node: content. Contents: [&lt;Text Node: &#39;\n &#39;&gt;, &lt;Block Node: object-tools. Contents: []&gt;, &lt;Text Node: &#39;\n &#39;&gt;, &lt;Variable Node: content&gt;, &lt;Text Node: &#39;\n &#39;&gt;]&gt;&quot;,
1523 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1524 u&#39;&lt;Block Node: sidebar. Contents: []&gt;&#39;,
1525 u&#39;&lt;Text Node: \&#39;\n &lt;br class=&quot;clear\&#39;&gt;&#39;,
1526 u&#39;&lt;Block Node: footer. Contents: [&lt;Text Node: \&#39;&lt;div id=&quot;footer&quot;&gt;&lt;/div&gt;\&#39;&gt;]&gt;&#39;,
1527 u&quot;&lt;Text Node: &#39;\n&lt;/div&gt;\n&lt;!-- END Containe&#39;&gt;&quot;]</pre></td>
1528 </tr>
1529
1530 <tr>
1531 <td>bits</td>
1532 <td class="code"><pre>[&#39;&#39;,
1533 u&#39;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;\n&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;&#39;,
1534 u&#39;de&#39;,
1535 u&#39;&quot; xml:lang=&quot;&#39;,
1536 u&#39;de&#39;,
1537 u&#39;&quot; &#39;,
1538 &#39;&#39;,
1539 u&#39;&gt;\n&lt;head&gt;\n&lt;title&gt;&#39;,
1540 u&#39;Import zur \xc4nderung ausw\xe4hlen | Django-Systemverwaltung&#39;,
1541 u&#39;&lt;/title&gt;\n&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&#39;,
1542 u&#39;http://media.acp.mytrafficdata.com/css/base.css&#39;,
1543 u&#39;&quot; /&gt;\n&#39;,
1544 u&#39;\n \n &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://media.acp.mytrafficdata.com/css/changelists.css&quot; /&gt;\n \n \n \n &lt;script type=&quot;text/javascript&quot; src=&quot;/admin/jsi18n/&quot;&gt;&lt;/script&gt;\n \n \n \n&#39;,
1545 u&#39;\n&lt;!--[if lte IE 7]&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&#39;,
1546 u&#39;http://media.acp.mytrafficdata.com/css/ie.css&#39;,
1547 u&#39;&quot; /&gt;&lt;![endif]--&gt;\n&#39;,
1548 &#39;&#39;,
1549 u&#39;\n&lt;script type=&quot;text/javascript&quot;&gt;window.__admin_media_prefix__ = &quot;&#39;,
1550 u&#39;http://media.acp.mytrafficdata.com/&#39;,
1551 u&#39;&quot;;&lt;/script&gt;\n&#39;,
1552 u&#39;\n\n&lt;script type=&quot;text/javascript&quot; src=&quot;http://media.acp.mytrafficdata.com/js/core.js&quot;&gt;&lt;/script&gt;\n&lt;script type=&quot;text/javascript&quot; src=&quot;http://media.acp.mytrafficdata.com/js/admin/RelatedObjectLookups.js&quot;&gt;...&#39;,
1553 u&#39;\n&#39;,
1554 u&#39;&lt;meta name=&quot;robots&quot; content=&quot;NONE,NOARCHIVE&quot; /&gt;&#39;,
1555 u&#39;\n&lt;/head&gt;\n&#39;,
1556 &#39;&#39;,
1557 u&#39;\n\n&lt;body class=&quot;&#39;,
1558 &#39;&#39;,
1559 u&#39;change-list&#39;,
1560 u&#39;&quot;&gt;\n\n&lt;!-- Container --&gt;\n&lt;div id=&quot;container&quot;&gt;\n\n &#39;,
1561 u&#39;\n &lt;!-- Header --&gt;\n &lt;div id=&quot;header&quot;&gt;\n &lt;div id=&quot;branding&quot;&gt;\n \n&lt;h1 id=&quot;site-name&quot;&gt;Django-Verwaltung&lt;/h1&gt;\n\n &lt;/div&gt;\n \n &lt;div id=&quot;user-tools&quot;&gt;\n Willkommen,...&#39;,
1562 u&#39;\n\n &#39;,
1563 &#39;&#39;,
1564 u&#39;\n\n &lt;!-- Content --&gt;\n &lt;div id=&quot;content&quot; class=&quot;&#39;,
1565 u&#39;flex&#39;,
1566 u&#39;&quot;&gt;\n &#39;,
1567 &#39;&#39;,
1568 u&#39;\n &#39;,
1569 u&#39;&lt;h1&gt;Import zur \xc4nderung ausw\xe4hlen&lt;/h1&gt;&#39;,
1570 u&#39;\n &#39;]</pre></td>
1571 </tr>
1572
1573 <tr>
1574 <td>context</td>
1575 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1576 </tr>
1577
1578 </tbody>
1579 </table>
1580
1581 </li>
1582
1583 <li class="frame">
1584 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>render_node</code>
1585
1586
1587 <div class="context" id="c139846576">
1588
1589 <ol start="750" class="pre-context" id="pre139846576"><li onclick="toggle('pre139846576', 'post139846576')"> &quot;Return a list of all nodes of the given type&quot;</li><li onclick="toggle('pre139846576', 'post139846576')"> nodes = []</li><li onclick="toggle('pre139846576', 'post139846576')"> for node in self:</li><li onclick="toggle('pre139846576', 'post139846576')"> nodes.extend(node.get_nodes_by_type(nodetype))</li><li onclick="toggle('pre139846576', 'post139846576')"> return nodes</li><li onclick="toggle('pre139846576', 'post139846576')"></li><li onclick="toggle('pre139846576', 'post139846576')"> def render_node(self, node, context):</li></ol>
1590
1591 <ol start="757" class="context-line"><li onclick="toggle('pre139846576', 'post139846576')"> return node.render(context) <span>...</span></li></ol>
1592
1593 <ol start='758' class="post-context" id="post139846576"><li onclick="toggle('pre139846576', 'post139846576')"></li><li onclick="toggle('pre139846576', 'post139846576')">class TextNode(Node):</li><li onclick="toggle('pre139846576', 'post139846576')"> def __init__(self, s):</li><li onclick="toggle('pre139846576', 'post139846576')"> self.s = s</li><li onclick="toggle('pre139846576', 'post139846576')"></li><li onclick="toggle('pre139846576', 'post139846576')"> def __repr__(self):</li></ol>
1594
1595 </div>
1596
1597
1598
1599 <div class="commands">
1600 <a href="#" onclick="return varToggle(this, '139846576')"><span>&#x25b6;</span> Local vars</a>
1601 </div>
1602 <table class="vars" id="v139846576">
1603 <thead>
1604 <tr>
1605 <th>Variable</th>
1606 <th>Value</th>
1607 </tr>
1608 </thead>
1609 <tbody>
1610
1611 <tr>
1612 <td>node</td>
1613 <td class="code"><pre>u&quot;&lt;Block Node: content. Contents: [&lt;Text Node: &#39;\n &#39;&gt;, &lt;Block Node: object-tools. Contents: []&gt;, &lt;Text Node: &#39;\n &#39;&gt;, &lt;Variable Node: content&gt;, &lt;Text Node: &#39;\n &#39;&gt;]&gt;&quot;</pre></td>
1614 </tr>
1615
1616 <tr>
1617 <td>self</td>
1618 <td class="code"><pre>[u&#39;&lt;django.template.defaulttags.LoadNode object at 0xb7eb410&gt;&#39;,
1619 u&#39;&lt;Text Node: \&#39;&lt;!DOCTYPE html PUBLIC &quot;-/\&#39;&gt;&#39;,
1620 u&#39;&lt;Variable Node: LANGUAGE_CODE|default:&quot;en-us&quot;&gt;&#39;,
1621 u&#39;&lt;Text Node: \&#39;&quot; xml:lang=&quot;\&#39;&gt;&#39;,
1622 u&#39;&lt;Variable Node: LANGUAGE_CODE|default:&quot;en-us&quot;&gt;&#39;,
1623 u&#39;&lt;Text Node: \&#39;&quot; \&#39;&gt;&#39;,
1624 u&#39;&lt;If node&gt;&#39;,
1625 u&quot;&lt;Text Node: &#39;&gt;\n&lt;head&gt;\n&lt;title&gt;&#39;&gt;&quot;,
1626 u&#39;&lt;Block Node: title. Contents: []&gt;&#39;,
1627 u&#39;&lt;Text Node: \&#39;&lt;/title&gt;\n&lt;link rel=&quot;style\&#39;&gt;&#39;,
1628 u&quot;&lt;Block Node: stylesheet. Contents: [&lt;django.template.defaulttags.LoadNode object at 0xb7ebc10&gt;, &lt;django.template.base.SimpleNode object at 0xb7f0ad0&gt;, &lt;Text Node: &#39;css/base.css&#39;&gt;]&gt;&quot;,
1629 u&#39;&lt;Text Node: \&#39;&quot; /&gt;\n\&#39;&gt;&#39;,
1630 u&#39;&lt;Block Node: extrastyle. Contents: []&gt;&#39;,
1631 u&quot;&lt;Text Node: &#39;\n&lt;!--[if lte IE 7]&gt;&lt;link &#39;&gt;&quot;,
1632 u&quot;&lt;Block Node: stylesheet_ie. Contents: [&lt;django.template.defaulttags.LoadNode object at 0xb7f0d10&gt;, &lt;django.template.base.SimpleNode object at 0xb7f0d50&gt;, &lt;Text Node: &#39;css/ie.css&#39;&gt;]&gt;&quot;,
1633 u&#39;&lt;Text Node: \&#39;&quot; /&gt;&lt;![endif]--&gt;\n\&#39;&gt;&#39;,
1634 u&#39;&lt;If node&gt;&#39;,
1635 u&#39;&lt;Text Node: \&#39;\n&lt;script type=&quot;text/javas\&#39;&gt;&#39;,
1636 u&#39;&lt;django.template.defaulttags.FilterNode object at 0xb7f0110&gt;&#39;,
1637 u&#39;&lt;Text Node: \&#39;&quot;;&lt;/script&gt;\n\&#39;&gt;&#39;,
1638 u&#39;&lt;Block Node: extrahead. Contents: []&gt;&#39;,
1639 u&quot;&lt;Text Node: &#39;\n&#39;&gt;&quot;,
1640 u&#39;&lt;Block Node: blockbots. Contents: [&lt;Text Node: \&#39;&lt;meta name=&quot;robots&quot; conte\&#39;&gt;]&gt;&#39;,
1641 u&quot;&lt;Text Node: &#39;\n&lt;/head&gt;\n&#39;&gt;&quot;,
1642 u&#39;&lt;django.template.defaulttags.LoadNode object at 0xb7f0690&gt;&#39;,
1643 u&#39;&lt;Text Node: \&#39;\n\n&lt;body class=&quot;\&#39;&gt;&#39;,
1644 u&#39;&lt;If node&gt;&#39;,
1645 u&#39;&lt;Block Node: bodyclass. Contents: []&gt;&#39;,
1646 u&#39;&lt;Text Node: \&#39;&quot;&gt;\n\n&lt;!-- Container --&gt;\n&lt;d\&#39;&gt;&#39;,
1647 u&#39;&lt;If node&gt;&#39;,
1648 u&quot;&lt;Text Node: &#39;\n\n &#39;&gt;&quot;,
1649 u&#39;&lt;If node&gt;&#39;,
1650 u&quot;&lt;Text Node: &#39;\n\n &lt;!-- Content --&gt;\n &#39;&gt;&quot;,
1651 u&quot;&lt;Block Node: coltype. Contents: [&lt;Text Node: &#39;colM&#39;&gt;]&gt;&quot;,
1652 u&#39;&lt;Text Node: \&#39;&quot;&gt;\n \&#39;&gt;&#39;,
1653 u&#39;&lt;Block Node: pretitle. Contents: []&gt;&#39;,
1654 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1655 u&#39;&lt;Block Node: content_title. Contents: [&lt;If node&gt;]&gt;&#39;,
1656 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1657 u&quot;&lt;Block Node: content. Contents: [&lt;Text Node: &#39;\n &#39;&gt;, &lt;Block Node: object-tools. Contents: []&gt;, &lt;Text Node: &#39;\n &#39;&gt;, &lt;Variable Node: content&gt;, &lt;Text Node: &#39;\n &#39;&gt;]&gt;&quot;,
1658 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1659 u&#39;&lt;Block Node: sidebar. Contents: []&gt;&#39;,
1660 u&#39;&lt;Text Node: \&#39;\n &lt;br class=&quot;clear\&#39;&gt;&#39;,
1661 u&#39;&lt;Block Node: footer. Contents: [&lt;Text Node: \&#39;&lt;div id=&quot;footer&quot;&gt;&lt;/div&gt;\&#39;&gt;]&gt;&#39;,
1662 u&quot;&lt;Text Node: &#39;\n&lt;/div&gt;\n&lt;!-- END Containe&#39;&gt;&quot;]</pre></td>
1663 </tr>
1664
1665 <tr>
1666 <td>context</td>
1667 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1668 </tr>
1669
1670 </tbody>
1671 </table>
1672
1673 </li>
1674
1675 <li class="frame">
1676 <code>/home/dcollectpy/htdocs/prod/lib/django/template/loader_tags.py</code> in <code>render</code>
1677
1678
1679 <div class="context" id="c139846720">
1680
1681 <ol start="57" class="pre-context" id="pre139846720"><li onclick="toggle('pre139846720', 'post139846720')"> push = block = block_context.pop(self.name)</li><li onclick="toggle('pre139846720', 'post139846720')"> if block is None:</li><li onclick="toggle('pre139846720', 'post139846720')"> block = self</li><li onclick="toggle('pre139846720', 'post139846720')"> # Create new block so we can store context without thread-safety issues.</li><li onclick="toggle('pre139846720', 'post139846720')"> block = BlockNode(block.name, block.nodelist)</li><li onclick="toggle('pre139846720', 'post139846720')"> block.context = context</li><li onclick="toggle('pre139846720', 'post139846720')"> context[&#39;block&#39;] = block</li></ol>
1682
1683 <ol start="64" class="context-line"><li onclick="toggle('pre139846720', 'post139846720')"> result = block.nodelist.render(context) <span>...</span></li></ol>
1684
1685 <ol start='65' class="post-context" id="post139846720"><li onclick="toggle('pre139846720', 'post139846720')"> if push is not None:</li><li onclick="toggle('pre139846720', 'post139846720')"> block_context.push(self.name, push)</li><li onclick="toggle('pre139846720', 'post139846720')"> context.pop()</li><li onclick="toggle('pre139846720', 'post139846720')"> return result</li><li onclick="toggle('pre139846720', 'post139846720')"></li><li onclick="toggle('pre139846720', 'post139846720')"> def super(self):</li></ol>
1686
1687 </div>
1688
1689
1690
1691 <div class="commands">
1692 <a href="#" onclick="return varToggle(this, '139846720')"><span>&#x25b6;</span> Local vars</a>
1693 </div>
1694 <table class="vars" id="v139846720">
1695 <thead>
1696 <tr>
1697 <th>Variable</th>
1698 <th>Value</th>
1699 </tr>
1700 </thead>
1701 <tbody>
1702
1703 <tr>
1704 <td>push</td>
1705 <td class="code"><pre>u&#39;&lt;Block Node: content. Contents: [&lt;Text Node: \&#39;\n &lt;div id=&quot;content-main&quot;\&#39;&gt;, &lt;Block Node: object-tools. Contents: [&lt;Text Node: \&#39;\n \&#39;&gt;, &lt;If node&gt;, &lt;Text Node: \&#39;\n \&#39;&gt;]&gt;, &lt;Text Node: \&#39;\n \&#39;&gt;, &lt;If no...&#39;</pre></td>
1706 </tr>
1707
1708 <tr>
1709 <td>block_context</td>
1710 <td class="code"><pre>u&#39;&lt;django.template.loader_tags.BlockContext object at 0x857e950&gt;&#39;</pre></td>
1711 </tr>
1712
1713 <tr>
1714 <td>context</td>
1715 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1716 </tr>
1717
1718 <tr>
1719 <td>block</td>
1720 <td class="code"><pre>u&#39;&lt;Block Node: content. Contents: [&lt;Text Node: \&#39;\n &lt;div id=&quot;content-main&quot;\&#39;&gt;, &lt;Block Node: object-tools. Contents: [&lt;Text Node: \&#39;\n \&#39;&gt;, &lt;If node&gt;, &lt;Text Node: \&#39;\n \&#39;&gt;]&gt;, &lt;Text Node: \&#39;\n \&#39;&gt;, &lt;If no...&#39;</pre></td>
1721 </tr>
1722
1723 <tr>
1724 <td>self</td>
1725 <td class="code"><pre>u&quot;&lt;Block Node: content. Contents: [&lt;Text Node: &#39;\n &#39;&gt;, &lt;Block Node: object-tools. Contents: []&gt;, &lt;Text Node: &#39;\n &#39;&gt;, &lt;Variable Node: content&gt;, &lt;Text Node: &#39;\n &#39;&gt;]&gt;&quot;</pre></td>
1726 </tr>
1727
1728 </tbody>
1729 </table>
1730
1731 </li>
1732
1733 <li class="frame">
1734 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>render</code>
1735
1736
1737 <div class="context" id="c175078720">
1738
1739 <ol start="737" class="pre-context" id="pre175078720"><li onclick="toggle('pre175078720', 'post175078720')"> # extend_nodelist().</li><li onclick="toggle('pre175078720', 'post175078720')"> contains_nontext = False</li><li onclick="toggle('pre175078720', 'post175078720')"></li><li onclick="toggle('pre175078720', 'post175078720')"> def render(self, context):</li><li onclick="toggle('pre175078720', 'post175078720')"> bits = []</li><li onclick="toggle('pre175078720', 'post175078720')"> for node in self:</li><li onclick="toggle('pre175078720', 'post175078720')"> if isinstance(node, Node):</li></ol>
1740
1741 <ol start="744" class="context-line"><li onclick="toggle('pre175078720', 'post175078720')"> bits.append(self.render_node(node, context)) <span>...</span></li></ol>
1742
1743 <ol start='745' class="post-context" id="post175078720"><li onclick="toggle('pre175078720', 'post175078720')"> else:</li><li onclick="toggle('pre175078720', 'post175078720')"> bits.append(node)</li><li onclick="toggle('pre175078720', 'post175078720')"> return mark_safe(&#39;&#39;.join([force_unicode(b) for b in bits]))</li><li onclick="toggle('pre175078720', 'post175078720')"></li><li onclick="toggle('pre175078720', 'post175078720')"> def get_nodes_by_type(self, nodetype):</li><li onclick="toggle('pre175078720', 'post175078720')"> &quot;Return a list of all nodes of the given type&quot;</li></ol>
1744
1745 </div>
1746
1747
1748
1749 <div class="commands">
1750 <a href="#" onclick="return varToggle(this, '175078720')"><span>&#x25b6;</span> Local vars</a>
1751 </div>
1752 <table class="vars" id="v175078720">
1753 <thead>
1754 <tr>
1755 <th>Variable</th>
1756 <th>Value</th>
1757 </tr>
1758 </thead>
1759 <tbody>
1760
1761 <tr>
1762 <td>node</td>
1763 <td class="code"><pre>u&#39;&lt;Block Node: date_hierarchy. Contents: [&lt;django.template.base.InclusionNode object at 0x8786350&gt;]&gt;&#39;</pre></td>
1764 </tr>
1765
1766 <tr>
1767 <td>self</td>
1768 <td class="code"><pre>[u&#39;&lt;Text Node: \&#39;\n &lt;div id=&quot;content-main&quot;\&#39;&gt;&#39;,
1769 u&quot;&lt;Block Node: object-tools. Contents: [&lt;Text Node: &#39;\n &#39;&gt;, &lt;If node&gt;, &lt;Text Node: &#39;\n &#39;&gt;]&gt;&quot;,
1770 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1771 u&#39;&lt;If node&gt;&#39;,
1772 u&#39;&lt;Text Node: \&#39;\n &lt;div class=&quot;module\&#39;&gt;&#39;,
1773 u&#39;&lt;If node&gt;&#39;,
1774 u&#39;&lt;Text Node: \&#39;&quot; id=&quot;changelist&quot;&gt;\n \&#39;&gt;&#39;,
1775 u&#39;&lt;Block Node: search. Contents: [&lt;django.template.base.InclusionNode object at 0x8786850&gt;]&gt;&#39;,
1776 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1777 u&#39;&lt;Block Node: date_hierarchy. Contents: [&lt;django.template.base.InclusionNode object at 0x8786350&gt;]&gt;&#39;,
1778 u&quot;&lt;Text Node: &#39;\n\n &#39;&gt;&quot;,
1779 u&quot;&lt;Block Node: filters. Contents: [&lt;Text Node: &#39;\n &#39;&gt;, &lt;If node&gt;, &lt;Text Node: &#39;\n &#39;&gt;]&gt;&quot;,
1780 u&#39;&lt;Text Node: \&#39;\n\n &lt;form id=&quot;changel\&#39;&gt;&#39;,
1781 u&#39;&lt;If node&gt;&#39;,
1782 u&quot;&lt;Text Node: &#39;&gt;&#39;&gt;&quot;,
1783 u&#39;&lt;django.template.defaulttags.CsrfTokenNode object at 0x87868d0&gt;&#39;,
1784 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1785 u&#39;&lt;If node&gt;&#39;,
1786 u&quot;&lt;Text Node: &#39;\n\n &#39;&gt;&quot;,
1787 u&quot;&lt;Block Node: result_list. Contents: [&lt;Text Node: &#39;\n &#39;&gt;, &lt;If node&gt;, &lt;Text Node: &#39;\n &#39;&gt;, &lt;django.template.base.InclusionNode object at 0xb54a250&gt;, &lt;Text Node: &#39;\n &#39;&gt;, &lt;If node&gt;,...&quot;,
1788 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1789 u&#39;&lt;Block Node: pagination. Contents: [&lt;django.template.base.InclusionNode object at 0xb54ad50&gt;]&gt;&#39;,
1790 u&quot;&lt;Text Node: &#39;\n &lt;/form&gt;\n &lt;/div&gt;&#39;&gt;&quot;]</pre></td>
1791 </tr>
1792
1793 <tr>
1794 <td>bits</td>
1795 <td class="code"><pre>[u&#39;\n &lt;div id=&quot;content-main&quot;&gt;\n &#39;,
1796 u&#39;\n \n &lt;ul class=&quot;object-tools&quot;&gt;\n \n &lt;li&gt;\n &lt;a href=&quot;add/&quot; class=&quot;addlink&quot;&gt;\n Import hinzuf\xfcgen\n &lt;/a&gt;\n &lt;/li&gt;\n \n ...&#39;,
1797 u&#39;\n &#39;,
1798 &#39;&#39;,
1799 u&#39;\n &lt;div class=&quot;module&#39;,
1800 u&#39; filtered&#39;,
1801 u&#39;&quot; id=&quot;changelist&quot;&gt;\n &#39;,
1802 u&#39;\n\n\n&lt;div id=&quot;toolbar&quot;&gt;&lt;form id=&quot;changelist-search&quot; action=&quot;&quot; method=&quot;get&quot;&gt;\n&lt;div&gt;&lt;!-- DIV needed for valid HTML --&gt;\n&lt;label for=&quot;searchbar&quot;&gt;&lt;img src=&quot;http://media.acp.mytrafficdata.com/img/admin/icon_sea...&#39;,
1803 u&#39;\n &#39;]</pre></td>
1804 </tr>
1805
1806 <tr>
1807 <td>context</td>
1808 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1809 </tr>
1810
1811 </tbody>
1812 </table>
1813
1814 </li>
1815
1816 <li class="frame">
1817 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>render_node</code>
1818
1819
1820 <div class="context" id="c175078648">
1821
1822 <ol start="750" class="pre-context" id="pre175078648"><li onclick="toggle('pre175078648', 'post175078648')"> &quot;Return a list of all nodes of the given type&quot;</li><li onclick="toggle('pre175078648', 'post175078648')"> nodes = []</li><li onclick="toggle('pre175078648', 'post175078648')"> for node in self:</li><li onclick="toggle('pre175078648', 'post175078648')"> nodes.extend(node.get_nodes_by_type(nodetype))</li><li onclick="toggle('pre175078648', 'post175078648')"> return nodes</li><li onclick="toggle('pre175078648', 'post175078648')"></li><li onclick="toggle('pre175078648', 'post175078648')"> def render_node(self, node, context):</li></ol>
1823
1824 <ol start="757" class="context-line"><li onclick="toggle('pre175078648', 'post175078648')"> return node.render(context) <span>...</span></li></ol>
1825
1826 <ol start='758' class="post-context" id="post175078648"><li onclick="toggle('pre175078648', 'post175078648')"></li><li onclick="toggle('pre175078648', 'post175078648')">class TextNode(Node):</li><li onclick="toggle('pre175078648', 'post175078648')"> def __init__(self, s):</li><li onclick="toggle('pre175078648', 'post175078648')"> self.s = s</li><li onclick="toggle('pre175078648', 'post175078648')"></li><li onclick="toggle('pre175078648', 'post175078648')"> def __repr__(self):</li></ol>
1827
1828 </div>
1829
1830
1831
1832 <div class="commands">
1833 <a href="#" onclick="return varToggle(this, '175078648')"><span>&#x25b6;</span> Local vars</a>
1834 </div>
1835 <table class="vars" id="v175078648">
1836 <thead>
1837 <tr>
1838 <th>Variable</th>
1839 <th>Value</th>
1840 </tr>
1841 </thead>
1842 <tbody>
1843
1844 <tr>
1845 <td>node</td>
1846 <td class="code"><pre>u&#39;&lt;Block Node: date_hierarchy. Contents: [&lt;django.template.base.InclusionNode object at 0x8786350&gt;]&gt;&#39;</pre></td>
1847 </tr>
1848
1849 <tr>
1850 <td>self</td>
1851 <td class="code"><pre>[u&#39;&lt;Text Node: \&#39;\n &lt;div id=&quot;content-main&quot;\&#39;&gt;&#39;,
1852 u&quot;&lt;Block Node: object-tools. Contents: [&lt;Text Node: &#39;\n &#39;&gt;, &lt;If node&gt;, &lt;Text Node: &#39;\n &#39;&gt;]&gt;&quot;,
1853 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1854 u&#39;&lt;If node&gt;&#39;,
1855 u&#39;&lt;Text Node: \&#39;\n &lt;div class=&quot;module\&#39;&gt;&#39;,
1856 u&#39;&lt;If node&gt;&#39;,
1857 u&#39;&lt;Text Node: \&#39;&quot; id=&quot;changelist&quot;&gt;\n \&#39;&gt;&#39;,
1858 u&#39;&lt;Block Node: search. Contents: [&lt;django.template.base.InclusionNode object at 0x8786850&gt;]&gt;&#39;,
1859 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1860 u&#39;&lt;Block Node: date_hierarchy. Contents: [&lt;django.template.base.InclusionNode object at 0x8786350&gt;]&gt;&#39;,
1861 u&quot;&lt;Text Node: &#39;\n\n &#39;&gt;&quot;,
1862 u&quot;&lt;Block Node: filters. Contents: [&lt;Text Node: &#39;\n &#39;&gt;, &lt;If node&gt;, &lt;Text Node: &#39;\n &#39;&gt;]&gt;&quot;,
1863 u&#39;&lt;Text Node: \&#39;\n\n &lt;form id=&quot;changel\&#39;&gt;&#39;,
1864 u&#39;&lt;If node&gt;&#39;,
1865 u&quot;&lt;Text Node: &#39;&gt;&#39;&gt;&quot;,
1866 u&#39;&lt;django.template.defaulttags.CsrfTokenNode object at 0x87868d0&gt;&#39;,
1867 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1868 u&#39;&lt;If node&gt;&#39;,
1869 u&quot;&lt;Text Node: &#39;\n\n &#39;&gt;&quot;,
1870 u&quot;&lt;Block Node: result_list. Contents: [&lt;Text Node: &#39;\n &#39;&gt;, &lt;If node&gt;, &lt;Text Node: &#39;\n &#39;&gt;, &lt;django.template.base.InclusionNode object at 0xb54a250&gt;, &lt;Text Node: &#39;\n &#39;&gt;, &lt;If node&gt;,...&quot;,
1871 u&quot;&lt;Text Node: &#39;\n &#39;&gt;&quot;,
1872 u&#39;&lt;Block Node: pagination. Contents: [&lt;django.template.base.InclusionNode object at 0xb54ad50&gt;]&gt;&#39;,
1873 u&quot;&lt;Text Node: &#39;\n &lt;/form&gt;\n &lt;/div&gt;&#39;&gt;&quot;]</pre></td>
1874 </tr>
1875
1876 <tr>
1877 <td>context</td>
1878 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1879 </tr>
1880
1881 </tbody>
1882 </table>
1883
1884 </li>
1885
1886 <li class="frame">
1887 <code>/home/dcollectpy/htdocs/prod/lib/django/template/loader_tags.py</code> in <code>render</code>
1888
1889
1890 <div class="context" id="c175078000">
1891
1892 <ol start="57" class="pre-context" id="pre175078000"><li onclick="toggle('pre175078000', 'post175078000')"> push = block = block_context.pop(self.name)</li><li onclick="toggle('pre175078000', 'post175078000')"> if block is None:</li><li onclick="toggle('pre175078000', 'post175078000')"> block = self</li><li onclick="toggle('pre175078000', 'post175078000')"> # Create new block so we can store context without thread-safety issues.</li><li onclick="toggle('pre175078000', 'post175078000')"> block = BlockNode(block.name, block.nodelist)</li><li onclick="toggle('pre175078000', 'post175078000')"> block.context = context</li><li onclick="toggle('pre175078000', 'post175078000')"> context[&#39;block&#39;] = block</li></ol>
1893
1894 <ol start="64" class="context-line"><li onclick="toggle('pre175078000', 'post175078000')"> result = block.nodelist.render(context) <span>...</span></li></ol>
1895
1896 <ol start='65' class="post-context" id="post175078000"><li onclick="toggle('pre175078000', 'post175078000')"> if push is not None:</li><li onclick="toggle('pre175078000', 'post175078000')"> block_context.push(self.name, push)</li><li onclick="toggle('pre175078000', 'post175078000')"> context.pop()</li><li onclick="toggle('pre175078000', 'post175078000')"> return result</li><li onclick="toggle('pre175078000', 'post175078000')"></li><li onclick="toggle('pre175078000', 'post175078000')"> def super(self):</li></ol>
1897
1898 </div>
1899
1900
1901
1902 <div class="commands">
1903 <a href="#" onclick="return varToggle(this, '175078000')"><span>&#x25b6;</span> Local vars</a>
1904 </div>
1905 <table class="vars" id="v175078000">
1906 <thead>
1907 <tr>
1908 <th>Variable</th>
1909 <th>Value</th>
1910 </tr>
1911 </thead>
1912 <tbody>
1913
1914 <tr>
1915 <td>push</td>
1916 <td class="code"><pre>u&#39;&lt;Block Node: date_hierarchy. Contents: [&lt;django.template.base.InclusionNode object at 0x8786350&gt;]&gt;&#39;</pre></td>
1917 </tr>
1918
1919 <tr>
1920 <td>block_context</td>
1921 <td class="code"><pre>u&#39;&lt;django.template.loader_tags.BlockContext object at 0x857e950&gt;&#39;</pre></td>
1922 </tr>
1923
1924 <tr>
1925 <td>context</td>
1926 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1927 </tr>
1928
1929 <tr>
1930 <td>block</td>
1931 <td class="code"><pre>u&#39;&lt;Block Node: date_hierarchy. Contents: [&lt;django.template.base.InclusionNode object at 0x8786350&gt;]&gt;&#39;</pre></td>
1932 </tr>
1933
1934 <tr>
1935 <td>self</td>
1936 <td class="code"><pre>u&#39;&lt;Block Node: date_hierarchy. Contents: [&lt;django.template.base.InclusionNode object at 0x8786350&gt;]&gt;&#39;</pre></td>
1937 </tr>
1938
1939 </tbody>
1940 </table>
1941
1942 </li>
1943
1944 <li class="frame">
1945 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>render</code>
1946
1947
1948 <div class="context" id="c105993136">
1949
1950 <ol start="737" class="pre-context" id="pre105993136"><li onclick="toggle('pre105993136', 'post105993136')"> # extend_nodelist().</li><li onclick="toggle('pre105993136', 'post105993136')"> contains_nontext = False</li><li onclick="toggle('pre105993136', 'post105993136')"></li><li onclick="toggle('pre105993136', 'post105993136')"> def render(self, context):</li><li onclick="toggle('pre105993136', 'post105993136')"> bits = []</li><li onclick="toggle('pre105993136', 'post105993136')"> for node in self:</li><li onclick="toggle('pre105993136', 'post105993136')"> if isinstance(node, Node):</li></ol>
1951
1952 <ol start="744" class="context-line"><li onclick="toggle('pre105993136', 'post105993136')"> bits.append(self.render_node(node, context)) <span>...</span></li></ol>
1953
1954 <ol start='745' class="post-context" id="post105993136"><li onclick="toggle('pre105993136', 'post105993136')"> else:</li><li onclick="toggle('pre105993136', 'post105993136')"> bits.append(node)</li><li onclick="toggle('pre105993136', 'post105993136')"> return mark_safe(&#39;&#39;.join([force_unicode(b) for b in bits]))</li><li onclick="toggle('pre105993136', 'post105993136')"></li><li onclick="toggle('pre105993136', 'post105993136')"> def get_nodes_by_type(self, nodetype):</li><li onclick="toggle('pre105993136', 'post105993136')"> &quot;Return a list of all nodes of the given type&quot;</li></ol>
1955
1956 </div>
1957
1958
1959
1960 <div class="commands">
1961 <a href="#" onclick="return varToggle(this, '105993136')"><span>&#x25b6;</span> Local vars</a>
1962 </div>
1963 <table class="vars" id="v105993136">
1964 <thead>
1965 <tr>
1966 <th>Variable</th>
1967 <th>Value</th>
1968 </tr>
1969 </thead>
1970 <tbody>
1971
1972 <tr>
1973 <td>node</td>
1974 <td class="code"><pre>u&#39;&lt;django.template.base.InclusionNode object at 0x8786350&gt;&#39;</pre></td>
1975 </tr>
1976
1977 <tr>
1978 <td>self</td>
1979 <td class="code"><pre>[u&#39;&lt;django.template.base.InclusionNode object at 0x8786350&gt;&#39;]</pre></td>
1980 </tr>
1981
1982 <tr>
1983 <td>bits</td>
1984 <td class="code"><pre>[]</pre></td>
1985 </tr>
1986
1987 <tr>
1988 <td>context</td>
1989 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
1990 </tr>
1991
1992 </tbody>
1993 </table>
1994
1995 </li>
1996
1997 <li class="frame">
1998 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>render_node</code>
1999
2000
2001 <div class="context" id="c140926488">
2002
2003 <ol start="750" class="pre-context" id="pre140926488"><li onclick="toggle('pre140926488', 'post140926488')"> &quot;Return a list of all nodes of the given type&quot;</li><li onclick="toggle('pre140926488', 'post140926488')"> nodes = []</li><li onclick="toggle('pre140926488', 'post140926488')"> for node in self:</li><li onclick="toggle('pre140926488', 'post140926488')"> nodes.extend(node.get_nodes_by_type(nodetype))</li><li onclick="toggle('pre140926488', 'post140926488')"> return nodes</li><li onclick="toggle('pre140926488', 'post140926488')"></li><li onclick="toggle('pre140926488', 'post140926488')"> def render_node(self, node, context):</li></ol>
2004
2005 <ol start="757" class="context-line"><li onclick="toggle('pre140926488', 'post140926488')"> return node.render(context) <span>...</span></li></ol>
2006
2007 <ol start='758' class="post-context" id="post140926488"><li onclick="toggle('pre140926488', 'post140926488')"></li><li onclick="toggle('pre140926488', 'post140926488')">class TextNode(Node):</li><li onclick="toggle('pre140926488', 'post140926488')"> def __init__(self, s):</li><li onclick="toggle('pre140926488', 'post140926488')"> self.s = s</li><li onclick="toggle('pre140926488', 'post140926488')"></li><li onclick="toggle('pre140926488', 'post140926488')"> def __repr__(self):</li></ol>
2008
2009 </div>
2010
2011
2012
2013 <div class="commands">
2014 <a href="#" onclick="return varToggle(this, '140926488')"><span>&#x25b6;</span> Local vars</a>
2015 </div>
2016 <table class="vars" id="v140926488">
2017 <thead>
2018 <tr>
2019 <th>Variable</th>
2020 <th>Value</th>
2021 </tr>
2022 </thead>
2023 <tbody>
2024
2025 <tr>
2026 <td>node</td>
2027 <td class="code"><pre>u&#39;&lt;django.template.base.InclusionNode object at 0x8786350&gt;&#39;</pre></td>
2028 </tr>
2029
2030 <tr>
2031 <td>self</td>
2032 <td class="code"><pre>[u&#39;&lt;django.template.base.InclusionNode object at 0x8786350&gt;&#39;]</pre></td>
2033 </tr>
2034
2035 <tr>
2036 <td>context</td>
2037 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
2038 </tr>
2039
2040 </tbody>
2041 </table>
2042
2043 </li>
2044
2045 <li class="frame">
2046 <code>/home/dcollectpy/htdocs/prod/lib/django/template/base.py</code> in <code>render</code>
2047
2048
2049 <div class="context" id="c140723840">
2050
2051 <ol start="914" class="pre-context" id="pre140723840"><li onclick="toggle('pre140723840', 'post140723840')"> def render(self, context):</li><li onclick="toggle('pre140723840', 'post140723840')"> resolved_vars = [var.resolve(context) for var in self.vars_to_resolve]</li><li onclick="toggle('pre140723840', 'post140723840')"> if takes_context:</li><li onclick="toggle('pre140723840', 'post140723840')"> args = [context] + resolved_vars</li><li onclick="toggle('pre140723840', 'post140723840')"> else:</li><li onclick="toggle('pre140723840', 'post140723840')"> args = resolved_vars</li><li onclick="toggle('pre140723840', 'post140723840')"></li></ol>
2052
2053 <ol start="921" class="context-line"><li onclick="toggle('pre140723840', 'post140723840')"> dict = func(*args) <span>...</span></li></ol>
2054
2055 <ol start='922' class="post-context" id="post140723840"><li onclick="toggle('pre140723840', 'post140723840')"></li><li onclick="toggle('pre140723840', 'post140723840')"> if not getattr(self, &#39;nodelist&#39;, False):</li><li onclick="toggle('pre140723840', 'post140723840')"> from django.template.loader import get_template, select_template</li><li onclick="toggle('pre140723840', 'post140723840')"> if not isinstance(file_name, basestring) and is_iterable(file_name):</li><li onclick="toggle('pre140723840', 'post140723840')"> t = select_template(file_name)</li><li onclick="toggle('pre140723840', 'post140723840')"> else:</li></ol>
2056
2057 </div>
2058
2059
2060
2061 <div class="commands">
2062 <a href="#" onclick="return varToggle(this, '140723840')"><span>&#x25b6;</span> Local vars</a>
2063 </div>
2064 <table class="vars" id="v140723840">
2065 <thead>
2066 <tr>
2067 <th>Variable</th>
2068 <th>Value</th>
2069 </tr>
2070 </thead>
2071 <tbody>
2072
2073 <tr>
2074 <td>resolved_vars</td>
2075 <td class="code"><pre>[u&#39;&lt;django.contrib.admin.views.main.ChangeList object at 0xb548150&gt;&#39;]</pre></td>
2076 </tr>
2077
2078 <tr>
2079 <td>takes_context</td>
2080 <td class="code"><pre>False</pre></td>
2081 </tr>
2082
2083 <tr>
2084 <td>func</td>
2085 <td class="code"><pre>u&#39;&lt;function date_hierarchy at 0xb4bbd70&gt;&#39;</pre></td>
2086 </tr>
2087
2088 <tr>
2089 <td>file_name</td>
2090 <td class="code"><pre>&#39;admin/date_hierarchy.html&#39;</pre></td>
2091 </tr>
2092
2093 <tr>
2094 <td>self</td>
2095 <td class="code"><pre>u&#39;&lt;django.template.base.InclusionNode object at 0x8786350&gt;&#39;</pre></td>
2096 </tr>
2097
2098 <tr>
2099 <td>args</td>
2100 <td class="code"><pre>[u&#39;&lt;django.contrib.admin.views.main.ChangeList object at 0xb548150&gt;&#39;]</pre></td>
2101 </tr>
2102
2103 <tr>
2104 <td>context</td>
2105 <td class="code"><pre>u&quot;[{}, {&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0xb632d50&gt;}, {}, {&#39;LANGUAGES&#39;: ((&#39;en&#39;, &#39;English&#39;), (&#39;de&#39;, &#39;German&#39;), (&#39;fr&#39;, &#39;French&#39;), (&#39;es&#39;, &#39;Spanish&#39;), (&#39;nl&#39;, &#39;Dutch&#39;), (&#39;it&#39;, &#39;Ital...&quot;</pre></td>
2106 </tr>
2107
2108 <tr>
2109 <td>var</td>
2110 <td class="code"><pre>u&#39;cl&#39;</pre></td>
2111 </tr>
2112
2113 <tr>
2114 <td>context_class</td>
2115 <td class="code"><pre>u&quot;&lt;class &#39;django.template.context.Context&#39;&gt;&quot;</pre></td>
2116 </tr>
2117
2118 </tbody>
2119 </table>
2120
2121 </li>
2122
2123 <li class="frame">
2124 <code>/home/dcollectpy/htdocs/prod/lib/django/contrib/admin/templatetags/admin_list.py</code> in <code>date_hierarchy</code>
2125
2126
2127 <div class="context" id="c140725496">
2128
2129 <ol start="247" class="pre-context" id="pre140725496"><li onclick="toggle('pre140725496', 'post140725496')"> day_lookup = cl.params.get(day_field)</li><li onclick="toggle('pre140725496', 'post140725496')"></li><li onclick="toggle('pre140725496', 'post140725496')"> link = lambda d: cl.get_query_string(d, [field_generic])</li><li onclick="toggle('pre140725496', 'post140725496')"></li><li onclick="toggle('pre140725496', 'post140725496')"> if not (year_lookup or month_lookup or day_lookup):</li><li onclick="toggle('pre140725496', 'post140725496')"> # select appropriate start level</li><li onclick="toggle('pre140725496', 'post140725496')"> date_range = cl.query_set.aggregate(first=models.Min(field_name),</li></ol>
2130
2131 <ol start="254" class="context-line"><li onclick="toggle('pre140725496', 'post140725496')"> last=models.Max(field_name)) <span>...</span></li></ol>
2132
2133 <ol start='255' class="post-context" id="post140725496"><li onclick="toggle('pre140725496', 'post140725496')"> if date_range[&#39;first&#39;] and date_range[&#39;last&#39;]:</li><li onclick="toggle('pre140725496', 'post140725496')"> if date_range[&#39;first&#39;].year == date_range[&#39;last&#39;].year:</li><li onclick="toggle('pre140725496', 'post140725496')"> year_lookup = date_range[&#39;first&#39;].year</li><li onclick="toggle('pre140725496', 'post140725496')"> if date_range[&#39;first&#39;].month == date_range[&#39;last&#39;].month:</li><li onclick="toggle('pre140725496', 'post140725496')"> month_lookup = date_range[&#39;first&#39;].month</li><li onclick="toggle('pre140725496', 'post140725496')"></li></ol>
2134
2135 </div>
2136
2137
2138
2139 <div class="commands">
2140 <a href="#" onclick="return varToggle(this, '140725496')"><span>&#x25b6;</span> Local vars</a>
2141 </div>
2142 <table class="vars" id="v140725496">
2143 <thead>
2144 <tr>
2145 <th>Variable</th>
2146 <th>Value</th>
2147 </tr>
2148 </thead>
2149 <tbody>
2150
2151 <tr>
2152 <td>month_field</td>
2153 <td class="code"><pre>&#39;import_date__month&#39;</pre></td>
2154 </tr>
2155
2156 <tr>
2157 <td>cl</td>
2158 <td class="code"><pre>u&#39;&lt;django.contrib.admin.views.main.ChangeList object at 0xb548150&gt;&#39;</pre></td>
2159 </tr>
2160
2161 <tr>
2162 <td>year_field</td>
2163 <td class="code"><pre>&#39;import_date__year&#39;</pre></td>
2164 </tr>
2165
2166 <tr>
2167 <td>field_generic</td>
2168 <td class="code"><pre>&#39;import_date__&#39;</pre></td>
2169 </tr>
2170
2171 <tr>
2172 <td>day_field</td>
2173 <td class="code"><pre>&#39;import_date__day&#39;</pre></td>
2174 </tr>
2175
2176 <tr>
2177 <td>month_lookup</td>
2178 <td class="code"><pre>None</pre></td>
2179 </tr>
2180
2181 <tr>
2182 <td>link</td>
2183 <td class="code"><pre>u&#39;&lt;function &lt;lambda&gt; at 0x8773500&gt;&#39;</pre></td>
2184 </tr>
2185
2186 <tr>
2187 <td>year_lookup</td>
2188 <td class="code"><pre>None</pre></td>
2189 </tr>
2190
2191 <tr>
2192 <td>day_lookup</td>
2193 <td class="code"><pre>None</pre></td>
2194 </tr>
2195
2196 <tr>
2197 <td>field_name</td>
2198 <td class="code"><pre>&#39;import_date&#39;</pre></td>
2199 </tr>
2200
2201 </tbody>
2202 </table>
2203
2204 </li>
2205
2206 <li class="frame">
2207 <code>/home/dcollectpy/htdocs/prod/lib/django/db/models/query.py</code> in <code>aggregate</code>
2208
2209
2210 <div class="context" id="c140725208">
2211
2212 <ol start="314" class="pre-context" id="pre140725208"><li onclick="toggle('pre140725208', 'post140725208')"></li><li onclick="toggle('pre140725208', 'post140725208')"> query = self.query.clone()</li><li onclick="toggle('pre140725208', 'post140725208')"></li><li onclick="toggle('pre140725208', 'post140725208')"> for (alias, aggregate_expr) in kwargs.items():</li><li onclick="toggle('pre140725208', 'post140725208')"> query.add_aggregate(aggregate_expr, self.model, alias,</li><li onclick="toggle('pre140725208', 'post140725208')"> is_summary=True)</li><li onclick="toggle('pre140725208', 'post140725208')"></li></ol>
2213
2214 <ol start="321" class="context-line"><li onclick="toggle('pre140725208', 'post140725208')"> return query.get_aggregation(using=self.db) <span>...</span></li></ol>
2215
2216 <ol start='322' class="post-context" id="post140725208"><li onclick="toggle('pre140725208', 'post140725208')"></li><li onclick="toggle('pre140725208', 'post140725208')"> def count(self):</li><li onclick="toggle('pre140725208', 'post140725208')"> &quot;&quot;&quot;</li><li onclick="toggle('pre140725208', 'post140725208')"> Performs a SELECT COUNT() and returns the number of records as an</li><li onclick="toggle('pre140725208', 'post140725208')"> integer.</li><li onclick="toggle('pre140725208', 'post140725208')"></li></ol>
2217
2218 </div>
2219
2220
2221
2222 <div class="commands">
2223 <a href="#" onclick="return varToggle(this, '140725208')"><span>&#x25b6;</span> Local vars</a>
2224 </div>
2225 <table class="vars" id="v140725208">
2226 <thead>
2227 <tr>
2228 <th>Variable</th>
2229 <th>Value</th>
2230 </tr>
2231 </thead>
2232 <tbody>
2233
2234 <tr>
2235 <td>self</td>
2236 <td class="code"><pre>u&#39;[&lt;WebImport: 2011-05-30 11:30:17&gt;, &lt;WebImport: 2011-05-30 11:11:04&gt;, &lt;WebImport: 2011-05-30 10:53:43&gt;, &lt;WebImport: 2011-05-30 10:41:14&gt;, &lt;WebImport: 2011-05-30 10:37:05&gt;, &lt;WebImport: 2011-05-30 10:08:...&#39;</pre></td>
2237 </tr>
2238
2239 <tr>
2240 <td>args</td>
2241 <td class="code"><pre>[]</pre></td>
2242 </tr>
2243
2244 <tr>
2245 <td>alias</td>
2246 <td class="code"><pre>&#39;first&#39;</pre></td>
2247 </tr>
2248
2249 <tr>
2250 <td>kwargs</td>
2251 <td class="code"><pre>{&#39;first&#39;: u&#39;&lt;django.db.models.aggregates.Min object at 0xb7efa10&gt;&#39;,
2252 &#39;last&#39;: u&#39;&lt;django.db.models.aggregates.Max object at 0xb7efdd0&gt;&#39;}</pre></td>
2253 </tr>
2254
2255 <tr>
2256 <td>query</td>
2257 <td class="code"><pre>u&#39;SELECT MAX(`imports_webimport`.`import_date`) AS `last`, MIN(`imports_webimport`.`import_date`) AS `first` FROM `imports_webimport`&#39;</pre></td>
2258 </tr>
2259
2260 <tr>
2261 <td>aggregate_expr</td>
2262 <td class="code"><pre>u&#39;&lt;django.db.models.aggregates.Min object at 0xb7efa10&gt;&#39;</pre></td>
2263 </tr>
2264
2265 </tbody>
2266 </table>
2267
2268 </li>
2269
2270 <li class="frame">
2271 <code>/home/dcollectpy/htdocs/prod/lib/django/db/models/sql/query.py</code> in <code>get_aggregation</code>
2272
2273
2274 <div class="context" id="c140725928">
2275
2276 <ol start="367" class="pre-context" id="pre140725928"><li onclick="toggle('pre140725928', 'post140725928')"> result = query.get_compiler(using).execute_sql(SINGLE)</li><li onclick="toggle('pre140725928', 'post140725928')"> if result is None:</li><li onclick="toggle('pre140725928', 'post140725928')"> result = [None for q in query.aggregate_select.items()]</li><li onclick="toggle('pre140725928', 'post140725928')"></li><li onclick="toggle('pre140725928', 'post140725928')"> return dict([</li><li onclick="toggle('pre140725928', 'post140725928')"> (alias, self.resolve_aggregate(val, aggregate, connection=connections[using]))</li><li onclick="toggle('pre140725928', 'post140725928')"> for (alias, aggregate), val</li></ol>
2277
2278 <ol start="374" class="context-line"><li onclick="toggle('pre140725928', 'post140725928')"> in zip(query.aggregate_select.items(), result) <span>...</span></li></ol>
2279
2280 <ol start='375' class="post-context" id="post140725928"><li onclick="toggle('pre140725928', 'post140725928')"> ])</li><li onclick="toggle('pre140725928', 'post140725928')"></li><li onclick="toggle('pre140725928', 'post140725928')"> def get_count(self, using):</li><li onclick="toggle('pre140725928', 'post140725928')"> &quot;&quot;&quot;</li><li onclick="toggle('pre140725928', 'post140725928')"> Performs a COUNT() query using the current filter constraints.</li><li onclick="toggle('pre140725928', 'post140725928')"> &quot;&quot;&quot;</li></ol>
2281
2282 </div>
2283
2284
2285
2286 <div class="commands">
2287 <a href="#" onclick="return varToggle(this, '140725928')"><span>&#x25b6;</span> Local vars</a>
2288 </div>
2289 <table class="vars" id="v140725928">
2290 <thead>
2291 <tr>
2292 <th>Variable</th>
2293 <th>Value</th>
2294 </tr>
2295 </thead>
2296 <tbody>
2297
2298 <tr>
2299 <td>val</td>
2300 <td class="code"><pre>u&#39;2011-05-30 11:30:17&#39;</pre></td>
2301 </tr>
2302
2303 <tr>
2304 <td>using</td>
2305 <td class="code"><pre>&#39;default&#39;</pre></td>
2306 </tr>
2307
2308 <tr>
2309 <td>alias</td>
2310 <td class="code"><pre>&#39;last&#39;</pre></td>
2311 </tr>
2312
2313 <tr>
2314 <td>result</td>
2315 <td class="code"><pre>[u&#39;2011-05-30 11:30:17&#39;, u&#39;2009-11-10 02:00:00&#39;]</pre></td>
2316 </tr>
2317
2318 <tr>
2319 <td>query</td>
2320 <td class="code"><pre>u&#39;SELECT MAX(`imports_webimport`.`import_date`) AS `last`, MIN(`imports_webimport`.`import_date`) AS `first` FROM `imports_webimport`&#39;</pre></td>
2321 </tr>
2322
2323 <tr>
2324 <td>aggregate</td>
2325 <td class="code"><pre>u&#39;&lt;django.db.models.sql.aggregates.Max object at 0xb667050&gt;&#39;</pre></td>
2326 </tr>
2327
2328 <tr>
2329 <td>_[2]</td>
2330 <td class="code"><pre>[]</pre></td>
2331 </tr>
2332
2333 <tr>
2334 <td>self</td>
2335 <td class="code"><pre>u&#39;SELECT MAX(`imports_webimport`.`import_date`) AS `last`, MIN(`imports_webimport`.`import_date`) AS `first` FROM `imports_webimport`&#39;</pre></td>
2336 </tr>
2337
2338 </tbody>
2339 </table>
2340
2341 </li>
2342
2343 <li class="frame">
2344 <code>/home/dcollectpy/htdocs/prod/lib/django/db/models/sql/query.py</code> in <code>resolve_aggregate</code>
2345
2346
2347 <div class="context" id="c140724848">
2348
2349 <ol start="312" class="pre-context" id="pre140724848"><li onclick="toggle('pre140724848', 'post140724848')"> # Return None as-is</li><li onclick="toggle('pre140724848', 'post140724848')"> return value</li><li onclick="toggle('pre140724848', 'post140724848')"> elif aggregate.is_ordinal:</li><li onclick="toggle('pre140724848', 'post140724848')"> # Any ordinal aggregate (e.g., count) returns an int</li><li onclick="toggle('pre140724848', 'post140724848')"> return int(value)</li><li onclick="toggle('pre140724848', 'post140724848')"> elif aggregate.is_computed:</li><li onclick="toggle('pre140724848', 'post140724848')"> # Any computed aggregate (e.g., avg) returns a float</li></ol>
2350
2351 <ol start="319" class="context-line"><li onclick="toggle('pre140724848', 'post140724848')"> return float(value) <span>...</span></li></ol>
2352
2353 <ol start='320' class="post-context" id="post140724848"><li onclick="toggle('pre140724848', 'post140724848')"> else:</li><li onclick="toggle('pre140724848', 'post140724848')"> # Return value depends on the type of the field being processed.</li><li onclick="toggle('pre140724848', 'post140724848')"> return self.convert_values(value, aggregate.field, connection)</li><li onclick="toggle('pre140724848', 'post140724848')"></li><li onclick="toggle('pre140724848', 'post140724848')"> def get_aggregation(self, using):</li><li onclick="toggle('pre140724848', 'post140724848')"> &quot;&quot;&quot;</li></ol>
2354
2355 </div>
2356
2357
2358
2359 <div class="commands">
2360 <a href="#" onclick="return varToggle(this, '140724848')"><span>&#x25b6;</span> Local vars</a>
2361 </div>
2362 <table class="vars" id="v140724848">
2363 <thead>
2364 <tr>
2365 <th>Variable</th>
2366 <th>Value</th>
2367 </tr>
2368 </thead>
2369 <tbody>
2370
2371 <tr>
2372 <td>aggregate</td>
2373 <td class="code"><pre>u&#39;&lt;django.db.models.sql.aggregates.Max object at 0xb667050&gt;&#39;</pre></td>
2374 </tr>
2375
2376 <tr>
2377 <td>connection</td>
2378 <td class="code"><pre>u&#39;&lt;django.db.backends.mysql.base.DatabaseWrapper object at 0xec1aa0&gt;&#39;</pre></td>
2379 </tr>
2380
2381 <tr>
2382 <td>self</td>
2383 <td class="code"><pre>u&#39;SELECT MAX(`imports_webimport`.`import_date`) AS `last`, MIN(`imports_webimport`.`import_date`) AS `first` FROM `imports_webimport`&#39;</pre></td>
2384 </tr>
2385
2386 <tr>
2387 <td>value</td>
2388 <td class="code"><pre>u&#39;2011-05-30 11:30:17&#39;</pre></td>
2389 </tr>
2390
2391 </tbody>
2392 </table>
2393
2394 </li>
2395
2396 </ul>
2397 </div>
2398
2399
2400
2401
2402 <div id="requestinfo">
2403 <h2>More Information</h2>
2404
2405 <table>
2406
2407 <tr>
2408 <th class="key">COOKIES</th>
2409 <td class="values">
2410
2411
2412 <table class="vars">
2413 <thead>
2414 <tr>
2415 <th>Variable</th>
2416 <th>Value</th>
2417 </tr>
2418 </thead>
2419 <tbody>
2420
2421 <tr>
2422 <td>csrftoken</td>
2423 <td class="code"><pre>&#39;f499601909593a52f3b5234e99ef6c7d&#39;</pre></td>
2424 </tr>
2425
2426 <tr>
2427 <td>sessionid</td>
2428 <td class="code"><pre>&#39;ac24b53bfd982916457e5efdcc06f137&#39;</pre></td>
2429 </tr>
2430
2431 </tbody>
2432 </table>
2433
2434
2435 </td>
2436 </tr>
2437
2438 <tr>
2439 <th class="key">GET</th>
2440 <td class="values">
2441
2442 <p>No data for GET</p>
2443
2444 </td>
2445 </tr>
2446
2447 <tr>
2448 <th class="key">META</th>
2449 <td class="values">
2450
2451
2452 <table class="vars">
2453 <thead>
2454 <tr>
2455 <th>Variable</th>
2456 <th>Value</th>
2457 </tr>
2458 </thead>
2459 <tbody>
2460
2461 <tr>
2462 <td>CSRF_COOKIE</td>
2463 <td class="code"><pre>&#39;f499601909593a52f3b5234e99ef6c7d&#39;</pre></td>
2464 </tr>
2465
2466 <tr>
2467 <td>DOCUMENT_ROOT</td>
2468 <td class="code"><pre>&#39;/home/dcollectpy/htdocs/prod&#39;</pre></td>
2469 </tr>
2470
2471 <tr>
2472 <td>GATEWAY_INTERFACE</td>
2473 <td class="code"><pre>&#39;CGI/1.1&#39;</pre></td>
2474 </tr>
2475
2476 <tr>
2477 <td>HTTP_ACCEPT</td>
2478 <td class="code"><pre>&#39;text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8&#39;</pre></td>
2479 </tr>
2480
2481 <tr>
2482 <td>HTTP_ACCEPT_CHARSET</td>
2483 <td class="code"><pre>&#39;ISO-8859-1,utf-8;q=0.7,*;q=0.7&#39;</pre></td>
2484 </tr>
2485
2486 <tr>
2487 <td>HTTP_ACCEPT_ENCODING</td>
2488 <td class="code"><pre>&#39;gzip,deflate&#39;</pre></td>
2489 </tr>
2490
2491 <tr>
2492 <td>HTTP_ACCEPT_LANGUAGE</td>
2493 <td class="code"><pre>&#39;de-de,de;q=0.8,en-us;q=0.5,en;q=0.3&#39;</pre></td>
2494 </tr>
2495
2496 <tr>
2497 <td>HTTP_CONNECTION</td>
2498 <td class="code"><pre>&#39;keep-alive&#39;</pre></td>
2499 </tr>
2500
2501 <tr>
2502 <td>HTTP_COOKIE</td>
2503 <td class="code"><pre>&#39;sessionid=ac24b53bfd982916457e5efdcc06f137; csrftoken=f499601909593a52f3b5234e99ef6c7d&#39;</pre></td>
2504 </tr>
2505
2506 <tr>
2507 <td>HTTP_HOST</td>
2508 <td class="code"><pre>&#39;www.mytrafficdata.com&#39;</pre></td>
2509 </tr>
2510
2511 <tr>
2512 <td>HTTP_KEEP_ALIVE</td>
2513 <td class="code"><pre>&#39;115&#39;</pre></td>
2514 </tr>
2515
2516 <tr>
2517 <td>HTTP_REFERER</td>
2518 <td class="code"><pre>&#39;http://www.mytrafficdata.com/admin/&#39;</pre></td>
2519 </tr>
2520
2521 <tr>
2522 <td>HTTP_USER_AGENT</td>
2523 <td class="code"><pre>&#39;Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.17) Gecko/20110422 Ubuntu/10.04 (lucid) Firefox/3.6.17&#39;</pre></td>
2524 </tr>
2525
2526 <tr>
2527 <td>PATH</td>
2528 <td class="code"><pre>&#39;/usr/local/bin:/usr/bin:/bin&#39;</pre></td>
2529 </tr>
2530
2531 <tr>
2532 <td>PATH_INFO</td>
2533 <td class="code"><pre>u&#39;/admin/imports/webimport/&#39;</pre></td>
2534 </tr>
2535
2536 <tr>
2537 <td>PATH_TRANSLATED</td>
2538 <td class="code"><pre>&#39;/home/dcollectpy/htdocs/prod/django.fcgi/admin/imports/webimport/&#39;</pre></td>
2539 </tr>
2540
2541 <tr>
2542 <td>QUERY_STRING</td>
2543 <td class="code"><pre>&#39;&#39;</pre></td>
2544 </tr>
2545
2546 <tr>
2547 <td>REMOTE_ADDR</td>
2548 <td class="code"><pre>&#39;217.91.26.230&#39;</pre></td>
2549 </tr>
2550
2551 <tr>
2552 <td>REMOTE_PORT</td>
2553 <td class="code"><pre>&#39;23788&#39;</pre></td>
2554 </tr>
2555
2556 <tr>
2557 <td>REQUEST_METHOD</td>
2558 <td class="code"><pre>&#39;GET&#39;</pre></td>
2559 </tr>
2560
2561 <tr>
2562 <td>REQUEST_URI</td>
2563 <td class="code"><pre>&#39;/admin/imports/webimport/&#39;</pre></td>
2564 </tr>
2565
2566 <tr>
2567 <td>SCRIPT_FILENAME</td>
2568 <td class="code"><pre>&#39;/home/dcollectpy/htdocs/prod/django.fcgi&#39;</pre></td>
2569 </tr>
2570
2571 <tr>
2572 <td>SCRIPT_NAME</td>
2573 <td class="code"><pre>u&#39;&#39;</pre></td>
2574 </tr>
2575
2576 <tr>
2577 <td>SCRIPT_URI</td>
2578 <td class="code"><pre>&#39;http://www.mytrafficdata.com/admin/imports/webimport/&#39;</pre></td>
2579 </tr>
2580
2581 <tr>
2582 <td>SCRIPT_URL</td>
2583 <td class="code"><pre>&#39;/admin/imports/webimport/&#39;</pre></td>
2584 </tr>
2585
2586 <tr>
2587 <td>SERVER_ADDR</td>
2588 <td class="code"><pre>&#39;217.31.84.21&#39;</pre></td>
2589 </tr>
2590
2591 <tr>
2592 <td>SERVER_ADMIN</td>
2593 <td class="code"><pre>&#39;hostmaster@adns.de&#39;</pre></td>
2594 </tr>
2595
2596 <tr>
2597 <td>SERVER_NAME</td>
2598 <td class="code"><pre>&#39;www.mytrafficdata.com&#39;</pre></td>
2599 </tr>
2600
2601 <tr>
2602 <td>SERVER_PORT</td>
2603 <td class="code"><pre>&#39;80&#39;</pre></td>
2604 </tr>
2605
2606 <tr>
2607 <td>SERVER_PROTOCOL</td>
2608 <td class="code"><pre>&#39;HTTP/1.1&#39;</pre></td>
2609 </tr>
2610
2611 <tr>
2612 <td>SERVER_SIGNATURE</td>
2613 <td class="code"><pre>&#39;&lt;address&gt;Apache Server at www.mytrafficdata.com Port 80&lt;/address&gt;\n&#39;</pre></td>
2614 </tr>
2615
2616 <tr>
2617 <td>SERVER_SOFTWARE</td>
2618 <td class="code"><pre>&#39;Apache&#39;</pre></td>
2619 </tr>
2620
2621 <tr>
2622 <td>UNIQUE_ID</td>
2623 <td class="code"><pre>&#39;TeNlVn8AAQEAACMyuFUAAAAK&#39;</pre></td>
2624 </tr>
2625
2626 <tr>
2627 <td>wsgi.errors</td>
2628 <td class="code"><pre>u&#39;&lt;flup.server.fcgi_base.OutputStream object at 0xb63a710&gt;&#39;</pre></td>
2629 </tr>
2630
2631 <tr>
2632 <td>wsgi.input</td>
2633 <td class="code"><pre>u&#39;&lt;flup.server.fcgi_base.InputStream object at 0xb4a5150&gt;&#39;</pre></td>
2634 </tr>
2635
2636 <tr>
2637 <td>wsgi.multiprocess</td>
2638 <td class="code"><pre>False</pre></td>
2639 </tr>
2640
2641 <tr>
2642 <td>wsgi.multithread</td>
2643 <td class="code"><pre>True</pre></td>
2644 </tr>
2645
2646 <tr>
2647 <td>wsgi.run_once</td>
2648 <td class="code"><pre>False</pre></td>
2649 </tr>
2650
2651 <tr>
2652 <td>wsgi.url_scheme</td>
2653 <td class="code"><pre>&#39;http&#39;</pre></td>
2654 </tr>
2655
2656 <tr>
2657 <td>wsgi.version</td>
2658 <td class="code"><pre>(1, 0)</pre></td>
2659 </tr>
2660
2661 </tbody>
2662 </table>
2663
2664
2665 </td>
2666 </tr>
2667
2668 <tr>
2669 <th class="key">USER</th>
2670 <td class="values">
2671
2672
2673 u&#39;markus&#39;
2674
2675
2676 </td>
2677 </tr>
2678
2679 <tr>
2680 <th class="key">POST</th>
2681 <td class="values">
2682
2683 <p>No data for POST</p>
2684
2685 </td>
2686 </tr>
2687
2688 </table>
2689 </div>
2690</body>
2691</html>
Back to Top