| 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>▶</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"<module 'django.core.exceptions' from '/home/dcollectpy/htdocs/prod/lib/django/core/exceptions.pyc'>"</pre></td>
|
|---|
| 72 | </tr>
|
|---|
| 73 |
|
|---|
| 74 | <tr>
|
|---|
| 75 | <td>e</td>
|
|---|
| 76 | <td class="code"><pre>u'float() argument must be a string or a number'</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'<django.conf.LazySettings object at 0xb3fa10>'</pre></td>
|
|---|
| 87 | </tr>
|
|---|
| 88 |
|
|---|
| 89 | <tr>
|
|---|
| 90 | <td>middleware_method</td>
|
|---|
| 91 | <td class="code"><pre>u'<bound method TransactionMiddleware.process_exception of <django.middleware.transaction.TransactionMiddleware object at 0x113d550>>'</pre></td>
|
|---|
| 92 | </tr>
|
|---|
| 93 |
|
|---|
| 94 | <tr>
|
|---|
| 95 | <td>self</td>
|
|---|
| 96 | <td class="code"><pre>u'<django.core.handlers.wsgi.WSGIHandler object at 0xe12810>'</pre></td>
|
|---|
| 97 | </tr>
|
|---|
| 98 |
|
|---|
| 99 | <tr>
|
|---|
| 100 | <td>receivers</td>
|
|---|
| 101 | <td class="code"><pre>[[u'<function _rollback_on_exception at 0xf70578>', None],
|
|---|
| 102 | [u'<function sentry_exception_handler at 0x1139d70>', None]]</pre></td>
|
|---|
| 103 | </tr>
|
|---|
| 104 |
|
|---|
| 105 | <tr>
|
|---|
| 106 | <td>request</td>
|
|---|
| 107 | <td class="code"><pre>u"<WSGIRequest\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{'csrftoken': 'f499601909593a52f3b5234e99ef6c7d',\n 'sessionid': 'ac24b53bfd982916457e5efdcc06f137'},\nMETA:{'CSRF_COOKIE': 'f499601909593..."</pre></td>
|
|---|
| 108 | </tr>
|
|---|
| 109 |
|
|---|
| 110 | <tr>
|
|---|
| 111 | <td>callback</td>
|
|---|
| 112 | <td class="code"><pre>u'<function changelist_view at 0x3463500>'</pre></td>
|
|---|
| 113 | </tr>
|
|---|
| 114 |
|
|---|
| 115 | <tr>
|
|---|
| 116 | <td>resolver</td>
|
|---|
| 117 | <td class="code"><pre>u'<RegexURLResolver urls (None:None) ^/>'</pre></td>
|
|---|
| 118 | </tr>
|
|---|
| 119 |
|
|---|
| 120 | <tr>
|
|---|
| 121 | <td>urlresolvers</td>
|
|---|
| 122 | <td class="code"><pre>u"<module 'django.core.urlresolvers' from '/home/dcollectpy/htdocs/prod/lib/django/core/urlresolvers.pyc'>"</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>'urls'</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('',</li><li onclick="toggle('pre175899064', 'post175899064')"> url(r'^$',</li></ol>
|
|---|
| 156 |
|
|---|
| 157 | </div>
|
|---|
| 158 |
|
|---|
| 159 |
|
|---|
| 160 |
|
|---|
| 161 | <div class="commands">
|
|---|
| 162 | <a href="#" onclick="return varToggle(this, '175899064')"><span>▶</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'<datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0>'</pre></td>
|
|---|
| 176 | </tr>
|
|---|
| 177 |
|
|---|
| 178 | <tr>
|
|---|
| 179 | <td>args</td>
|
|---|
| 180 | <td class="code"><pre>[u"<WSGIRequest\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{'csrftoken': 'f499601909593a52f3b5234e99ef6c7d',\n 'sessionid': 'ac24b53bfd982916457e5efdcc06f137'},\nMETA:{'CSRF_COOKIE': 'f499601909593..."]</pre></td>
|
|---|
| 181 | </tr>
|
|---|
| 182 |
|
|---|
| 183 | <tr>
|
|---|
| 184 | <td>view</td>
|
|---|
| 185 | <td class="code"><pre>u'<bound method WebImportAdmin.changelist_view of <datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0>>'</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, 'process_view'):</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, 'process_exception'):</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>▶</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'float() argument must be a string or a number'</pre></td>
|
|---|
| 229 | </tr>
|
|---|
| 230 |
|
|---|
| 231 | <tr>
|
|---|
| 232 | <td>middleware</td>
|
|---|
| 233 | <td class="code"><pre>u'<django.middleware.csrf.CsrfViewMiddleware object at 0x13c9ed0>'</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"<WSGIRequest\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{'csrftoken': 'f499601909593a52f3b5234e99ef6c7d',\n 'sessionid': 'ac24b53bfd982916457e5efdcc06f137'},\nMETA:{'CSRF_COOKIE': 'f499601909593..."</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'<function inner at 0xb7e0410>'</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')"> """</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')"> """</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>▶</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"<WSGIRequest\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{'csrftoken': 'f499601909593a52f3b5234e99ef6c7d',\n 'sessionid': 'ac24b53bfd982916457e5efdcc06f137'},\nMETA:{'CSRF_COOKIE': 'f499601909593..."</pre></td>
|
|---|
| 302 | </tr>
|
|---|
| 303 |
|
|---|
| 304 | <tr>
|
|---|
| 305 | <td>view_func</td>
|
|---|
| 306 | <td class="code"><pre>u'<function inner at 0xb7e0500>'</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')"> """</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 'csrf_protect'.</li><li onclick="toggle('pre175900936', 'post175900936')"> if not getattr(view, 'csrf_exempt', 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>▶</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'<bound method WebImportAdmin.changelist_view of <datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0>>'</pre></td>
|
|---|
| 350 | </tr>
|
|---|
| 351 |
|
|---|
| 352 | <tr>
|
|---|
| 353 | <td>self</td>
|
|---|
| 354 | <td class="code"><pre>u'<django.contrib.admin.sites.AdminSite object at 0x15674d0>'</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"<WSGIRequest\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{'csrftoken': 'f499601909593a52f3b5234e99ef6c7d',\n 'sessionid': 'ac24b53bfd982916457e5efdcc06f137'},\nMETA:{'CSRF_COOKIE': 'f499601909593..."</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')"> 'admin/%(template_name)s',</li><li onclick="toggle('pre175902592', 'post175902592')"> '%(template_name)s',</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>▶</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'<function changelist_view at 0x14f7c08>'</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>'change_list.html'</pre></td>
|
|---|
| 418 | </tr>
|
|---|
| 419 |
|
|---|
| 420 | <tr>
|
|---|
| 421 | <td>self</td>
|
|---|
| 422 | <td class="code"><pre>u'<datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0>'</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>'change_list_template'</pre></td>
|
|---|
| 433 | </tr>
|
|---|
| 434 |
|
|---|
| 435 | <tr>
|
|---|
| 436 | <td>request</td>
|
|---|
| 437 | <td class="code"><pre>u"<WSGIRequest\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{'csrftoken': 'f499601909593a52f3b5234e99ef6c7d',\n 'sessionid': 'ac24b53bfd982916457e5efdcc06f137'},\nMETA:{'CSRF_COOKIE': 'f499601909593..."</pre></td>
|
|---|
| 438 | </tr>
|
|---|
| 439 |
|
|---|
| 440 | <tr>
|
|---|
| 441 | <td>params</td>
|
|---|
| 442 | <td class="code"><pre>{'template_name': 'change_list.html'}</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>'changelist_view'</pre></td>
|
|---|
| 453 | </tr>
|
|---|
| 454 |
|
|---|
| 455 | <tr>
|
|---|
| 456 | <td>path_list</td>
|
|---|
| 457 | <td class="code"><pre>['admin/%(template_name)s', '%(template_name)s']</pre></td>
|
|---|
| 458 | </tr>
|
|---|
| 459 |
|
|---|
| 460 | <tr>
|
|---|
| 461 | <td>path</td>
|
|---|
| 462 | <td class="code"><pre>'%(template_name)s'</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 'decorator' expects i.e. no</li><li onclick="toggle('pre175899640', 'post175899640')"> # 'self' argument, but it is a closure over self so it can call</li><li onclick="toggle('pre175899640', 'post175899640')"> # 'func' 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 'decorator' adds attributes to the function it decorates, we</li><li onclick="toggle('pre175899640', 'post175899640')"> # want to copy those. We don'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>▶</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'<datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0>'</pre></td>
|
|---|
| 501 | </tr>
|
|---|
| 502 |
|
|---|
| 503 | <tr>
|
|---|
| 504 | <td>args</td>
|
|---|
| 505 | <td class="code"><pre>[u"<WSGIRequest\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{'csrftoken': 'f499601909593a52f3b5234e99ef6c7d',\n 'sessionid': 'ac24b53bfd982916457e5efdcc06f137'},\nMETA:{'CSRF_COOKIE': 'f499601909593..."]</pre></td>
|
|---|
| 506 | </tr>
|
|---|
| 507 |
|
|---|
| 508 | <tr>
|
|---|
| 509 | <td>bound_func</td>
|
|---|
| 510 | <td class="code"><pre>u'<function bound_func at 0xb64b410>'</pre></td>
|
|---|
| 511 | </tr>
|
|---|
| 512 |
|
|---|
| 513 | <tr>
|
|---|
| 514 | <td>func</td>
|
|---|
| 515 | <td class="code"><pre>u'<function changelist_view at 0x14f7c80>'</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'<function csrf_protect at 0x13ce410>'</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, 'process_view'):</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, 'process_exception'):</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>▶</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'float() argument must be a string or a number'</pre></td>
|
|---|
| 564 | </tr>
|
|---|
| 565 |
|
|---|
| 566 | <tr>
|
|---|
| 567 | <td>middleware</td>
|
|---|
| 568 | <td class="code"><pre>u'<django.middleware.csrf.CsrfViewMiddleware object at 0x13c9ed0>'</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"<WSGIRequest\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{'csrftoken': 'f499601909593a52f3b5234e99ef6c7d',\n 'sessionid': 'ac24b53bfd982916457e5efdcc06f137'},\nMETA:{'CSRF_COOKIE': 'f499601909593..."</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'<function bound_func at 0x83ef758>'</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')"> """</li><li onclick="toggle('pre175902088', 'post175902088')"> # 'func' 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 'decorator' expects i.e. no</li><li onclick="toggle('pre175902088', 'post175902088')"> # 'self' argument, but it is a closure over self so it can call</li><li onclick="toggle('pre175902088', 'post175902088')"> # 'func' correctly.</li><li onclick="toggle('pre175902088', 'post175902088')"> return bound_func(*args, **kwargs)</li><li onclick="toggle('pre175902088', 'post175902088')"> # In case 'decorator' adds attributes to the function it decorates, we</li><li onclick="toggle('pre175902088', 'post175902088')"> # want to copy those. We don'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>▶</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"<WSGIRequest\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{'csrftoken': 'f499601909593a52f3b5234e99ef6c7d',\n 'sessionid': 'ac24b53bfd982916457e5efdcc06f137'},\nMETA:{'CSRF_COOKIE': 'f499601909593..."]</pre></td>
|
|---|
| 632 | </tr>
|
|---|
| 633 |
|
|---|
| 634 | <tr>
|
|---|
| 635 | <td>func</td>
|
|---|
| 636 | <td class="code"><pre>u'<function changelist_view at 0x14f7c80>'</pre></td>
|
|---|
| 637 | </tr>
|
|---|
| 638 |
|
|---|
| 639 | <tr>
|
|---|
| 640 | <td>self</td>
|
|---|
| 641 | <td class="code"><pre>u'<datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0>'</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')"> 'admin/%s/%s/change_list.html' % (app_label, opts.object_name.lower()),</li><li onclick="toggle('pre175901512', 'post175901512')"> 'admin/%s/change_list.html' % app_label,</li><li onclick="toggle('pre175901512', 'post175901512')"> 'admin/change_list.html'</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')"> "The 'delete' admin view for this model."</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>▶</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'<django.contrib.admin.views.main.ChangeList object at 0xb548150>'</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'Alle %(total_count)s ausgew\xe4hlt'</pre></td>
|
|---|
| 695 | </tr>
|
|---|
| 696 |
|
|---|
| 697 | <tr>
|
|---|
| 698 | <td>media</td>
|
|---|
| 699 | <td class="code"><pre>u'<script type="text/javascript" src="http://media.acp.mytrafficdata.com/js/core.js"></script>\n<script type="text/javascript" src="http://media.acp.mytrafficdata.com/js/admin/RelatedObjectLookups.js"></...'</pre></td>
|
|---|
| 700 | </tr>
|
|---|
| 701 |
|
|---|
| 702 | <tr>
|
|---|
| 703 | <td>ChangeList</td>
|
|---|
| 704 | <td class="code"><pre>u"<class 'django.contrib.admin.views.main.ChangeList'>"</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'<tr><th>Aktion:</th><td><select name="action">\n<option value="" selected="selected">---------</option>\n<option value="delete_selected">Ausgew\xe4hlte Importe l\xf6schen</option>\n</select><input type="hidden...'</pre></td>
|
|---|
| 715 | </tr>
|
|---|
| 716 |
|
|---|
| 717 | <tr>
|
|---|
| 718 | <td>request</td>
|
|---|
| 719 | <td class="code"><pre>u"<WSGIRequest\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{'csrftoken': 'f499601909593a52f3b5234e99ef6c7d',\n 'sessionid': 'ac24b53bfd982916457e5efdcc06f137'},\nMETA:{'CSRF_COOKIE': 'f499601909593..."</pre></td>
|
|---|
| 720 | </tr>
|
|---|
| 721 |
|
|---|
| 722 | <tr>
|
|---|
| 723 | <td>actions</td>
|
|---|
| 724 | <td class="code"><pre>{'delete_selected': [u'<function delete_selected at 0x14f9f50>',
|
|---|
| 725 | 'delete_selected',
|
|---|
| 726 | u'Ausgew\xe4hlte %(verbose_name_plural)s l\xf6schen']}</pre></td>
|
|---|
| 727 | </tr>
|
|---|
| 728 |
|
|---|
| 729 | <tr>
|
|---|
| 730 | <td>ERROR_FLAG</td>
|
|---|
| 731 | <td class="code"><pre>'e'</pre></td>
|
|---|
| 732 | </tr>
|
|---|
| 733 |
|
|---|
| 734 | <tr>
|
|---|
| 735 | <td>self</td>
|
|---|
| 736 | <td class="code"><pre>u'<datamgmt.imports.admin.WebImportAdmin object at 0x33a20d0>'</pre></td>
|
|---|
| 737 | </tr>
|
|---|
| 738 |
|
|---|
| 739 | <tr>
|
|---|
| 740 | <td>context_instance</td>
|
|---|
| 741 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</pre></td>
|
|---|
| 742 | </tr>
|
|---|
| 743 |
|
|---|
| 744 | <tr>
|
|---|
| 745 | <td>context</td>
|
|---|
| 746 | <td class="code"><pre>{'action_form': u'<tr><th>Aktion:</th><td><select name="action">\n<option value="" selected="selected">---------</option>\n<option value="delete_selected">Ausgew\xe4hlte Importe l\xf6schen</option>\n</select><input type="hidden...',
|
|---|
| 747 | 'actions_on_bottom': False,
|
|---|
| 748 | 'actions_on_top': True,
|
|---|
| 749 | 'actions_selection_counter': True,
|
|---|
| 750 | 'app_label': 'imports',
|
|---|
| 751 | 'cl': u'<django.contrib.admin.views.main.ChangeList object at 0xb548150>',
|
|---|
| 752 | 'has_add_permission': True,
|
|---|
| 753 | 'is_popup': False,
|
|---|
| 754 | 'media': u'<script type="text/javascript" src="http://media.acp.mytrafficdata.com/js/core.js"></script>\n<script type="text/javascript" src="http://media.acp.mytrafficdata.com/js/admin/RelatedObjectLookups.js"></...',
|
|---|
| 755 | 'module_name': u'Importe',
|
|---|
| 756 | 'root_path': None,
|
|---|
| 757 | 'selection_note': u'0 von 100 ausgew\xe4hlt',
|
|---|
| 758 | 'selection_note_all': u'Alle 11107 ausgew\xe4hlt',
|
|---|
| 759 | 'title': u'Import zur \xc4nderung ausw\xe4hlen'}</pre></td>
|
|---|
| 760 | </tr>
|
|---|
| 761 |
|
|---|
| 762 | <tr>
|
|---|
| 763 | <td>app_label</td>
|
|---|
| 764 | <td class="code"><pre>'imports'</pre></td>
|
|---|
| 765 | </tr>
|
|---|
| 766 |
|
|---|
| 767 | <tr>
|
|---|
| 768 | <td>list_display</td>
|
|---|
| 769 | <td class="code"><pre>['action_checkbox',
|
|---|
| 770 | 'import_date',
|
|---|
| 771 | 'name',
|
|---|
| 772 | 'raw_device',
|
|---|
| 773 | 'file_link',
|
|---|
| 774 | 'version',
|
|---|
| 775 | 'import_successes',
|
|---|
| 776 | 'vehicle_count',
|
|---|
| 777 | 'import_failures',
|
|---|
| 778 | 'generator_type',
|
|---|
| 779 | 'generator_version']</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'imports.webimport'</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')"> """</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')"> """</li><li onclick="toggle('pre175902664', 'post175902664')"> httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', 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')"> """</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>▶</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>{'mimetype': None}</pre></td>
|
|---|
| 833 | </tr>
|
|---|
| 834 |
|
|---|
| 835 | <tr>
|
|---|
| 836 | <td>args</td>
|
|---|
| 837 | <td class="code"><pre>[['admin/change_list.html', 'change_list.html'],
|
|---|
| 838 | {'action_form': u'<tr><th>Aktion:</th><td><select name="action">\n<option value="" selected="selected">---------</option>\n<option value="delete_selected">Ausgew\xe4hlte Importe l\xf6schen</option>\n</select><input type="hidden...',
|
|---|
| 839 | 'actions_on_bottom': False,
|
|---|
| 840 | 'actions_on_top': True,
|
|---|
| 841 | 'actions_selection_counter': True,
|
|---|
| 842 | 'app_label': 'imports',
|
|---|
| 843 | 'cl': u'<django.contrib.admin.views.main.ChangeList object at 0xb548150>',
|
|---|
| 844 | 'has_add_permission': True,
|
|---|
| 845 | 'is_popup': False,
|
|---|
| 846 | 'media': u'<script type="text/javascript" src="http://media.acp.mytrafficdata.com/js/core.js"></script>\n<script type="text/javascript" src="http://media.acp.mytrafficdata.com/js/admin/RelatedObjectLookups.js"></...',
|
|---|
| 847 | 'module_name': u'Importe',
|
|---|
| 848 | 'root_path': None,
|
|---|
| 849 | 'selection_note': u'0 von 100 ausgew\xe4hlt',
|
|---|
| 850 | 'selection_note_all': u'Alle 11107 ausgew\xe4hlt',
|
|---|
| 851 | 'title': u'Import zur \xc4nderung ausw\xe4hlen'}]</pre></td>
|
|---|
| 852 | </tr>
|
|---|
| 853 |
|
|---|
| 854 | <tr>
|
|---|
| 855 | <td>kwargs</td>
|
|---|
| 856 | <td class="code"><pre>{'context_instance': u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."}</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')"> "Given a list of template names, returns the first that can be loaded."</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>▶</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>['admin/change_list.html', 'change_list.html']</pre></td>
|
|---|
| 895 | </tr>
|
|---|
| 896 |
|
|---|
| 897 | <tr>
|
|---|
| 898 | <td>t</td>
|
|---|
| 899 | <td class="code"><pre>u'<django.template.base.Template object at 0xb634450>'</pre></td>
|
|---|
| 900 | </tr>
|
|---|
| 901 |
|
|---|
| 902 | <tr>
|
|---|
| 903 | <td>dictionary</td>
|
|---|
| 904 | <td class="code"><pre>{'action_form': u'<tr><th>Aktion:</th><td><select name="action">\n<option value="" selected="selected">---------</option>\n<option value="delete_selected">Ausgew\xe4hlte Importe l\xf6schen</option>\n</select><input type="hidden...',
|
|---|
| 905 | 'actions_on_bottom': False,
|
|---|
| 906 | 'actions_on_top': True,
|
|---|
| 907 | 'actions_selection_counter': True,
|
|---|
| 908 | 'app_label': 'imports',
|
|---|
| 909 | 'cl': u'<django.contrib.admin.views.main.ChangeList object at 0xb548150>',
|
|---|
| 910 | 'has_add_permission': True,
|
|---|
| 911 | 'is_popup': False,
|
|---|
| 912 | 'media': u'<script type="text/javascript" src="http://media.acp.mytrafficdata.com/js/core.js"></script>\n<script type="text/javascript" src="http://media.acp.mytrafficdata.com/js/admin/RelatedObjectLookups.js"></...',
|
|---|
| 913 | 'module_name': u'Importe',
|
|---|
| 914 | 'root_path': None,
|
|---|
| 915 | 'selection_note': u'0 von 100 ausgew\xe4hlt',
|
|---|
| 916 | 'selection_note_all': u'Alle 11107 ausgew\xe4hlt',
|
|---|
| 917 | 'title': u'Import zur \xc4nderung ausw\xe4hlen'}</pre></td>
|
|---|
| 918 | </tr>
|
|---|
| 919 |
|
|---|
| 920 | <tr>
|
|---|
| 921 | <td>context_instance</td>
|
|---|
| 922 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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')"> "Display stage -- can be called many times"</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')"> "Compiles template_string into NodeList ready for rendering"</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>▶</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'<django.template.base.Template object at 0xb634450>'</pre></td>
|
|---|
| 961 | </tr>
|
|---|
| 962 |
|
|---|
| 963 | <tr>
|
|---|
| 964 | <td>context</td>
|
|---|
| 965 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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')"> "Display stage -- can be called many times"</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>▶</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'<django.template.base.Template object at 0xb634450>'</pre></td>
|
|---|
| 1004 | </tr>
|
|---|
| 1005 |
|
|---|
| 1006 | <tr>
|
|---|
| 1007 | <td>context</td>
|
|---|
| 1008 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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(''.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')"> "Return a list of all nodes of the given type"</li></ol>
|
|---|
| 1027 |
|
|---|
| 1028 | </div>
|
|---|
| 1029 |
|
|---|
| 1030 |
|
|---|
| 1031 |
|
|---|
| 1032 | <div class="commands">
|
|---|
| 1033 | <a href="#" onclick="return varToggle(this, '138798360')"><span>▶</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'<ExtendsNode: extends "admin/base_site.html">'</pre></td>
|
|---|
| 1047 | </tr>
|
|---|
| 1048 |
|
|---|
| 1049 | <tr>
|
|---|
| 1050 | <td>self</td>
|
|---|
| 1051 | <td class="code"><pre>[u'<ExtendsNode: extends "admin/base_site.html">']</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"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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')"> "Return a list of all nodes of the given type"</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>▶</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'<ExtendsNode: extends "admin/base_site.html">'</pre></td>
|
|---|
| 1100 | </tr>
|
|---|
| 1101 |
|
|---|
| 1102 | <tr>
|
|---|
| 1103 | <td>self</td>
|
|---|
| 1104 | <td class="code"><pre>[u'<ExtendsNode: extends "admin/base_site.html">']</pre></td>
|
|---|
| 1105 | </tr>
|
|---|
| 1106 |
|
|---|
| 1107 | <tr>
|
|---|
| 1108 | <td>context</td>
|
|---|
| 1109 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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('extra_context', {})</li><li onclick="toggle('pre138799224', 'post138799224')"> self.isolated_context = kwargs.pop('isolated_context', 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>▶</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'<ExtendsNode: extends "admin/base.html">'</pre></td>
|
|---|
| 1148 | </tr>
|
|---|
| 1149 |
|
|---|
| 1150 | <tr>
|
|---|
| 1151 | <td>block_context</td>
|
|---|
| 1152 | <td class="code"><pre>u'<django.template.loader_tags.BlockContext object at 0x857e950>'</pre></td>
|
|---|
| 1153 | </tr>
|
|---|
| 1154 |
|
|---|
| 1155 | <tr>
|
|---|
| 1156 | <td>compiled_parent</td>
|
|---|
| 1157 | <td class="code"><pre>u'<django.template.base.Template object at 0xb7e5050>'</pre></td>
|
|---|
| 1158 | </tr>
|
|---|
| 1159 |
|
|---|
| 1160 | <tr>
|
|---|
| 1161 | <td>self</td>
|
|---|
| 1162 | <td class="code"><pre>u'<ExtendsNode: extends "admin/base_site.html">'</pre></td>
|
|---|
| 1163 | </tr>
|
|---|
| 1164 |
|
|---|
| 1165 | <tr>
|
|---|
| 1166 | <td>context</td>
|
|---|
| 1167 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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')"> "Display stage -- can be called many times"</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>▶</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'<django.template.base.Template object at 0xb7e5050>'</pre></td>
|
|---|
| 1206 | </tr>
|
|---|
| 1207 |
|
|---|
| 1208 | <tr>
|
|---|
| 1209 | <td>context</td>
|
|---|
| 1210 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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(''.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')"> "Return a list of all nodes of the given type"</li></ol>
|
|---|
| 1229 |
|
|---|
| 1230 | </div>
|
|---|
| 1231 |
|
|---|
| 1232 |
|
|---|
| 1233 |
|
|---|
| 1234 | <div class="commands">
|
|---|
| 1235 | <a href="#" onclick="return varToggle(this, '138799368')"><span>▶</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'<ExtendsNode: extends "admin/base.html">'</pre></td>
|
|---|
| 1249 | </tr>
|
|---|
| 1250 |
|
|---|
| 1251 | <tr>
|
|---|
| 1252 | <td>self</td>
|
|---|
| 1253 | <td class="code"><pre>[u'<ExtendsNode: extends "admin/base.html">']</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"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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')"> "Return a list of all nodes of the given type"</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>▶</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'<ExtendsNode: extends "admin/base.html">'</pre></td>
|
|---|
| 1302 | </tr>
|
|---|
| 1303 |
|
|---|
| 1304 | <tr>
|
|---|
| 1305 | <td>self</td>
|
|---|
| 1306 | <td class="code"><pre>[u'<ExtendsNode: extends "admin/base.html">']</pre></td>
|
|---|
| 1307 | </tr>
|
|---|
| 1308 |
|
|---|
| 1309 | <tr>
|
|---|
| 1310 | <td>context</td>
|
|---|
| 1311 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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('extra_context', {})</li><li onclick="toggle('pre138798144', 'post138798144')"> self.isolated_context = kwargs.pop('isolated_context', 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>▶</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'<django.template.defaulttags.LoadNode object at 0xb7eb410>'</pre></td>
|
|---|
| 1350 | </tr>
|
|---|
| 1351 |
|
|---|
| 1352 | <tr>
|
|---|
| 1353 | <td>blocks</td>
|
|---|
| 1354 | <td class="code"><pre>{u'blockbots': u'<Block Node: blockbots. Contents: [<Text Node: \'<meta name="robots" conte\'>]>',
|
|---|
| 1355 | u'bodyclass': u'<Block Node: bodyclass. Contents: []>',
|
|---|
| 1356 | u'branding': u'<Block Node: branding. Contents: []>',
|
|---|
| 1357 | u'breadcrumbs': u'<Block Node: breadcrumbs. Contents: [<Text Node: \'<div class="breadcrumbs">\'>, <django.templatetags.i18n.TranslateNode object at 0xb7e9410>, <Text Node: \'</a>\'>, <If node>, <Text Node: \'</div>\'>]>',
|
|---|
| 1358 | u'coltype': u"<Block Node: coltype. Contents: [<Text Node: 'colM'>]>",
|
|---|
| 1359 | u'content': u"<Block Node: content. Contents: [<Text Node: '\n '>, <Block Node: object-tools. Contents: []>, <Text Node: '\n '>, <Variable Node: content>, <Text Node: '\n '>]>",
|
|---|
| 1360 | u'content_title': u'<Block Node: content_title. Contents: [<If node>]>',
|
|---|
| 1361 | u'extrahead': u'<Block Node: extrahead. Contents: []>',
|
|---|
| 1362 | u'extrastyle': u'<Block Node: extrastyle. Contents: []>',
|
|---|
| 1363 | u'footer': u'<Block Node: footer. Contents: [<Text Node: \'<div id="footer"></div>\'>]>',
|
|---|
| 1364 | u'nav-global': u'<Block Node: nav-global. Contents: []>',
|
|---|
| 1365 | u'object-tools': u'<Block Node: object-tools. Contents: []>',
|
|---|
| 1366 | u'pretitle': u'<Block Node: pretitle. Contents: []>',
|
|---|
| 1367 | u'sidebar': u'<Block Node: sidebar. Contents: []>',
|
|---|
| 1368 | u'stylesheet': u"<Block Node: stylesheet. Contents: [<django.template.defaulttags.LoadNode object at 0xb7ebc10>, <django.template.base.SimpleNode object at 0xb7f0ad0>, <Text Node: 'css/base.css'>]>",
|
|---|
| 1369 | u'stylesheet_ie': u"<Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0xb7f0d10>, <django.template.base.SimpleNode object at 0xb7f0d50>, <Text Node: 'css/ie.css'>]>",
|
|---|
| 1370 | u'stylesheet_rtl': u"<Block Node: stylesheet_rtl. Contents: [<django.template.base.SimpleNode object at 0xb7ebcd0>, <Text Node: 'css/rtl.css'>]>",
|
|---|
| 1371 | u'title': u'<Block Node: title. Contents: []>',
|
|---|
| 1372 | u'userlinks': u"<Block Node: userlinks. Contents: [<Text Node: '\n '>, <django.template.defaulttags.URLNode object at 0xb7f0b10>, <Text Node: '\n '>, <If node>, <Text Node: '\n ..."}</pre></td>
|
|---|
| 1373 | </tr>
|
|---|
| 1374 |
|
|---|
| 1375 | <tr>
|
|---|
| 1376 | <td>block_context</td>
|
|---|
| 1377 | <td class="code"><pre>u'<django.template.loader_tags.BlockContext object at 0x857e950>'</pre></td>
|
|---|
| 1378 | </tr>
|
|---|
| 1379 |
|
|---|
| 1380 | <tr>
|
|---|
| 1381 | <td>n</td>
|
|---|
| 1382 | <td class="code"><pre>u'<Block Node: footer. Contents: [<Text Node: \'<div id="footer"></div>\'>]>'</pre></td>
|
|---|
| 1383 | </tr>
|
|---|
| 1384 |
|
|---|
| 1385 | <tr>
|
|---|
| 1386 | <td>context</td>
|
|---|
| 1387 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</pre></td>
|
|---|
| 1388 | </tr>
|
|---|
| 1389 |
|
|---|
| 1390 | <tr>
|
|---|
| 1391 | <td>compiled_parent</td>
|
|---|
| 1392 | <td class="code"><pre>u'<django.template.base.Template object at 0xb7eef90>'</pre></td>
|
|---|
| 1393 | </tr>
|
|---|
| 1394 |
|
|---|
| 1395 | <tr>
|
|---|
| 1396 | <td>self</td>
|
|---|
| 1397 | <td class="code"><pre>u'<ExtendsNode: extends "admin/base.html">'</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')"> "Display stage -- can be called many times"</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>▶</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'<django.template.base.Template object at 0xb7eef90>'</pre></td>
|
|---|
| 1436 | </tr>
|
|---|
| 1437 |
|
|---|
| 1438 | <tr>
|
|---|
| 1439 | <td>context</td>
|
|---|
| 1440 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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(''.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')"> "Return a list of all nodes of the given type"</li></ol>
|
|---|
| 1459 |
|
|---|
| 1460 | </div>
|
|---|
| 1461 |
|
|---|
| 1462 |
|
|---|
| 1463 |
|
|---|
| 1464 | <div class="commands">
|
|---|
| 1465 | <a href="#" onclick="return varToggle(this, '139847080')"><span>▶</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"<Block Node: content. Contents: [<Text Node: '\n '>, <Block Node: object-tools. Contents: []>, <Text Node: '\n '>, <Variable Node: content>, <Text Node: '\n '>]>"</pre></td>
|
|---|
| 1479 | </tr>
|
|---|
| 1480 |
|
|---|
| 1481 | <tr>
|
|---|
| 1482 | <td>self</td>
|
|---|
| 1483 | <td class="code"><pre>[u'<django.template.defaulttags.LoadNode object at 0xb7eb410>',
|
|---|
| 1484 | u'<Text Node: \'<!DOCTYPE html PUBLIC "-/\'>',
|
|---|
| 1485 | u'<Variable Node: LANGUAGE_CODE|default:"en-us">',
|
|---|
| 1486 | u'<Text Node: \'" xml:lang="\'>',
|
|---|
| 1487 | u'<Variable Node: LANGUAGE_CODE|default:"en-us">',
|
|---|
| 1488 | u'<Text Node: \'" \'>',
|
|---|
| 1489 | u'<If node>',
|
|---|
| 1490 | u"<Text Node: '>\n<head>\n<title>'>",
|
|---|
| 1491 | u'<Block Node: title. Contents: []>',
|
|---|
| 1492 | u'<Text Node: \'</title>\n<link rel="style\'>',
|
|---|
| 1493 | u"<Block Node: stylesheet. Contents: [<django.template.defaulttags.LoadNode object at 0xb7ebc10>, <django.template.base.SimpleNode object at 0xb7f0ad0>, <Text Node: 'css/base.css'>]>",
|
|---|
| 1494 | u'<Text Node: \'" />\n\'>',
|
|---|
| 1495 | u'<Block Node: extrastyle. Contents: []>',
|
|---|
| 1496 | u"<Text Node: '\n<!--[if lte IE 7]><link '>",
|
|---|
| 1497 | u"<Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0xb7f0d10>, <django.template.base.SimpleNode object at 0xb7f0d50>, <Text Node: 'css/ie.css'>]>",
|
|---|
| 1498 | u'<Text Node: \'" /><![endif]-->\n\'>',
|
|---|
| 1499 | u'<If node>',
|
|---|
| 1500 | u'<Text Node: \'\n<script type="text/javas\'>',
|
|---|
| 1501 | u'<django.template.defaulttags.FilterNode object at 0xb7f0110>',
|
|---|
| 1502 | u'<Text Node: \'";</script>\n\'>',
|
|---|
| 1503 | u'<Block Node: extrahead. Contents: []>',
|
|---|
| 1504 | u"<Text Node: '\n'>",
|
|---|
| 1505 | u'<Block Node: blockbots. Contents: [<Text Node: \'<meta name="robots" conte\'>]>',
|
|---|
| 1506 | u"<Text Node: '\n</head>\n'>",
|
|---|
| 1507 | u'<django.template.defaulttags.LoadNode object at 0xb7f0690>',
|
|---|
| 1508 | u'<Text Node: \'\n\n<body class="\'>',
|
|---|
| 1509 | u'<If node>',
|
|---|
| 1510 | u'<Block Node: bodyclass. Contents: []>',
|
|---|
| 1511 | u'<Text Node: \'">\n\n<!-- Container -->\n<d\'>',
|
|---|
| 1512 | u'<If node>',
|
|---|
| 1513 | u"<Text Node: '\n\n '>",
|
|---|
| 1514 | u'<If node>',
|
|---|
| 1515 | u"<Text Node: '\n\n <!-- Content -->\n '>",
|
|---|
| 1516 | u"<Block Node: coltype. Contents: [<Text Node: 'colM'>]>",
|
|---|
| 1517 | u'<Text Node: \'">\n \'>',
|
|---|
| 1518 | u'<Block Node: pretitle. Contents: []>',
|
|---|
| 1519 | u"<Text Node: '\n '>",
|
|---|
| 1520 | u'<Block Node: content_title. Contents: [<If node>]>',
|
|---|
| 1521 | u"<Text Node: '\n '>",
|
|---|
| 1522 | u"<Block Node: content. Contents: [<Text Node: '\n '>, <Block Node: object-tools. Contents: []>, <Text Node: '\n '>, <Variable Node: content>, <Text Node: '\n '>]>",
|
|---|
| 1523 | u"<Text Node: '\n '>",
|
|---|
| 1524 | u'<Block Node: sidebar. Contents: []>',
|
|---|
| 1525 | u'<Text Node: \'\n <br class="clear\'>',
|
|---|
| 1526 | u'<Block Node: footer. Contents: [<Text Node: \'<div id="footer"></div>\'>]>',
|
|---|
| 1527 | u"<Text Node: '\n</div>\n<!-- END Containe'>"]</pre></td>
|
|---|
| 1528 | </tr>
|
|---|
| 1529 |
|
|---|
| 1530 | <tr>
|
|---|
| 1531 | <td>bits</td>
|
|---|
| 1532 | <td class="code"><pre>['',
|
|---|
| 1533 | u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" lang="',
|
|---|
| 1534 | u'de',
|
|---|
| 1535 | u'" xml:lang="',
|
|---|
| 1536 | u'de',
|
|---|
| 1537 | u'" ',
|
|---|
| 1538 | '',
|
|---|
| 1539 | u'>\n<head>\n<title>',
|
|---|
| 1540 | u'Import zur \xc4nderung ausw\xe4hlen | Django-Systemverwaltung',
|
|---|
| 1541 | u'</title>\n<link rel="stylesheet" type="text/css" href="',
|
|---|
| 1542 | u'http://media.acp.mytrafficdata.com/css/base.css',
|
|---|
| 1543 | u'" />\n',
|
|---|
| 1544 | u'\n \n <link rel="stylesheet" type="text/css" href="http://media.acp.mytrafficdata.com/css/changelists.css" />\n \n \n \n <script type="text/javascript" src="/admin/jsi18n/"></script>\n \n \n \n',
|
|---|
| 1545 | u'\n<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="',
|
|---|
| 1546 | u'http://media.acp.mytrafficdata.com/css/ie.css',
|
|---|
| 1547 | u'" /><![endif]-->\n',
|
|---|
| 1548 | '',
|
|---|
| 1549 | u'\n<script type="text/javascript">window.__admin_media_prefix__ = "',
|
|---|
| 1550 | u'http://media.acp.mytrafficdata.com/',
|
|---|
| 1551 | u'";</script>\n',
|
|---|
| 1552 | u'\n\n<script type="text/javascript" src="http://media.acp.mytrafficdata.com/js/core.js"></script>\n<script type="text/javascript" src="http://media.acp.mytrafficdata.com/js/admin/RelatedObjectLookups.js">...',
|
|---|
| 1553 | u'\n',
|
|---|
| 1554 | u'<meta name="robots" content="NONE,NOARCHIVE" />',
|
|---|
| 1555 | u'\n</head>\n',
|
|---|
| 1556 | '',
|
|---|
| 1557 | u'\n\n<body class="',
|
|---|
| 1558 | '',
|
|---|
| 1559 | u'change-list',
|
|---|
| 1560 | u'">\n\n<!-- Container -->\n<div id="container">\n\n ',
|
|---|
| 1561 | u'\n <!-- Header -->\n <div id="header">\n <div id="branding">\n \n<h1 id="site-name">Django-Verwaltung</h1>\n\n </div>\n \n <div id="user-tools">\n Willkommen,...',
|
|---|
| 1562 | u'\n\n ',
|
|---|
| 1563 | '',
|
|---|
| 1564 | u'\n\n <!-- Content -->\n <div id="content" class="',
|
|---|
| 1565 | u'flex',
|
|---|
| 1566 | u'">\n ',
|
|---|
| 1567 | '',
|
|---|
| 1568 | u'\n ',
|
|---|
| 1569 | u'<h1>Import zur \xc4nderung ausw\xe4hlen</h1>',
|
|---|
| 1570 | u'\n ']</pre></td>
|
|---|
| 1571 | </tr>
|
|---|
| 1572 |
|
|---|
| 1573 | <tr>
|
|---|
| 1574 | <td>context</td>
|
|---|
| 1575 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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')"> "Return a list of all nodes of the given type"</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>▶</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"<Block Node: content. Contents: [<Text Node: '\n '>, <Block Node: object-tools. Contents: []>, <Text Node: '\n '>, <Variable Node: content>, <Text Node: '\n '>]>"</pre></td>
|
|---|
| 1614 | </tr>
|
|---|
| 1615 |
|
|---|
| 1616 | <tr>
|
|---|
| 1617 | <td>self</td>
|
|---|
| 1618 | <td class="code"><pre>[u'<django.template.defaulttags.LoadNode object at 0xb7eb410>',
|
|---|
| 1619 | u'<Text Node: \'<!DOCTYPE html PUBLIC "-/\'>',
|
|---|
| 1620 | u'<Variable Node: LANGUAGE_CODE|default:"en-us">',
|
|---|
| 1621 | u'<Text Node: \'" xml:lang="\'>',
|
|---|
| 1622 | u'<Variable Node: LANGUAGE_CODE|default:"en-us">',
|
|---|
| 1623 | u'<Text Node: \'" \'>',
|
|---|
| 1624 | u'<If node>',
|
|---|
| 1625 | u"<Text Node: '>\n<head>\n<title>'>",
|
|---|
| 1626 | u'<Block Node: title. Contents: []>',
|
|---|
| 1627 | u'<Text Node: \'</title>\n<link rel="style\'>',
|
|---|
| 1628 | u"<Block Node: stylesheet. Contents: [<django.template.defaulttags.LoadNode object at 0xb7ebc10>, <django.template.base.SimpleNode object at 0xb7f0ad0>, <Text Node: 'css/base.css'>]>",
|
|---|
| 1629 | u'<Text Node: \'" />\n\'>',
|
|---|
| 1630 | u'<Block Node: extrastyle. Contents: []>',
|
|---|
| 1631 | u"<Text Node: '\n<!--[if lte IE 7]><link '>",
|
|---|
| 1632 | u"<Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0xb7f0d10>, <django.template.base.SimpleNode object at 0xb7f0d50>, <Text Node: 'css/ie.css'>]>",
|
|---|
| 1633 | u'<Text Node: \'" /><![endif]-->\n\'>',
|
|---|
| 1634 | u'<If node>',
|
|---|
| 1635 | u'<Text Node: \'\n<script type="text/javas\'>',
|
|---|
| 1636 | u'<django.template.defaulttags.FilterNode object at 0xb7f0110>',
|
|---|
| 1637 | u'<Text Node: \'";</script>\n\'>',
|
|---|
| 1638 | u'<Block Node: extrahead. Contents: []>',
|
|---|
| 1639 | u"<Text Node: '\n'>",
|
|---|
| 1640 | u'<Block Node: blockbots. Contents: [<Text Node: \'<meta name="robots" conte\'>]>',
|
|---|
| 1641 | u"<Text Node: '\n</head>\n'>",
|
|---|
| 1642 | u'<django.template.defaulttags.LoadNode object at 0xb7f0690>',
|
|---|
| 1643 | u'<Text Node: \'\n\n<body class="\'>',
|
|---|
| 1644 | u'<If node>',
|
|---|
| 1645 | u'<Block Node: bodyclass. Contents: []>',
|
|---|
| 1646 | u'<Text Node: \'">\n\n<!-- Container -->\n<d\'>',
|
|---|
| 1647 | u'<If node>',
|
|---|
| 1648 | u"<Text Node: '\n\n '>",
|
|---|
| 1649 | u'<If node>',
|
|---|
| 1650 | u"<Text Node: '\n\n <!-- Content -->\n '>",
|
|---|
| 1651 | u"<Block Node: coltype. Contents: [<Text Node: 'colM'>]>",
|
|---|
| 1652 | u'<Text Node: \'">\n \'>',
|
|---|
| 1653 | u'<Block Node: pretitle. Contents: []>',
|
|---|
| 1654 | u"<Text Node: '\n '>",
|
|---|
| 1655 | u'<Block Node: content_title. Contents: [<If node>]>',
|
|---|
| 1656 | u"<Text Node: '\n '>",
|
|---|
| 1657 | u"<Block Node: content. Contents: [<Text Node: '\n '>, <Block Node: object-tools. Contents: []>, <Text Node: '\n '>, <Variable Node: content>, <Text Node: '\n '>]>",
|
|---|
| 1658 | u"<Text Node: '\n '>",
|
|---|
| 1659 | u'<Block Node: sidebar. Contents: []>',
|
|---|
| 1660 | u'<Text Node: \'\n <br class="clear\'>',
|
|---|
| 1661 | u'<Block Node: footer. Contents: [<Text Node: \'<div id="footer"></div>\'>]>',
|
|---|
| 1662 | u"<Text Node: '\n</div>\n<!-- END Containe'>"]</pre></td>
|
|---|
| 1663 | </tr>
|
|---|
| 1664 |
|
|---|
| 1665 | <tr>
|
|---|
| 1666 | <td>context</td>
|
|---|
| 1667 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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['block'] = 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>▶</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'<Block Node: content. Contents: [<Text Node: \'\n <div id="content-main"\'>, <Block Node: object-tools. Contents: [<Text Node: \'\n \'>, <If node>, <Text Node: \'\n \'>]>, <Text Node: \'\n \'>, <If no...'</pre></td>
|
|---|
| 1706 | </tr>
|
|---|
| 1707 |
|
|---|
| 1708 | <tr>
|
|---|
| 1709 | <td>block_context</td>
|
|---|
| 1710 | <td class="code"><pre>u'<django.template.loader_tags.BlockContext object at 0x857e950>'</pre></td>
|
|---|
| 1711 | </tr>
|
|---|
| 1712 |
|
|---|
| 1713 | <tr>
|
|---|
| 1714 | <td>context</td>
|
|---|
| 1715 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</pre></td>
|
|---|
| 1716 | </tr>
|
|---|
| 1717 |
|
|---|
| 1718 | <tr>
|
|---|
| 1719 | <td>block</td>
|
|---|
| 1720 | <td class="code"><pre>u'<Block Node: content. Contents: [<Text Node: \'\n <div id="content-main"\'>, <Block Node: object-tools. Contents: [<Text Node: \'\n \'>, <If node>, <Text Node: \'\n \'>]>, <Text Node: \'\n \'>, <If no...'</pre></td>
|
|---|
| 1721 | </tr>
|
|---|
| 1722 |
|
|---|
| 1723 | <tr>
|
|---|
| 1724 | <td>self</td>
|
|---|
| 1725 | <td class="code"><pre>u"<Block Node: content. Contents: [<Text Node: '\n '>, <Block Node: object-tools. Contents: []>, <Text Node: '\n '>, <Variable Node: content>, <Text Node: '\n '>]>"</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(''.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')"> "Return a list of all nodes of the given type"</li></ol>
|
|---|
| 1744 |
|
|---|
| 1745 | </div>
|
|---|
| 1746 |
|
|---|
| 1747 |
|
|---|
| 1748 |
|
|---|
| 1749 | <div class="commands">
|
|---|
| 1750 | <a href="#" onclick="return varToggle(this, '175078720')"><span>▶</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'<Block Node: date_hierarchy. Contents: [<django.template.base.InclusionNode object at 0x8786350>]>'</pre></td>
|
|---|
| 1764 | </tr>
|
|---|
| 1765 |
|
|---|
| 1766 | <tr>
|
|---|
| 1767 | <td>self</td>
|
|---|
| 1768 | <td class="code"><pre>[u'<Text Node: \'\n <div id="content-main"\'>',
|
|---|
| 1769 | u"<Block Node: object-tools. Contents: [<Text Node: '\n '>, <If node>, <Text Node: '\n '>]>",
|
|---|
| 1770 | u"<Text Node: '\n '>",
|
|---|
| 1771 | u'<If node>',
|
|---|
| 1772 | u'<Text Node: \'\n <div class="module\'>',
|
|---|
| 1773 | u'<If node>',
|
|---|
| 1774 | u'<Text Node: \'" id="changelist">\n \'>',
|
|---|
| 1775 | u'<Block Node: search. Contents: [<django.template.base.InclusionNode object at 0x8786850>]>',
|
|---|
| 1776 | u"<Text Node: '\n '>",
|
|---|
| 1777 | u'<Block Node: date_hierarchy. Contents: [<django.template.base.InclusionNode object at 0x8786350>]>',
|
|---|
| 1778 | u"<Text Node: '\n\n '>",
|
|---|
| 1779 | u"<Block Node: filters. Contents: [<Text Node: '\n '>, <If node>, <Text Node: '\n '>]>",
|
|---|
| 1780 | u'<Text Node: \'\n\n <form id="changel\'>',
|
|---|
| 1781 | u'<If node>',
|
|---|
| 1782 | u"<Text Node: '>'>",
|
|---|
| 1783 | u'<django.template.defaulttags.CsrfTokenNode object at 0x87868d0>',
|
|---|
| 1784 | u"<Text Node: '\n '>",
|
|---|
| 1785 | u'<If node>',
|
|---|
| 1786 | u"<Text Node: '\n\n '>",
|
|---|
| 1787 | u"<Block Node: result_list. Contents: [<Text Node: '\n '>, <If node>, <Text Node: '\n '>, <django.template.base.InclusionNode object at 0xb54a250>, <Text Node: '\n '>, <If node>,...",
|
|---|
| 1788 | u"<Text Node: '\n '>",
|
|---|
| 1789 | u'<Block Node: pagination. Contents: [<django.template.base.InclusionNode object at 0xb54ad50>]>',
|
|---|
| 1790 | u"<Text Node: '\n </form>\n </div>'>"]</pre></td>
|
|---|
| 1791 | </tr>
|
|---|
| 1792 |
|
|---|
| 1793 | <tr>
|
|---|
| 1794 | <td>bits</td>
|
|---|
| 1795 | <td class="code"><pre>[u'\n <div id="content-main">\n ',
|
|---|
| 1796 | u'\n \n <ul class="object-tools">\n \n <li>\n <a href="add/" class="addlink">\n Import hinzuf\xfcgen\n </a>\n </li>\n \n ...',
|
|---|
| 1797 | u'\n ',
|
|---|
| 1798 | '',
|
|---|
| 1799 | u'\n <div class="module',
|
|---|
| 1800 | u' filtered',
|
|---|
| 1801 | u'" id="changelist">\n ',
|
|---|
| 1802 | u'\n\n\n<div id="toolbar"><form id="changelist-search" action="" method="get">\n<div><!-- DIV needed for valid HTML -->\n<label for="searchbar"><img src="http://media.acp.mytrafficdata.com/img/admin/icon_sea...',
|
|---|
| 1803 | u'\n ']</pre></td>
|
|---|
| 1804 | </tr>
|
|---|
| 1805 |
|
|---|
| 1806 | <tr>
|
|---|
| 1807 | <td>context</td>
|
|---|
| 1808 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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')"> "Return a list of all nodes of the given type"</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>▶</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'<Block Node: date_hierarchy. Contents: [<django.template.base.InclusionNode object at 0x8786350>]>'</pre></td>
|
|---|
| 1847 | </tr>
|
|---|
| 1848 |
|
|---|
| 1849 | <tr>
|
|---|
| 1850 | <td>self</td>
|
|---|
| 1851 | <td class="code"><pre>[u'<Text Node: \'\n <div id="content-main"\'>',
|
|---|
| 1852 | u"<Block Node: object-tools. Contents: [<Text Node: '\n '>, <If node>, <Text Node: '\n '>]>",
|
|---|
| 1853 | u"<Text Node: '\n '>",
|
|---|
| 1854 | u'<If node>',
|
|---|
| 1855 | u'<Text Node: \'\n <div class="module\'>',
|
|---|
| 1856 | u'<If node>',
|
|---|
| 1857 | u'<Text Node: \'" id="changelist">\n \'>',
|
|---|
| 1858 | u'<Block Node: search. Contents: [<django.template.base.InclusionNode object at 0x8786850>]>',
|
|---|
| 1859 | u"<Text Node: '\n '>",
|
|---|
| 1860 | u'<Block Node: date_hierarchy. Contents: [<django.template.base.InclusionNode object at 0x8786350>]>',
|
|---|
| 1861 | u"<Text Node: '\n\n '>",
|
|---|
| 1862 | u"<Block Node: filters. Contents: [<Text Node: '\n '>, <If node>, <Text Node: '\n '>]>",
|
|---|
| 1863 | u'<Text Node: \'\n\n <form id="changel\'>',
|
|---|
| 1864 | u'<If node>',
|
|---|
| 1865 | u"<Text Node: '>'>",
|
|---|
| 1866 | u'<django.template.defaulttags.CsrfTokenNode object at 0x87868d0>',
|
|---|
| 1867 | u"<Text Node: '\n '>",
|
|---|
| 1868 | u'<If node>',
|
|---|
| 1869 | u"<Text Node: '\n\n '>",
|
|---|
| 1870 | u"<Block Node: result_list. Contents: [<Text Node: '\n '>, <If node>, <Text Node: '\n '>, <django.template.base.InclusionNode object at 0xb54a250>, <Text Node: '\n '>, <If node>,...",
|
|---|
| 1871 | u"<Text Node: '\n '>",
|
|---|
| 1872 | u'<Block Node: pagination. Contents: [<django.template.base.InclusionNode object at 0xb54ad50>]>',
|
|---|
| 1873 | u"<Text Node: '\n </form>\n </div>'>"]</pre></td>
|
|---|
| 1874 | </tr>
|
|---|
| 1875 |
|
|---|
| 1876 | <tr>
|
|---|
| 1877 | <td>context</td>
|
|---|
| 1878 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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['block'] = 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>▶</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'<Block Node: date_hierarchy. Contents: [<django.template.base.InclusionNode object at 0x8786350>]>'</pre></td>
|
|---|
| 1917 | </tr>
|
|---|
| 1918 |
|
|---|
| 1919 | <tr>
|
|---|
| 1920 | <td>block_context</td>
|
|---|
| 1921 | <td class="code"><pre>u'<django.template.loader_tags.BlockContext object at 0x857e950>'</pre></td>
|
|---|
| 1922 | </tr>
|
|---|
| 1923 |
|
|---|
| 1924 | <tr>
|
|---|
| 1925 | <td>context</td>
|
|---|
| 1926 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</pre></td>
|
|---|
| 1927 | </tr>
|
|---|
| 1928 |
|
|---|
| 1929 | <tr>
|
|---|
| 1930 | <td>block</td>
|
|---|
| 1931 | <td class="code"><pre>u'<Block Node: date_hierarchy. Contents: [<django.template.base.InclusionNode object at 0x8786350>]>'</pre></td>
|
|---|
| 1932 | </tr>
|
|---|
| 1933 |
|
|---|
| 1934 | <tr>
|
|---|
| 1935 | <td>self</td>
|
|---|
| 1936 | <td class="code"><pre>u'<Block Node: date_hierarchy. Contents: [<django.template.base.InclusionNode object at 0x8786350>]>'</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(''.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')"> "Return a list of all nodes of the given type"</li></ol>
|
|---|
| 1955 |
|
|---|
| 1956 | </div>
|
|---|
| 1957 |
|
|---|
| 1958 |
|
|---|
| 1959 |
|
|---|
| 1960 | <div class="commands">
|
|---|
| 1961 | <a href="#" onclick="return varToggle(this, '105993136')"><span>▶</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'<django.template.base.InclusionNode object at 0x8786350>'</pre></td>
|
|---|
| 1975 | </tr>
|
|---|
| 1976 |
|
|---|
| 1977 | <tr>
|
|---|
| 1978 | <td>self</td>
|
|---|
| 1979 | <td class="code"><pre>[u'<django.template.base.InclusionNode object at 0x8786350>']</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"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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')"> "Return a list of all nodes of the given type"</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>▶</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'<django.template.base.InclusionNode object at 0x8786350>'</pre></td>
|
|---|
| 2028 | </tr>
|
|---|
| 2029 |
|
|---|
| 2030 | <tr>
|
|---|
| 2031 | <td>self</td>
|
|---|
| 2032 | <td class="code"><pre>[u'<django.template.base.InclusionNode object at 0x8786350>']</pre></td>
|
|---|
| 2033 | </tr>
|
|---|
| 2034 |
|
|---|
| 2035 | <tr>
|
|---|
| 2036 | <td>context</td>
|
|---|
| 2037 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</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, 'nodelist', 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>▶</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'<django.contrib.admin.views.main.ChangeList object at 0xb548150>']</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'<function date_hierarchy at 0xb4bbd70>'</pre></td>
|
|---|
| 2086 | </tr>
|
|---|
| 2087 |
|
|---|
| 2088 | <tr>
|
|---|
| 2089 | <td>file_name</td>
|
|---|
| 2090 | <td class="code"><pre>'admin/date_hierarchy.html'</pre></td>
|
|---|
| 2091 | </tr>
|
|---|
| 2092 |
|
|---|
| 2093 | <tr>
|
|---|
| 2094 | <td>self</td>
|
|---|
| 2095 | <td class="code"><pre>u'<django.template.base.InclusionNode object at 0x8786350>'</pre></td>
|
|---|
| 2096 | </tr>
|
|---|
| 2097 |
|
|---|
| 2098 | <tr>
|
|---|
| 2099 | <td>args</td>
|
|---|
| 2100 | <td class="code"><pre>[u'<django.contrib.admin.views.main.ChangeList object at 0xb548150>']</pre></td>
|
|---|
| 2101 | </tr>
|
|---|
| 2102 |
|
|---|
| 2103 | <tr>
|
|---|
| 2104 | <td>context</td>
|
|---|
| 2105 | <td class="code"><pre>u"[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb632d50>}, {}, {'LANGUAGES': (('en', 'English'), ('de', 'German'), ('fr', 'French'), ('es', 'Spanish'), ('nl', 'Dutch'), ('it', 'Ital..."</pre></td>
|
|---|
| 2106 | </tr>
|
|---|
| 2107 |
|
|---|
| 2108 | <tr>
|
|---|
| 2109 | <td>var</td>
|
|---|
| 2110 | <td class="code"><pre>u'cl'</pre></td>
|
|---|
| 2111 | </tr>
|
|---|
| 2112 |
|
|---|
| 2113 | <tr>
|
|---|
| 2114 | <td>context_class</td>
|
|---|
| 2115 | <td class="code"><pre>u"<class 'django.template.context.Context'>"</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['first'] and date_range['last']:</li><li onclick="toggle('pre140725496', 'post140725496')"> if date_range['first'].year == date_range['last'].year:</li><li onclick="toggle('pre140725496', 'post140725496')"> year_lookup = date_range['first'].year</li><li onclick="toggle('pre140725496', 'post140725496')"> if date_range['first'].month == date_range['last'].month:</li><li onclick="toggle('pre140725496', 'post140725496')"> month_lookup = date_range['first'].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>▶</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>'import_date__month'</pre></td>
|
|---|
| 2154 | </tr>
|
|---|
| 2155 |
|
|---|
| 2156 | <tr>
|
|---|
| 2157 | <td>cl</td>
|
|---|
| 2158 | <td class="code"><pre>u'<django.contrib.admin.views.main.ChangeList object at 0xb548150>'</pre></td>
|
|---|
| 2159 | </tr>
|
|---|
| 2160 |
|
|---|
| 2161 | <tr>
|
|---|
| 2162 | <td>year_field</td>
|
|---|
| 2163 | <td class="code"><pre>'import_date__year'</pre></td>
|
|---|
| 2164 | </tr>
|
|---|
| 2165 |
|
|---|
| 2166 | <tr>
|
|---|
| 2167 | <td>field_generic</td>
|
|---|
| 2168 | <td class="code"><pre>'import_date__'</pre></td>
|
|---|
| 2169 | </tr>
|
|---|
| 2170 |
|
|---|
| 2171 | <tr>
|
|---|
| 2172 | <td>day_field</td>
|
|---|
| 2173 | <td class="code"><pre>'import_date__day'</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'<function <lambda> at 0x8773500>'</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>'import_date'</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')"> """</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>▶</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'[<WebImport: 2011-05-30 11:30:17>, <WebImport: 2011-05-30 11:11:04>, <WebImport: 2011-05-30 10:53:43>, <WebImport: 2011-05-30 10:41:14>, <WebImport: 2011-05-30 10:37:05>, <WebImport: 2011-05-30 10:08:...'</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>'first'</pre></td>
|
|---|
| 2247 | </tr>
|
|---|
| 2248 |
|
|---|
| 2249 | <tr>
|
|---|
| 2250 | <td>kwargs</td>
|
|---|
| 2251 | <td class="code"><pre>{'first': u'<django.db.models.aggregates.Min object at 0xb7efa10>',
|
|---|
| 2252 | 'last': u'<django.db.models.aggregates.Max object at 0xb7efdd0>'}</pre></td>
|
|---|
| 2253 | </tr>
|
|---|
| 2254 |
|
|---|
| 2255 | <tr>
|
|---|
| 2256 | <td>query</td>
|
|---|
| 2257 | <td class="code"><pre>u'SELECT MAX(`imports_webimport`.`import_date`) AS `last`, MIN(`imports_webimport`.`import_date`) AS `first` FROM `imports_webimport`'</pre></td>
|
|---|
| 2258 | </tr>
|
|---|
| 2259 |
|
|---|
| 2260 | <tr>
|
|---|
| 2261 | <td>aggregate_expr</td>
|
|---|
| 2262 | <td class="code"><pre>u'<django.db.models.aggregates.Min object at 0xb7efa10>'</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')"> """</li><li onclick="toggle('pre140725928', 'post140725928')"> Performs a COUNT() query using the current filter constraints.</li><li onclick="toggle('pre140725928', 'post140725928')"> """</li></ol>
|
|---|
| 2281 |
|
|---|
| 2282 | </div>
|
|---|
| 2283 |
|
|---|
| 2284 |
|
|---|
| 2285 |
|
|---|
| 2286 | <div class="commands">
|
|---|
| 2287 | <a href="#" onclick="return varToggle(this, '140725928')"><span>▶</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'2011-05-30 11:30:17'</pre></td>
|
|---|
| 2301 | </tr>
|
|---|
| 2302 |
|
|---|
| 2303 | <tr>
|
|---|
| 2304 | <td>using</td>
|
|---|
| 2305 | <td class="code"><pre>'default'</pre></td>
|
|---|
| 2306 | </tr>
|
|---|
| 2307 |
|
|---|
| 2308 | <tr>
|
|---|
| 2309 | <td>alias</td>
|
|---|
| 2310 | <td class="code"><pre>'last'</pre></td>
|
|---|
| 2311 | </tr>
|
|---|
| 2312 |
|
|---|
| 2313 | <tr>
|
|---|
| 2314 | <td>result</td>
|
|---|
| 2315 | <td class="code"><pre>[u'2011-05-30 11:30:17', u'2009-11-10 02:00:00']</pre></td>
|
|---|
| 2316 | </tr>
|
|---|
| 2317 |
|
|---|
| 2318 | <tr>
|
|---|
| 2319 | <td>query</td>
|
|---|
| 2320 | <td class="code"><pre>u'SELECT MAX(`imports_webimport`.`import_date`) AS `last`, MIN(`imports_webimport`.`import_date`) AS `first` FROM `imports_webimport`'</pre></td>
|
|---|
| 2321 | </tr>
|
|---|
| 2322 |
|
|---|
| 2323 | <tr>
|
|---|
| 2324 | <td>aggregate</td>
|
|---|
| 2325 | <td class="code"><pre>u'<django.db.models.sql.aggregates.Max object at 0xb667050>'</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'SELECT MAX(`imports_webimport`.`import_date`) AS `last`, MIN(`imports_webimport`.`import_date`) AS `first` FROM `imports_webimport`'</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')"> """</li></ol>
|
|---|
| 2354 |
|
|---|
| 2355 | </div>
|
|---|
| 2356 |
|
|---|
| 2357 |
|
|---|
| 2358 |
|
|---|
| 2359 | <div class="commands">
|
|---|
| 2360 | <a href="#" onclick="return varToggle(this, '140724848')"><span>▶</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'<django.db.models.sql.aggregates.Max object at 0xb667050>'</pre></td>
|
|---|
| 2374 | </tr>
|
|---|
| 2375 |
|
|---|
| 2376 | <tr>
|
|---|
| 2377 | <td>connection</td>
|
|---|
| 2378 | <td class="code"><pre>u'<django.db.backends.mysql.base.DatabaseWrapper object at 0xec1aa0>'</pre></td>
|
|---|
| 2379 | </tr>
|
|---|
| 2380 |
|
|---|
| 2381 | <tr>
|
|---|
| 2382 | <td>self</td>
|
|---|
| 2383 | <td class="code"><pre>u'SELECT MAX(`imports_webimport`.`import_date`) AS `last`, MIN(`imports_webimport`.`import_date`) AS `first` FROM `imports_webimport`'</pre></td>
|
|---|
| 2384 | </tr>
|
|---|
| 2385 |
|
|---|
| 2386 | <tr>
|
|---|
| 2387 | <td>value</td>
|
|---|
| 2388 | <td class="code"><pre>u'2011-05-30 11:30:17'</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>'f499601909593a52f3b5234e99ef6c7d'</pre></td>
|
|---|
| 2424 | </tr>
|
|---|
| 2425 |
|
|---|
| 2426 | <tr>
|
|---|
| 2427 | <td>sessionid</td>
|
|---|
| 2428 | <td class="code"><pre>'ac24b53bfd982916457e5efdcc06f137'</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>'f499601909593a52f3b5234e99ef6c7d'</pre></td>
|
|---|
| 2464 | </tr>
|
|---|
| 2465 |
|
|---|
| 2466 | <tr>
|
|---|
| 2467 | <td>DOCUMENT_ROOT</td>
|
|---|
| 2468 | <td class="code"><pre>'/home/dcollectpy/htdocs/prod'</pre></td>
|
|---|
| 2469 | </tr>
|
|---|
| 2470 |
|
|---|
| 2471 | <tr>
|
|---|
| 2472 | <td>GATEWAY_INTERFACE</td>
|
|---|
| 2473 | <td class="code"><pre>'CGI/1.1'</pre></td>
|
|---|
| 2474 | </tr>
|
|---|
| 2475 |
|
|---|
| 2476 | <tr>
|
|---|
| 2477 | <td>HTTP_ACCEPT</td>
|
|---|
| 2478 | <td class="code"><pre>'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'</pre></td>
|
|---|
| 2479 | </tr>
|
|---|
| 2480 |
|
|---|
| 2481 | <tr>
|
|---|
| 2482 | <td>HTTP_ACCEPT_CHARSET</td>
|
|---|
| 2483 | <td class="code"><pre>'ISO-8859-1,utf-8;q=0.7,*;q=0.7'</pre></td>
|
|---|
| 2484 | </tr>
|
|---|
| 2485 |
|
|---|
| 2486 | <tr>
|
|---|
| 2487 | <td>HTTP_ACCEPT_ENCODING</td>
|
|---|
| 2488 | <td class="code"><pre>'gzip,deflate'</pre></td>
|
|---|
| 2489 | </tr>
|
|---|
| 2490 |
|
|---|
| 2491 | <tr>
|
|---|
| 2492 | <td>HTTP_ACCEPT_LANGUAGE</td>
|
|---|
| 2493 | <td class="code"><pre>'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3'</pre></td>
|
|---|
| 2494 | </tr>
|
|---|
| 2495 |
|
|---|
| 2496 | <tr>
|
|---|
| 2497 | <td>HTTP_CONNECTION</td>
|
|---|
| 2498 | <td class="code"><pre>'keep-alive'</pre></td>
|
|---|
| 2499 | </tr>
|
|---|
| 2500 |
|
|---|
| 2501 | <tr>
|
|---|
| 2502 | <td>HTTP_COOKIE</td>
|
|---|
| 2503 | <td class="code"><pre>'sessionid=ac24b53bfd982916457e5efdcc06f137; csrftoken=f499601909593a52f3b5234e99ef6c7d'</pre></td>
|
|---|
| 2504 | </tr>
|
|---|
| 2505 |
|
|---|
| 2506 | <tr>
|
|---|
| 2507 | <td>HTTP_HOST</td>
|
|---|
| 2508 | <td class="code"><pre>'www.mytrafficdata.com'</pre></td>
|
|---|
| 2509 | </tr>
|
|---|
| 2510 |
|
|---|
| 2511 | <tr>
|
|---|
| 2512 | <td>HTTP_KEEP_ALIVE</td>
|
|---|
| 2513 | <td class="code"><pre>'115'</pre></td>
|
|---|
| 2514 | </tr>
|
|---|
| 2515 |
|
|---|
| 2516 | <tr>
|
|---|
| 2517 | <td>HTTP_REFERER</td>
|
|---|
| 2518 | <td class="code"><pre>'http://www.mytrafficdata.com/admin/'</pre></td>
|
|---|
| 2519 | </tr>
|
|---|
| 2520 |
|
|---|
| 2521 | <tr>
|
|---|
| 2522 | <td>HTTP_USER_AGENT</td>
|
|---|
| 2523 | <td class="code"><pre>'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.17) Gecko/20110422 Ubuntu/10.04 (lucid) Firefox/3.6.17'</pre></td>
|
|---|
| 2524 | </tr>
|
|---|
| 2525 |
|
|---|
| 2526 | <tr>
|
|---|
| 2527 | <td>PATH</td>
|
|---|
| 2528 | <td class="code"><pre>'/usr/local/bin:/usr/bin:/bin'</pre></td>
|
|---|
| 2529 | </tr>
|
|---|
| 2530 |
|
|---|
| 2531 | <tr>
|
|---|
| 2532 | <td>PATH_INFO</td>
|
|---|
| 2533 | <td class="code"><pre>u'/admin/imports/webimport/'</pre></td>
|
|---|
| 2534 | </tr>
|
|---|
| 2535 |
|
|---|
| 2536 | <tr>
|
|---|
| 2537 | <td>PATH_TRANSLATED</td>
|
|---|
| 2538 | <td class="code"><pre>'/home/dcollectpy/htdocs/prod/django.fcgi/admin/imports/webimport/'</pre></td>
|
|---|
| 2539 | </tr>
|
|---|
| 2540 |
|
|---|
| 2541 | <tr>
|
|---|
| 2542 | <td>QUERY_STRING</td>
|
|---|
| 2543 | <td class="code"><pre>''</pre></td>
|
|---|
| 2544 | </tr>
|
|---|
| 2545 |
|
|---|
| 2546 | <tr>
|
|---|
| 2547 | <td>REMOTE_ADDR</td>
|
|---|
| 2548 | <td class="code"><pre>'217.91.26.230'</pre></td>
|
|---|
| 2549 | </tr>
|
|---|
| 2550 |
|
|---|
| 2551 | <tr>
|
|---|
| 2552 | <td>REMOTE_PORT</td>
|
|---|
| 2553 | <td class="code"><pre>'23788'</pre></td>
|
|---|
| 2554 | </tr>
|
|---|
| 2555 |
|
|---|
| 2556 | <tr>
|
|---|
| 2557 | <td>REQUEST_METHOD</td>
|
|---|
| 2558 | <td class="code"><pre>'GET'</pre></td>
|
|---|
| 2559 | </tr>
|
|---|
| 2560 |
|
|---|
| 2561 | <tr>
|
|---|
| 2562 | <td>REQUEST_URI</td>
|
|---|
| 2563 | <td class="code"><pre>'/admin/imports/webimport/'</pre></td>
|
|---|
| 2564 | </tr>
|
|---|
| 2565 |
|
|---|
| 2566 | <tr>
|
|---|
| 2567 | <td>SCRIPT_FILENAME</td>
|
|---|
| 2568 | <td class="code"><pre>'/home/dcollectpy/htdocs/prod/django.fcgi'</pre></td>
|
|---|
| 2569 | </tr>
|
|---|
| 2570 |
|
|---|
| 2571 | <tr>
|
|---|
| 2572 | <td>SCRIPT_NAME</td>
|
|---|
| 2573 | <td class="code"><pre>u''</pre></td>
|
|---|
| 2574 | </tr>
|
|---|
| 2575 |
|
|---|
| 2576 | <tr>
|
|---|
| 2577 | <td>SCRIPT_URI</td>
|
|---|
| 2578 | <td class="code"><pre>'http://www.mytrafficdata.com/admin/imports/webimport/'</pre></td>
|
|---|
| 2579 | </tr>
|
|---|
| 2580 |
|
|---|
| 2581 | <tr>
|
|---|
| 2582 | <td>SCRIPT_URL</td>
|
|---|
| 2583 | <td class="code"><pre>'/admin/imports/webimport/'</pre></td>
|
|---|
| 2584 | </tr>
|
|---|
| 2585 |
|
|---|
| 2586 | <tr>
|
|---|
| 2587 | <td>SERVER_ADDR</td>
|
|---|
| 2588 | <td class="code"><pre>'217.31.84.21'</pre></td>
|
|---|
| 2589 | </tr>
|
|---|
| 2590 |
|
|---|
| 2591 | <tr>
|
|---|
| 2592 | <td>SERVER_ADMIN</td>
|
|---|
| 2593 | <td class="code"><pre>'hostmaster@adns.de'</pre></td>
|
|---|
| 2594 | </tr>
|
|---|
| 2595 |
|
|---|
| 2596 | <tr>
|
|---|
| 2597 | <td>SERVER_NAME</td>
|
|---|
| 2598 | <td class="code"><pre>'www.mytrafficdata.com'</pre></td>
|
|---|
| 2599 | </tr>
|
|---|
| 2600 |
|
|---|
| 2601 | <tr>
|
|---|
| 2602 | <td>SERVER_PORT</td>
|
|---|
| 2603 | <td class="code"><pre>'80'</pre></td>
|
|---|
| 2604 | </tr>
|
|---|
| 2605 |
|
|---|
| 2606 | <tr>
|
|---|
| 2607 | <td>SERVER_PROTOCOL</td>
|
|---|
| 2608 | <td class="code"><pre>'HTTP/1.1'</pre></td>
|
|---|
| 2609 | </tr>
|
|---|
| 2610 |
|
|---|
| 2611 | <tr>
|
|---|
| 2612 | <td>SERVER_SIGNATURE</td>
|
|---|
| 2613 | <td class="code"><pre>'<address>Apache Server at www.mytrafficdata.com Port 80</address>\n'</pre></td>
|
|---|
| 2614 | </tr>
|
|---|
| 2615 |
|
|---|
| 2616 | <tr>
|
|---|
| 2617 | <td>SERVER_SOFTWARE</td>
|
|---|
| 2618 | <td class="code"><pre>'Apache'</pre></td>
|
|---|
| 2619 | </tr>
|
|---|
| 2620 |
|
|---|
| 2621 | <tr>
|
|---|
| 2622 | <td>UNIQUE_ID</td>
|
|---|
| 2623 | <td class="code"><pre>'TeNlVn8AAQEAACMyuFUAAAAK'</pre></td>
|
|---|
| 2624 | </tr>
|
|---|
| 2625 |
|
|---|
| 2626 | <tr>
|
|---|
| 2627 | <td>wsgi.errors</td>
|
|---|
| 2628 | <td class="code"><pre>u'<flup.server.fcgi_base.OutputStream object at 0xb63a710>'</pre></td>
|
|---|
| 2629 | </tr>
|
|---|
| 2630 |
|
|---|
| 2631 | <tr>
|
|---|
| 2632 | <td>wsgi.input</td>
|
|---|
| 2633 | <td class="code"><pre>u'<flup.server.fcgi_base.InputStream object at 0xb4a5150>'</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>'http'</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'markus'
|
|---|
| 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>
|
|---|