| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | <head> |
|---|
| 6 | <title> |
|---|
| 7 | Internal Error – |
|---|
| 8 | cblaptop trac – Trac |
|---|
| 9 | </title> |
|---|
| 10 | <link rel="search" href="/cblaptop-trac/search" /> |
|---|
| 11 | <link rel="help" href="/cblaptop-trac/wiki/TracGuide" /> |
|---|
| 12 | <link rel="start" href="/cblaptop-trac/wiki" /> |
|---|
| 13 | <link rel="stylesheet" href="/cblaptop-trac/chrome/common/css/trac.css" type="text/css" /> |
|---|
| 14 | <link rel="shortcut icon" href="/cblaptop-trac/chrome/common/trac.ico" type="image/x-icon" /> |
|---|
| 15 | <link rel="icon" href="/cblaptop-trac/chrome/common/trac.ico" type="image/x-icon" /> |
|---|
| 16 | <link type="application/opensearchdescription+xml" rel="search" href="/cblaptop-trac/search/opensearch" title="Search cblaptop trac" /> |
|---|
| 17 | <script type="text/javascript" src="/cblaptop-trac/chrome/common/js/jquery.js"></script><script type="text/javascript" src="/cblaptop-trac/chrome/common/js/trac.js"></script><script type="text/javascript" src="/cblaptop-trac/chrome/common/js/search.js"></script> |
|---|
| 18 | <!--[if lt IE 7]> |
|---|
| 19 | <script type="text/javascript" src="/cblaptop-trac/chrome/common/js/ie_pre7_hacks.js"></script> |
|---|
| 20 | <![endif]--> |
|---|
| 21 | <script type="text/javascript">/*<![CDATA[*/ |
|---|
| 22 | $(document).ready(function() { |
|---|
| 23 | $("#traceback a").click(function() { |
|---|
| 24 | $("div", this.parentNode).slideToggle("fast"); |
|---|
| 25 | return false; |
|---|
| 26 | }); |
|---|
| 27 | $("#tbtoggle").click(function() { |
|---|
| 28 | if (this.value.indexOf("interactive") < 0) { |
|---|
| 29 | this.value = "Switch to interactive view"; |
|---|
| 30 | $("#traceback ul").fadeOut("fast", function() { |
|---|
| 31 | $("#traceback pre").fadeIn("fast"); |
|---|
| 32 | }); |
|---|
| 33 | } else { |
|---|
| 34 | this.value = "Switch to plain text view"; |
|---|
| 35 | $("#traceback pre").fadeOut("fast", function() { |
|---|
| 36 | $("#traceback ul").fadeIn("fast"); |
|---|
| 37 | }); |
|---|
| 38 | } |
|---|
| 39 | return false; |
|---|
| 40 | }); |
|---|
| 41 | var descr = $("#description").text(); |
|---|
| 42 | descr = descr.replace(/==== System Information ====\s+/m, |
|---|
| 43 | "User Agent was: `" + navigator.userAgent + "`\n\n$&" |
|---|
| 44 | ); |
|---|
| 45 | descr = descr.replace(/\|\|\s+==== Python Traceback ====/m, |
|---|
| 46 | "||\n|| '''jQuery:''' || `" + $().jquery + "` $&" |
|---|
| 47 | ); |
|---|
| 48 | $("#description").text(descr); |
|---|
| 49 | $("#systeminfo").append("<tr><th>jQuery:</th><td>"+$().jquery+"</td></tr>"); |
|---|
| 50 | $("#systeminfo").before("<p>User Agent: <tt>"+navigator.userAgent+"</tt></p>"); |
|---|
| 51 | }); |
|---|
| 52 | /*]]>*/</script> |
|---|
| 53 | </head> |
|---|
| 54 | <body> |
|---|
| 55 | <div id="banner"> |
|---|
| 56 | <div id="header"> |
|---|
| 57 | <a id="logo" href="http://cblaptop:8001/cblaptop-trac/wiki/WikiStart"><img src="/cblaptop-trac/chrome/common/beafraid_thumbnail.gif" alt="Christian Boos' Personal Trac" /></a> |
|---|
| 58 | </div> |
|---|
| 59 | <form id="search" action="/cblaptop-trac/search" method="get"><div> |
|---|
| 60 | <label for="proj-search">Search:</label> |
|---|
| 61 | <input type="text" id="proj-search" name="q" size="18" value="" /> |
|---|
| 62 | <input type="submit" value="Search" /> |
|---|
| 63 | </div></form> |
|---|
| 64 | <div id="metanav" class="nav"> |
|---|
| 65 | <ul> |
|---|
| 66 | <li class="first">logged in as cboos</li><li><a href="/cblaptop-trac/logout">Logout</a></li><li><a href="/cblaptop-trac/prefs">Preferences</a></li><li><a href="/cblaptop-trac/wiki/TracGuide">Help/Guide</a></li><li class="last"><a href="/cblaptop-trac/about">About Trac</a></li> |
|---|
| 67 | </ul> |
|---|
| 68 | </div> |
|---|
| 69 | </div> |
|---|
| 70 | <div id="mainnav" class="nav"> |
|---|
| 71 | <ul> |
|---|
| 72 | <li class="first"><a href="/cblaptop-trac/wiki">Wiki</a></li><li class="active"><a href="/cblaptop-trac/timeline">Timeline</a></li><li><a href="/cblaptop-trac/roadmap">Roadmap</a></li><li><a href="/cblaptop-trac/browser">Browse Source</a></li><li><a href="/cblaptop-trac/report">View Tickets</a></li><li><a href="/cblaptop-trac/newticket">New Ticket</a></li><li><a href="/cblaptop-trac/search">Search</a></li><li><a href="/cblaptop-trac/admin" title="Administration">Admin</a></li><li class="last"><a href="/cblaptop-trac/pydoc">PyDoc</a></li> |
|---|
| 73 | </ul> |
|---|
| 74 | </div> |
|---|
| 75 | <div id="main"> |
|---|
| 76 | <div id="ctxtnav" class="nav"></div> |
|---|
| 77 | <div id="content" class="error"> |
|---|
| 78 | <h1>Oops…</h1> |
|---|
| 79 | <div class="message"> |
|---|
| 80 | <strong>Trac detected an internal error:</strong> |
|---|
| 81 | <pre>RuntimeError: deque mutated during iteration</pre> |
|---|
| 82 | </div> |
|---|
| 83 | <p>If you think this should work you can reproduce the problem, |
|---|
| 84 | you should consider reporting this to the Trac team.</p> |
|---|
| 85 | <p>Before you do that, though, please first try |
|---|
| 86 | <a href="http://trac.edgewall.org//search?ticket=yes&noquickjump=1&q=RuntimeError%3A+deque+mutated+during+iteration">searching</a> |
|---|
| 87 | for similar issues, as it is quite likely that this problem |
|---|
| 88 | has been reported before. For questions about installation |
|---|
| 89 | and configuration of Trac, please try the |
|---|
| 90 | <a href="http://trac.edgewall.org//wiki/MailingList">mailing list</a> |
|---|
| 91 | instead of filing a ticket. |
|---|
| 92 | </p> |
|---|
| 93 | <form class="newticket" method="get" action="http://trac.edgewall.org//newticket"> |
|---|
| 94 | <p>Otherwise, please |
|---|
| 95 | <input type="hidden" name="preview" value="1" /> |
|---|
| 96 | <input type="hidden" name="reporter" value="cboos" /> |
|---|
| 97 | <input type="hidden" name="version" value="devel" /> |
|---|
| 98 | <input type="hidden" name="summary" value="RuntimeError: deque mutated during iteration" /> |
|---|
| 99 | <textarea name="description" rows="3" cols="10"> |
|---|
| 100 | ==== How to Reproduce ==== |
|---|
| 101 | |
|---|
| 102 | While doing a GET operation on `/timeline`, Trac issued an internal error. |
|---|
| 103 | |
|---|
| 104 | ''(please provide additional details here)'' |
|---|
| 105 | |
|---|
| 106 | |
|---|
| 107 | Request parameters: |
|---|
| 108 | {{{ |
|---|
| 109 | {'changeset': u'on', |
|---|
| 110 | 'daysback': u'898', |
|---|
| 111 | 'from': u'10/29/2007', |
|---|
| 112 | 'milestone': u'on', |
|---|
| 113 | 'ticket': u'on', |
|---|
| 114 | 'ticket_details': u'on', |
|---|
| 115 | 'update': u'Update', |
|---|
| 116 | 'wiki': u'on'} |
|---|
| 117 | }}} |
|---|
| 118 | |
|---|
| 119 | |
|---|
| 120 | ==== System Information ==== |
|---|
| 121 | |
|---|
| 122 | || '''Trac''' || `0.11dev-r6089` || |
|---|
| 123 | || '''Python''' || `2.4.2 (#67, Oct 30 2005, 16:11:18) [MSC v.1310 32 bit (Intel)]` || |
|---|
| 124 | || '''setuptools''' || `0.7a1` || |
|---|
| 125 | || '''SQLite''' || `3.3.10` || |
|---|
| 126 | || '''pysqlite''' || `2.3.3` || |
|---|
| 127 | || '''Genshi''' || `0.5dev-r656` || |
|---|
| 128 | || '''Pygments''' || `None` || |
|---|
| 129 | || '''Mercurial''' || `unknown` || |
|---|
| 130 | |
|---|
| 131 | ==== Python Traceback ==== |
|---|
| 132 | {{{ |
|---|
| 133 | Traceback (most recent call last): |
|---|
| 134 | File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\main.py", line 381, in dispatch_request |
|---|
| 135 | dispatcher.dispatch(req) |
|---|
| 136 | File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\main.py", line 213, in dispatch |
|---|
| 137 | data, content_type) |
|---|
| 138 | File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\chrome.py", line 619, in render_template |
|---|
| 139 | return stream.render(method, doctype=doctype) |
|---|
| 140 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\core.py", line 172, in render |
|---|
| 141 | return encode(generator, method=method, encoding=encoding) |
|---|
| 142 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", line 45, in encode |
|---|
| 143 | output = u''.join(list(iterator)) |
|---|
| 144 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", line 274, in __call__ |
|---|
| 145 | for kind, data, pos in stream: |
|---|
| 146 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", line 526, in __call__ |
|---|
| 147 | for kind, data, pos in stream: |
|---|
| 148 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", line 632, in __call__ |
|---|
| 149 | for kind, data, pos in chain(stream, [(None, None, None)]): |
|---|
| 150 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", line 466, in __call__ |
|---|
| 151 | for ev in stream: |
|---|
| 152 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\core.py", line 273, in _ensure |
|---|
| 153 | for event in stream: |
|---|
| 154 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\core.py", line 273, in _ensure |
|---|
| 155 | for event in stream: |
|---|
| 156 | File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\chrome.py", line 649, in _strip_accesskeys |
|---|
| 157 | for kind, data, pos in stream: |
|---|
| 158 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\core.py", line 273, in _ensure |
|---|
| 159 | for event in stream: |
|---|
| 160 | File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\chrome.py", line 638, in _generate |
|---|
| 161 | for kind, data, pos in stream: |
|---|
| 162 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 521, in _include |
|---|
| 163 | for event in stream: |
|---|
| 164 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\markup.py", line 279, in _match |
|---|
| 165 | ctxt)) |
|---|
| 166 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 521, in _include |
|---|
| 167 | for event in stream: |
|---|
| 168 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\markup.py", line 239, in _strip |
|---|
| 169 | event = stream.next() |
|---|
| 170 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 496, in _exec |
|---|
| 171 | for event in stream: |
|---|
| 172 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 450, in _eval |
|---|
| 173 | for kind, data, pos in stream: |
|---|
| 174 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 510, in _flatten |
|---|
| 175 | for event in self._flatten(substream, ctxt): |
|---|
| 176 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 510, in _flatten |
|---|
| 177 | for event in self._flatten(substream, ctxt): |
|---|
| 178 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 504, in _flatten |
|---|
| 179 | for event in stream: |
|---|
| 180 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\directives.py", line 371, in __call__ |
|---|
| 181 | for item in iterable: |
|---|
| 182 | File "<string>", line 1, in <lambda.3> |
|---|
| 183 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\eval.py", line 265, in lookup_name |
|---|
| 184 | val = data.get(name, UNDEFINED) |
|---|
| 185 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 224, in get |
|---|
| 186 | for frame in self.frames: |
|---|
| 187 | RuntimeError: deque mutated during iteration |
|---|
| 188 | |
|---|
| 189 | }}} |
|---|
| 190 | </textarea> |
|---|
| 191 | <span class="inlinebuttons"> |
|---|
| 192 | <input type="submit" name="create" value="Create" /> |
|---|
| 193 | </span> |
|---|
| 194 | a new ticket at |
|---|
| 195 | the Trac project site, where you can describe the problem and |
|---|
| 196 | explain how to reproduce it.</p> |
|---|
| 197 | </form> |
|---|
| 198 | <h2>Python Traceback</h2> |
|---|
| 199 | <div id="traceback"> |
|---|
| 200 | Most recent call last: |
|---|
| 201 | <ul> |
|---|
| 202 | <li class="frame"> |
|---|
| 203 | <a href="#frame0" id="frame0"> |
|---|
| 204 | <span class="file">File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\main.py", |
|---|
| 205 | line <b>381</b>, in</span> |
|---|
| 206 | <var>dispatch_request</var> |
|---|
| 207 | </a> |
|---|
| 208 | <div class="source" style="display: none"> |
|---|
| 209 | <h3>Code fragment:</h3> |
|---|
| 210 | <ol start="376"> |
|---|
| 211 | <li><code> if not env and env_error:</code></li><li><code> raise HTTPInternalError(env_error)</code></li><li><code> try:</code></li><li><code> try:</code></li><li><code> dispatcher = RequestDispatcher(env)</code></li> |
|---|
| 212 | <li class="current"><code> dispatcher.dispatch(req)</code></li> |
|---|
| 213 | <li><code> except RequestDone:</code></li><li><code> pass</code></li><li><code> return req._response or []</code></li><li><code> finally:</code></li><li><code> if not run_once:</code></li> |
|---|
| 214 | </ol> |
|---|
| 215 | </div> |
|---|
| 216 | <div class="vars" style="display: none"> |
|---|
| 217 | <h3>Local variables:</h3> |
|---|
| 218 | <table class="listing"> |
|---|
| 219 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 220 | <tbody> |
|---|
| 221 | <tr> |
|---|
| 222 | <th scope="row"><var>after</var></th> |
|---|
| 223 | <td><code>[' except RequestDone:', ' pass', ' ...</code></td> |
|---|
| 224 | </tr><tr class="odd"> |
|---|
| 225 | <th scope="row"><var>before</var></th> |
|---|
| 226 | <td><code>[' if not env and env_error:', ' raise ...</code></td> |
|---|
| 227 | </tr><tr> |
|---|
| 228 | <th scope="row"><var>dispatcher</var></th> |
|---|
| 229 | <td><code><trac.web.main.RequestDispatcher object at 0x01E01610></code></td> |
|---|
| 230 | </tr><tr class="odd"> |
|---|
| 231 | <th scope="row"><var>e</var></th> |
|---|
| 232 | <td><code><exceptions.RuntimeError instance at 0x035C9C10></code></td> |
|---|
| 233 | </tr><tr> |
|---|
| 234 | <th scope="row"><var>env</var></th> |
|---|
| 235 | <td><code><trac.env.Environment object at 0x01B21890></code></td> |
|---|
| 236 | </tr><tr class="odd"> |
|---|
| 237 | <th scope="row"><var>env_error</var></th> |
|---|
| 238 | <td><code>None</code></td> |
|---|
| 239 | </tr><tr> |
|---|
| 240 | <th scope="row"><var>env_name</var></th> |
|---|
| 241 | <td><code>'cblaptop-trac'</code></td> |
|---|
| 242 | </tr><tr class="odd"> |
|---|
| 243 | <th scope="row"><var>env_parent_dir</var></th> |
|---|
| 244 | <td><code>'C:\\Workspace\\local\\trac'</code></td> |
|---|
| 245 | </tr><tr> |
|---|
| 246 | <th scope="row"><var>env_path</var></th> |
|---|
| 247 | <td><code>'C:\\Workspace\\local\\trac\\cblaptop-trac'</code></td> |
|---|
| 248 | </tr><tr class="odd"> |
|---|
| 249 | <th scope="row"><var>env_paths</var></th> |
|---|
| 250 | <td><code>None</code></td> |
|---|
| 251 | </tr><tr> |
|---|
| 252 | <th scope="row"><var>environ</var></th> |
|---|
| 253 | <td><code>{'HTTP_AUTHORIZATION': 'Digest username="cboos", realm="BCT", ...</code></td> |
|---|
| 254 | </tr><tr class="odd"> |
|---|
| 255 | <th scope="row"><var>exc_info</var></th> |
|---|
| 256 | <td><code>(<class exceptions.RuntimeError at 0x00A647B0>, <exceptions.RuntimeError ...</code></td> |
|---|
| 257 | </tr><tr> |
|---|
| 258 | <th scope="row"><var>filename</var></th> |
|---|
| 259 | <td><code>'C:\\Workspace\\src\\trac\\repos\\context-refactoring\\trac\\web\\main.py'</code></td> |
|---|
| 260 | </tr><tr class="odd"> |
|---|
| 261 | <th scope="row"><var>frames</var></th> |
|---|
| 262 | <td><code>[{'function': 'dispatch_request', 'lines_before': [' if not env and ...</code></td> |
|---|
| 263 | </tr><tr> |
|---|
| 264 | <th scope="row"><var>has_admin</var></th> |
|---|
| 265 | <td><code>True</code></td> |
|---|
| 266 | </tr><tr class="odd"> |
|---|
| 267 | <th scope="row"><var>line</var></th> |
|---|
| 268 | <td><code>' dispatcher.dispatch(req)'</code></td> |
|---|
| 269 | </tr><tr> |
|---|
| 270 | <th scope="row"><var>lineno</var></th> |
|---|
| 271 | <td><code>380</code></td> |
|---|
| 272 | </tr><tr class="odd"> |
|---|
| 273 | <th scope="row"><var>message</var></th> |
|---|
| 274 | <td><code>u'RuntimeError: deque mutated during iteration'</code></td> |
|---|
| 275 | </tr><tr> |
|---|
| 276 | <th scope="row"><var>path_info</var></th> |
|---|
| 277 | <td><code>['timeline']</code></td> |
|---|
| 278 | </tr><tr class="odd"> |
|---|
| 279 | <th scope="row"><var>req</var></th> |
|---|
| 280 | <td><code><Request "GET u'/timeline'"></code></td> |
|---|
| 281 | </tr><tr> |
|---|
| 282 | <th scope="row"><var>run_once</var></th> |
|---|
| 283 | <td><code>False</code></td> |
|---|
| 284 | </tr><tr class="odd"> |
|---|
| 285 | <th scope="row"><var>script_url</var></th> |
|---|
| 286 | <td><code>None</code></td> |
|---|
| 287 | </tr><tr> |
|---|
| 288 | <th scope="row"><var>start_response</var></th> |
|---|
| 289 | <td><code><bound method WSGIServerGateway._start_response of ...</code></td> |
|---|
| 290 | </tr><tr class="odd"> |
|---|
| 291 | <th scope="row"><var>tb</var></th> |
|---|
| 292 | <td><code><traceback object at 0x036BD0A8></code></td> |
|---|
| 293 | </tr><tr> |
|---|
| 294 | <th scope="row"><var>tb_hide</var></th> |
|---|
| 295 | <td><code>None</code></td> |
|---|
| 296 | </tr><tr class="odd"> |
|---|
| 297 | <th scope="row"><var>traceback</var></th> |
|---|
| 298 | <td><code>'Traceback (most recent call last):\n File ...</code></td> |
|---|
| 299 | </tr> |
|---|
| 300 | </tbody> |
|---|
| 301 | </table> |
|---|
| 302 | </div> |
|---|
| 303 | </li><li class="frame"> |
|---|
| 304 | <a href="#frame1" id="frame1"> |
|---|
| 305 | <span class="file">File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\main.py", |
|---|
| 306 | line <b>213</b>, in</span> |
|---|
| 307 | <var>dispatch</var> |
|---|
| 308 | </a> |
|---|
| 309 | <div class="source" style="display: none"> |
|---|
| 310 | <h3>Code fragment:</h3> |
|---|
| 311 | <ol start="208"> |
|---|
| 312 | <li><code> out = StringIO()</code></li><li><code> pprint(data, out)</code></li><li><code> req.send(out.getvalue(), 'text/plain')</code></li><li><code> else:</code></li><li><code> output = chrome.render_template(req, template,</code></li> |
|---|
| 313 | <li class="current"><code> data, content_type)</code></li> |
|---|
| 314 | <li><code> # Give the session a chance to persist changes</code></li><li><code> if req.session:</code></li><li><code> req.session.save()</code></li><li><code> </code></li><li><code> req.send(output, content_type or 'text/html')</code></li> |
|---|
| 315 | </ol> |
|---|
| 316 | </div> |
|---|
| 317 | <div class="vars" style="display: none"> |
|---|
| 318 | <h3>Local variables:</h3> |
|---|
| 319 | <table class="listing"> |
|---|
| 320 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 321 | <tbody> |
|---|
| 322 | <tr> |
|---|
| 323 | <th scope="row"><var>chosen_handler</var></th> |
|---|
| 324 | <td><code><trac.timeline.web_ui.TimelineModule object at 0x01E010B0></code></td> |
|---|
| 325 | </tr><tr class="odd"> |
|---|
| 326 | <th scope="row"><var>chrome</var></th> |
|---|
| 327 | <td><code><trac.web.chrome.Chrome object at 0x01E05E10></code></td> |
|---|
| 328 | </tr><tr> |
|---|
| 329 | <th scope="row"><var>content_type</var></th> |
|---|
| 330 | <td><code>None</code></td> |
|---|
| 331 | </tr><tr class="odd"> |
|---|
| 332 | <th scope="row"><var>data</var></th> |
|---|
| 333 | <td><code>{'dateinfo': <function dateinfo at 0x03C13DF0>, 'precisedate': ...</code></td> |
|---|
| 334 | </tr><tr> |
|---|
| 335 | <th scope="row"><var>err</var></th> |
|---|
| 336 | <td><code>(<class exceptions.RuntimeError at 0x00A647B0>, <exceptions.RuntimeError ...</code></td> |
|---|
| 337 | </tr><tr class="odd"> |
|---|
| 338 | <th scope="row"><var>handler</var></th> |
|---|
| 339 | <td><code><trac.timeline.web_ui.TimelineModule object at 0x01E010B0></code></td> |
|---|
| 340 | </tr><tr> |
|---|
| 341 | <th scope="row"><var>req</var></th> |
|---|
| 342 | <td><code><Request "GET u'/timeline'"></code></td> |
|---|
| 343 | </tr><tr class="odd"> |
|---|
| 344 | <th scope="row"><var>resp</var></th> |
|---|
| 345 | <td><code>('timeline.html', {'dateinfo': <function dateinfo at 0x03C13DF0>, ...</code></td> |
|---|
| 346 | </tr><tr> |
|---|
| 347 | <th scope="row"><var>self</var></th> |
|---|
| 348 | <td><code><trac.web.main.RequestDispatcher object at 0x01E01610></code></td> |
|---|
| 349 | </tr><tr class="odd"> |
|---|
| 350 | <th scope="row"><var>template</var></th> |
|---|
| 351 | <td><code>'timeline.html'</code></td> |
|---|
| 352 | </tr> |
|---|
| 353 | </tbody> |
|---|
| 354 | </table> |
|---|
| 355 | </div> |
|---|
| 356 | </li><li class="frame"> |
|---|
| 357 | <a href="#frame2" id="frame2"> |
|---|
| 358 | <span class="file">File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\chrome.py", |
|---|
| 359 | line <b>619</b>, in</span> |
|---|
| 360 | <var>render_template</var> |
|---|
| 361 | </a> |
|---|
| 362 | <div class="source" style="display: none"> |
|---|
| 363 | <h3>Code fragment:</h3> |
|---|
| 364 | <ol start="614"> |
|---|
| 365 | <li><code> 'late_links': req.chrome['links'],</code></li><li><code> 'late_scripts': req.chrome['scripts'],</code></li><li><code> })</code></li><li><code> </code></li><li><code> try:</code></li> |
|---|
| 366 | <li class="current"><code> return stream.render(method, doctype=doctype)</code></li> |
|---|
| 367 | <li><code> except:</code></li><li><code> # restore what may be needed by the error template</code></li><li><code> req.chrome['links'] = links</code></li><li><code> raise</code></li><li><code> </code></li> |
|---|
| 368 | </ol> |
|---|
| 369 | </div> |
|---|
| 370 | <div class="vars" style="display: none"> |
|---|
| 371 | <h3>Local variables:</h3> |
|---|
| 372 | <table class="listing"> |
|---|
| 373 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 374 | <tbody> |
|---|
| 375 | <tr> |
|---|
| 376 | <th scope="row"><var>content_type</var></th> |
|---|
| 377 | <td><code>'text/html'</code></td> |
|---|
| 378 | </tr><tr class="odd"> |
|---|
| 379 | <th scope="row"><var>data</var></th> |
|---|
| 380 | <td><code>{'abs_url_of': <function get_abs_url at 0x03EC1AB0>, 'all': <function all ...</code></td> |
|---|
| 381 | </tr><tr> |
|---|
| 382 | <th scope="row"><var>doctype</var></th> |
|---|
| 383 | <td><code>('html', '-//W3C//DTD XHTML 1.0 Strict//EN', ...</code></td> |
|---|
| 384 | </tr><tr class="odd"> |
|---|
| 385 | <th scope="row"><var>filename</var></th> |
|---|
| 386 | <td><code>'timeline.html'</code></td> |
|---|
| 387 | </tr><tr> |
|---|
| 388 | <th scope="row"><var>fragment</var></th> |
|---|
| 389 | <td><code>False</code></td> |
|---|
| 390 | </tr><tr class="odd"> |
|---|
| 391 | <th scope="row"><var>links</var></th> |
|---|
| 392 | <td><code>{'search': [{'href': '/cblaptop-trac/search', 'type': None, 'class': None, ...</code></td> |
|---|
| 393 | </tr><tr> |
|---|
| 394 | <th scope="row"><var>method</var></th> |
|---|
| 395 | <td><code>'xhtml'</code></td> |
|---|
| 396 | </tr><tr class="odd"> |
|---|
| 397 | <th scope="row"><var>req</var></th> |
|---|
| 398 | <td><code><Request "GET u'/timeline'"></code></td> |
|---|
| 399 | </tr><tr> |
|---|
| 400 | <th scope="row"><var>self</var></th> |
|---|
| 401 | <td><code><trac.web.chrome.Chrome object at 0x01E05E10></code></td> |
|---|
| 402 | </tr><tr class="odd"> |
|---|
| 403 | <th scope="row"><var>stream</var></th> |
|---|
| 404 | <td><code><genshi.core.Stream object at 0x03ED6CB0></code></td> |
|---|
| 405 | </tr><tr> |
|---|
| 406 | <th scope="row"><var>template</var></th> |
|---|
| 407 | <td><code><MarkupTemplate "timeline.html"></code></td> |
|---|
| 408 | </tr> |
|---|
| 409 | </tbody> |
|---|
| 410 | </table> |
|---|
| 411 | </div> |
|---|
| 412 | </li><li class="frame"> |
|---|
| 413 | <a href="#frame3" id="frame3"> |
|---|
| 414 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\core.py", |
|---|
| 415 | line <b>172</b>, in</span> |
|---|
| 416 | <var>render</var> |
|---|
| 417 | </a> |
|---|
| 418 | <div class="source" style="display: none"> |
|---|
| 419 | <h3>Code fragment:</h3> |
|---|
| 420 | <ol start="167"> |
|---|
| 421 | <li><code> """</code></li><li><code> from genshi.output import encode</code></li><li><code> if method is None:</code></li><li><code> method = self.serializer or 'xml'</code></li><li><code> generator = self.serialize(method=method, **kwargs)</code></li> |
|---|
| 422 | <li class="current"><code> return encode(generator, method=method, encoding=encoding)</code></li> |
|---|
| 423 | <li><code> </code></li><li><code> def select(self, path, namespaces=None, variables=None):</code></li><li><code> """Return a new stream that contains the events matching the given</code></li><li><code> XPath expression.</code></li><li><code> </code></li> |
|---|
| 424 | </ol> |
|---|
| 425 | </div> |
|---|
| 426 | <div class="vars" style="display: none"> |
|---|
| 427 | <h3>Local variables:</h3> |
|---|
| 428 | <table class="listing"> |
|---|
| 429 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 430 | <tbody> |
|---|
| 431 | <tr> |
|---|
| 432 | <th scope="row"><var>encode</var></th> |
|---|
| 433 | <td><code><function encode at 0x00DBC430></code></td> |
|---|
| 434 | </tr><tr class="odd"> |
|---|
| 435 | <th scope="row"><var>encoding</var></th> |
|---|
| 436 | <td><code>'utf-8'</code></td> |
|---|
| 437 | </tr><tr> |
|---|
| 438 | <th scope="row"><var>generator</var></th> |
|---|
| 439 | <td><code><generator object at 0x03990260></code></td> |
|---|
| 440 | </tr><tr class="odd"> |
|---|
| 441 | <th scope="row"><var>kwargs</var></th> |
|---|
| 442 | <td><code>{'doctype': ('html', '-//W3C//DTD XHTML 1.0 Strict//EN', ...</code></td> |
|---|
| 443 | </tr><tr> |
|---|
| 444 | <th scope="row"><var>method</var></th> |
|---|
| 445 | <td><code>'xhtml'</code></td> |
|---|
| 446 | </tr><tr class="odd"> |
|---|
| 447 | <th scope="row"><var>self</var></th> |
|---|
| 448 | <td><code><genshi.core.Stream object at 0x03ED6CB0></code></td> |
|---|
| 449 | </tr> |
|---|
| 450 | </tbody> |
|---|
| 451 | </table> |
|---|
| 452 | </div> |
|---|
| 453 | </li><li class="frame"> |
|---|
| 454 | <a href="#frame4" id="frame4"> |
|---|
| 455 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", |
|---|
| 456 | line <b>45</b>, in</span> |
|---|
| 457 | <var>encode</var> |
|---|
| 458 | </a> |
|---|
| 459 | <div class="source" style="display: none"> |
|---|
| 460 | <h3>Code fragment:</h3> |
|---|
| 461 | <ol start="40"> |
|---|
| 462 | <li><code> :param encoding: how the output string should be encoded; if set to `None`,</code></li><li><code> this method returns a `unicode` object</code></li><li><code> :return: a string or unicode object (depending on the `encoding` parameter)</code></li><li><code> :since: version 0.4.1</code></li><li><code> """</code></li> |
|---|
| 463 | <li class="current"><code> output = u''.join(list(iterator))</code></li> |
|---|
| 464 | <li><code> if encoding is not None:</code></li><li><code> errors = 'replace'</code></li><li><code> if method != 'text' and not isinstance(method, TextSerializer):</code></li><li><code> errors = 'xmlcharrefreplace'</code></li><li><code> return output.encode(encoding, errors)</code></li> |
|---|
| 465 | </ol> |
|---|
| 466 | </div> |
|---|
| 467 | <div class="vars" style="display: none"> |
|---|
| 468 | <h3>Local variables:</h3> |
|---|
| 469 | <table class="listing"> |
|---|
| 470 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 471 | <tbody> |
|---|
| 472 | <tr> |
|---|
| 473 | <th scope="row"><var>encoding</var></th> |
|---|
| 474 | <td><code>'utf-8'</code></td> |
|---|
| 475 | </tr><tr class="odd"> |
|---|
| 476 | <th scope="row"><var>iterator</var></th> |
|---|
| 477 | <td><code><generator object at 0x03990260></code></td> |
|---|
| 478 | </tr><tr> |
|---|
| 479 | <th scope="row"><var>method</var></th> |
|---|
| 480 | <td><code>'xhtml'</code></td> |
|---|
| 481 | </tr> |
|---|
| 482 | </tbody> |
|---|
| 483 | </table> |
|---|
| 484 | </div> |
|---|
| 485 | </li><li class="frame"> |
|---|
| 486 | <a href="#frame5" id="frame5"> |
|---|
| 487 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", |
|---|
| 488 | line <b>274</b>, in</span> |
|---|
| 489 | <var>__call__</var> |
|---|
| 490 | </a> |
|---|
| 491 | <div class="source" style="display: none"> |
|---|
| 492 | <h3>Code fragment:</h3> |
|---|
| 493 | <ol start="269"> |
|---|
| 494 | <li><code> in_cdata = False</code></li><li><code> </code></li><li><code> stream = chain(self.preamble, stream)</code></li><li><code> for filter_ in self.filters:</code></li><li><code> stream = filter_(stream)</code></li> |
|---|
| 495 | <li class="current"><code> for kind, data, pos in stream:</code></li> |
|---|
| 496 | <li><code> </code></li><li><code> if kind is START or kind is EMPTY:</code></li><li><code> tag, attrib = data</code></li><li><code> buf = ['<', tag]</code></li><li><code> for attr, value in attrib:</code></li> |
|---|
| 497 | </ol> |
|---|
| 498 | </div> |
|---|
| 499 | <div class="vars" style="display: none"> |
|---|
| 500 | <h3>Local variables:</h3> |
|---|
| 501 | <table class="listing"> |
|---|
| 502 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 503 | <tbody> |
|---|
| 504 | <tr> |
|---|
| 505 | <th scope="row"><var>attr</var></th> |
|---|
| 506 | <td><code>u'src'</code></td> |
|---|
| 507 | </tr><tr class="odd"> |
|---|
| 508 | <th scope="row"><var>attrib</var></th> |
|---|
| 509 | <td><code>Attrs([(u'type', u'text/javascript'), (u'src', ...</code></td> |
|---|
| 510 | </tr><tr> |
|---|
| 511 | <th scope="row"><var>boolean_attrs</var></th> |
|---|
| 512 | <td><code>frozenset(['compact', 'defer', 'checked', 'nohref', 'selected', 'ismap', ...</code></td> |
|---|
| 513 | </tr><tr class="odd"> |
|---|
| 514 | <th scope="row"><var>buf</var></th> |
|---|
| 515 | <td><code>['<', u'script', ' ', u'type', '="', <Markup u'text/javascript'>, '"', ' ...</code></td> |
|---|
| 516 | </tr><tr> |
|---|
| 517 | <th scope="row"><var>data</var></th> |
|---|
| 518 | <td><code>u'head'</code></td> |
|---|
| 519 | </tr><tr class="odd"> |
|---|
| 520 | <th scope="row"><var>empty_elems</var></th> |
|---|
| 521 | <td><code>frozenset(['img', 'area', 'basefont', 'frame', 'isindex', 'meta', 'param', ...</code></td> |
|---|
| 522 | </tr><tr> |
|---|
| 523 | <th scope="row"><var>filter_</var></th> |
|---|
| 524 | <td><code><genshi.output.NamespaceFlattener object at 0x03ED6D90></code></td> |
|---|
| 525 | </tr><tr class="odd"> |
|---|
| 526 | <th scope="row"><var>have_doctype</var></th> |
|---|
| 527 | <td><code>True</code></td> |
|---|
| 528 | </tr><tr> |
|---|
| 529 | <th scope="row"><var>in_cdata</var></th> |
|---|
| 530 | <td><code>False</code></td> |
|---|
| 531 | </tr><tr class="odd"> |
|---|
| 532 | <th scope="row"><var>kind</var></th> |
|---|
| 533 | <td><code>'END'</code></td> |
|---|
| 534 | </tr><tr> |
|---|
| 535 | <th scope="row"><var>name</var></th> |
|---|
| 536 | <td><code>'html'</code></td> |
|---|
| 537 | </tr><tr class="odd"> |
|---|
| 538 | <th scope="row"><var>pos</var></th> |
|---|
| 539 | <td><code>(u'layout.html', 29, 2)</code></td> |
|---|
| 540 | </tr><tr> |
|---|
| 541 | <th scope="row"><var>pubid</var></th> |
|---|
| 542 | <td><code>'-//W3C//DTD XHTML 1.0 Strict//EN'</code></td> |
|---|
| 543 | </tr><tr class="odd"> |
|---|
| 544 | <th scope="row"><var>self</var></th> |
|---|
| 545 | <td><code><genshi.output.XHTMLSerializer object at 0x03ED6D10></code></td> |
|---|
| 546 | </tr><tr> |
|---|
| 547 | <th scope="row"><var>stream</var></th> |
|---|
| 548 | <td><code><generator object at 0x03990148></code></td> |
|---|
| 549 | </tr><tr class="odd"> |
|---|
| 550 | <th scope="row"><var>sysid</var></th> |
|---|
| 551 | <td><code>'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'</code></td> |
|---|
| 552 | </tr><tr> |
|---|
| 553 | <th scope="row"><var>tag</var></th> |
|---|
| 554 | <td><code>u'script'</code></td> |
|---|
| 555 | </tr><tr class="odd"> |
|---|
| 556 | <th scope="row"><var>value</var></th> |
|---|
| 557 | <td><code>u'/cblaptop-trac/chrome/common/js/ie_pre7_hacks.js'</code></td> |
|---|
| 558 | </tr> |
|---|
| 559 | </tbody> |
|---|
| 560 | </table> |
|---|
| 561 | </div> |
|---|
| 562 | </li><li class="frame"> |
|---|
| 563 | <a href="#frame6" id="frame6"> |
|---|
| 564 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", |
|---|
| 565 | line <b>526</b>, in</span> |
|---|
| 566 | <var>__call__</var> |
|---|
| 567 | </a> |
|---|
| 568 | <div class="source" style="display: none"> |
|---|
| 569 | <h3>Code fragment:</h3> |
|---|
| 570 | <ol start="521"> |
|---|
| 571 | <li><code> while 1:</code></li><li><code> val += 1</code></li><li><code> yield 'ns%d' % val</code></li><li><code> _gen_prefix = _gen_prefix().next</code></li><li><code> </code></li> |
|---|
| 572 | <li class="current"><code> for kind, data, pos in stream:</code></li> |
|---|
| 573 | <li><code> </code></li><li><code> if kind is START or kind is EMPTY:</code></li><li><code> tag, attrs = data</code></li><li><code> </code></li><li><code> tagname = tag.localname</code></li> |
|---|
| 574 | </ol> |
|---|
| 575 | </div> |
|---|
| 576 | <div class="vars" style="display: none"> |
|---|
| 577 | <h3>Local variables:</h3> |
|---|
| 578 | <table class="listing"> |
|---|
| 579 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 580 | <tbody> |
|---|
| 581 | <tr> |
|---|
| 582 | <th scope="row"><var>_gen_prefix</var></th> |
|---|
| 583 | <td><code><method-wrapper object at 0x03ED6DD0></code></td> |
|---|
| 584 | </tr><tr class="odd"> |
|---|
| 585 | <th scope="row"><var>_make_ns_attr</var></th> |
|---|
| 586 | <td><code><function _make_ns_attr at 0x03EC1E30></code></td> |
|---|
| 587 | </tr><tr> |
|---|
| 588 | <th scope="row"><var>_push_ns</var></th> |
|---|
| 589 | <td><code><function _push_ns at 0x03EC1DF0></code></td> |
|---|
| 590 | </tr><tr class="odd"> |
|---|
| 591 | <th scope="row"><var>_push_ns_attr</var></th> |
|---|
| 592 | <td><code><built-in method append of list object at 0x036A5440></code></td> |
|---|
| 593 | </tr><tr> |
|---|
| 594 | <th scope="row"><var>attr</var></th> |
|---|
| 595 | <td><code>QName(u'src')</code></td> |
|---|
| 596 | </tr><tr class="odd"> |
|---|
| 597 | <th scope="row"><var>attrname</var></th> |
|---|
| 598 | <td><code>u'src'</code></td> |
|---|
| 599 | </tr><tr> |
|---|
| 600 | <th scope="row"><var>attrns</var></th> |
|---|
| 601 | <td><code>None</code></td> |
|---|
| 602 | </tr><tr class="odd"> |
|---|
| 603 | <th scope="row"><var>attrs</var></th> |
|---|
| 604 | <td><code>Attrs([(QName(u'type'), u'text/javascript'), (QName(u'src'), ...</code></td> |
|---|
| 605 | </tr><tr> |
|---|
| 606 | <th scope="row"><var>data</var></th> |
|---|
| 607 | <td><code>QName(u'http://www.w3.org/1999/xhtml}head')</code></td> |
|---|
| 608 | </tr><tr class="odd"> |
|---|
| 609 | <th scope="row"><var>k</var></th> |
|---|
| 610 | <td><code>u'http://www.w3.org/XML/1998/namespace'</code></td> |
|---|
| 611 | </tr><tr> |
|---|
| 612 | <th scope="row"><var>kind</var></th> |
|---|
| 613 | <td><code>'END'</code></td> |
|---|
| 614 | </tr><tr class="odd"> |
|---|
| 615 | <th scope="row"><var>namespaces</var></th> |
|---|
| 616 | <td><code>{u'http://www.w3.org/1999/xhtml': ['', '', ''], ...</code></td> |
|---|
| 617 | </tr><tr> |
|---|
| 618 | <th scope="row"><var>new_attrs</var></th> |
|---|
| 619 | <td><code>[(u'type', u'text/javascript'), (u'src', ...</code></td> |
|---|
| 620 | </tr><tr class="odd"> |
|---|
| 621 | <th scope="row"><var>ns_attrs</var></th> |
|---|
| 622 | <td><code>[]</code></td> |
|---|
| 623 | </tr><tr> |
|---|
| 624 | <th scope="row"><var>pos</var></th> |
|---|
| 625 | <td><code>(u'layout.html', 29, 2)</code></td> |
|---|
| 626 | </tr><tr class="odd"> |
|---|
| 627 | <th scope="row"><var>prefix</var></th> |
|---|
| 628 | <td><code>''</code></td> |
|---|
| 629 | </tr><tr> |
|---|
| 630 | <th scope="row"><var>prefixes</var></th> |
|---|
| 631 | <td><code>{'': ['http://www.w3.org/1999/xhtml', u'http://www.w3.org/1999/xhtml'], ...</code></td> |
|---|
| 632 | </tr><tr class="odd"> |
|---|
| 633 | <th scope="row"><var>self</var></th> |
|---|
| 634 | <td><code><genshi.output.NamespaceFlattener object at 0x03ED6D90></code></td> |
|---|
| 635 | </tr><tr> |
|---|
| 636 | <th scope="row"><var>stream</var></th> |
|---|
| 637 | <td><code><generator object at 0x03990E68></code></td> |
|---|
| 638 | </tr><tr class="odd"> |
|---|
| 639 | <th scope="row"><var>tag</var></th> |
|---|
| 640 | <td><code>QName(u'http://www.w3.org/1999/xhtml}script')</code></td> |
|---|
| 641 | </tr><tr> |
|---|
| 642 | <th scope="row"><var>tagname</var></th> |
|---|
| 643 | <td><code>u'head'</code></td> |
|---|
| 644 | </tr><tr class="odd"> |
|---|
| 645 | <th scope="row"><var>tagns</var></th> |
|---|
| 646 | <td><code>u'http://www.w3.org/1999/xhtml'</code></td> |
|---|
| 647 | </tr><tr> |
|---|
| 648 | <th scope="row"><var>uri</var></th> |
|---|
| 649 | <td><code>u'http://www.w3.org/1999/xhtml'</code></td> |
|---|
| 650 | </tr><tr class="odd"> |
|---|
| 651 | <th scope="row"><var>uris</var></th> |
|---|
| 652 | <td><code>['http://www.w3.org/1999/xhtml', u'http://www.w3.org/1999/xhtml']</code></td> |
|---|
| 653 | </tr><tr> |
|---|
| 654 | <th scope="row"><var>v</var></th> |
|---|
| 655 | <td><code>'xml'</code></td> |
|---|
| 656 | </tr><tr class="odd"> |
|---|
| 657 | <th scope="row"><var>value</var></th> |
|---|
| 658 | <td><code>u'/cblaptop-trac/chrome/common/js/ie_pre7_hacks.js'</code></td> |
|---|
| 659 | </tr> |
|---|
| 660 | </tbody> |
|---|
| 661 | </table> |
|---|
| 662 | </div> |
|---|
| 663 | </li><li class="frame"> |
|---|
| 664 | <a href="#frame7" id="frame7"> |
|---|
| 665 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", |
|---|
| 666 | line <b>632</b>, in</span> |
|---|
| 667 | <var>__call__</var> |
|---|
| 668 | </a> |
|---|
| 669 | <div class="source" style="display: none"> |
|---|
| 670 | <h3>Code fragment:</h3> |
|---|
| 671 | <ol start="627"> |
|---|
| 672 | <li><code> noescape = False</code></li><li><code> </code></li><li><code> textbuf = []</code></li><li><code> push_text = textbuf.append</code></li><li><code> pop_text = textbuf.pop</code></li> |
|---|
| 673 | <li class="current"><code> for kind, data, pos in chain(stream, [(None, None, None)]):</code></li> |
|---|
| 674 | <li><code> </code></li><li><code> if kind is TEXT:</code></li><li><code> if noescape:</code></li><li><code> data = Markup(data)</code></li><li><code> push_text(data)</code></li> |
|---|
| 675 | </ol> |
|---|
| 676 | </div> |
|---|
| 677 | <div class="vars" style="display: none"> |
|---|
| 678 | <h3>Local variables:</h3> |
|---|
| 679 | <table class="listing"> |
|---|
| 680 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 681 | <tbody> |
|---|
| 682 | <tr> |
|---|
| 683 | <th scope="row"><var>attrs</var></th> |
|---|
| 684 | <td><code>Attrs()</code></td> |
|---|
| 685 | </tr><tr class="odd"> |
|---|
| 686 | <th scope="row"><var>collapse_lines</var></th> |
|---|
| 687 | <td><code><built-in method sub of _sre.SRE_Pattern object at 0x00DA98D8></code></td> |
|---|
| 688 | </tr><tr> |
|---|
| 689 | <th scope="row"><var>ctxt</var></th> |
|---|
| 690 | <td><code>None</code></td> |
|---|
| 691 | </tr><tr class="odd"> |
|---|
| 692 | <th scope="row"><var>data</var></th> |
|---|
| 693 | <td><code>u'\n\n '</code></td> |
|---|
| 694 | </tr><tr> |
|---|
| 695 | <th scope="row"><var>kind</var></th> |
|---|
| 696 | <td><code>'TEXT'</code></td> |
|---|
| 697 | </tr><tr class="odd"> |
|---|
| 698 | <th scope="row"><var>mjoin</var></th> |
|---|
| 699 | <td><code><built-in method join of genshi._speedups.Markup object at 0x03D6CEC0></code></td> |
|---|
| 700 | </tr><tr> |
|---|
| 701 | <th scope="row"><var>noescape</var></th> |
|---|
| 702 | <td><code>False</code></td> |
|---|
| 703 | </tr><tr class="odd"> |
|---|
| 704 | <th scope="row"><var>noescape_elems</var></th> |
|---|
| 705 | <td><code>frozenset([])</code></td> |
|---|
| 706 | </tr><tr> |
|---|
| 707 | <th scope="row"><var>pop_text</var></th> |
|---|
| 708 | <td><code><built-in method pop of list object at 0x03C63B98></code></td> |
|---|
| 709 | </tr><tr class="odd"> |
|---|
| 710 | <th scope="row"><var>pos</var></th> |
|---|
| 711 | <td><code>('C:\\Workspace\\src\\trac\\repos\\context-refactoring\\trac\\timeline\\tem ...</code></td> |
|---|
| 712 | </tr><tr> |
|---|
| 713 | <th scope="row"><var>preserve</var></th> |
|---|
| 714 | <td><code>0</code></td> |
|---|
| 715 | </tr><tr class="odd"> |
|---|
| 716 | <th scope="row"><var>preserve_elems</var></th> |
|---|
| 717 | <td><code>frozenset([QName(u'pre'), QName(u'http://www.w3.org/1999/xhtml}textarea'), ...</code></td> |
|---|
| 718 | </tr><tr> |
|---|
| 719 | <th scope="row"><var>push_text</var></th> |
|---|
| 720 | <td><code><built-in method append of list object at 0x03C63B98></code></td> |
|---|
| 721 | </tr><tr class="odd"> |
|---|
| 722 | <th scope="row"><var>self</var></th> |
|---|
| 723 | <td><code><genshi.output.WhitespaceFilter object at 0x03ED6D30></code></td> |
|---|
| 724 | </tr><tr> |
|---|
| 725 | <th scope="row"><var>space</var></th> |
|---|
| 726 | <td><code>QName(u'http://www.w3.org/XML/1998/namespace}space')</code></td> |
|---|
| 727 | </tr><tr class="odd"> |
|---|
| 728 | <th scope="row"><var>stream</var></th> |
|---|
| 729 | <td><code><generator object at 0x03990F30></code></td> |
|---|
| 730 | </tr><tr> |
|---|
| 731 | <th scope="row"><var>tag</var></th> |
|---|
| 732 | <td><code>QName(u'http://www.w3.org/1999/xhtml}title')</code></td> |
|---|
| 733 | </tr><tr class="odd"> |
|---|
| 734 | <th scope="row"><var>text</var></th> |
|---|
| 735 | <td><code>u'\n <![endif]-->\n '</code></td> |
|---|
| 736 | </tr><tr> |
|---|
| 737 | <th scope="row"><var>textbuf</var></th> |
|---|
| 738 | <td><code>[u'\n\n ']</code></td> |
|---|
| 739 | </tr><tr class="odd"> |
|---|
| 740 | <th scope="row"><var>trim_trailing_space</var></th> |
|---|
| 741 | <td><code><built-in method sub of _sre.SRE_Pattern object at 0x00DA37A0></code></td> |
|---|
| 742 | </tr> |
|---|
| 743 | </tbody> |
|---|
| 744 | </table> |
|---|
| 745 | </div> |
|---|
| 746 | </li><li class="frame"> |
|---|
| 747 | <a href="#frame8" id="frame8"> |
|---|
| 748 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", |
|---|
| 749 | line <b>466</b>, in</span> |
|---|
| 750 | <var>__call__</var> |
|---|
| 751 | </a> |
|---|
| 752 | <div class="source" style="display: none"> |
|---|
| 753 | <h3>Code fragment:</h3> |
|---|
| 754 | <ol start="461"> |
|---|
| 755 | <li><code> </code></li><li><code> EMPTY = StreamEventKind('EMPTY')</code></li><li><code> </code></li><li><code> def __call__(self, stream):</code></li><li><code> prev = (None, None, None)</code></li> |
|---|
| 756 | <li class="current"><code> for ev in stream:</code></li> |
|---|
| 757 | <li><code> if prev[0] is START:</code></li><li><code> if ev[0] is END:</code></li><li><code> prev = EMPTY, prev[1], prev[2]</code></li><li><code> yield prev</code></li><li><code> continue</code></li> |
|---|
| 758 | </ol> |
|---|
| 759 | </div> |
|---|
| 760 | <div class="vars" style="display: none"> |
|---|
| 761 | <h3>Local variables:</h3> |
|---|
| 762 | <table class="listing"> |
|---|
| 763 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 764 | <tbody> |
|---|
| 765 | <tr> |
|---|
| 766 | <th scope="row"><var>ev</var></th> |
|---|
| 767 | <td><code>('TEXT', u'\n\n ', ...</code></td> |
|---|
| 768 | </tr><tr class="odd"> |
|---|
| 769 | <th scope="row"><var>prev</var></th> |
|---|
| 770 | <td><code>('TEXT', u'\n\n ', ...</code></td> |
|---|
| 771 | </tr><tr> |
|---|
| 772 | <th scope="row"><var>self</var></th> |
|---|
| 773 | <td><code><genshi.output.EmptyTagFilter object at 0x03ED6D70></code></td> |
|---|
| 774 | </tr><tr class="odd"> |
|---|
| 775 | <th scope="row"><var>stream</var></th> |
|---|
| 776 | <td><code><itertools.chain object at 0x03990648></code></td> |
|---|
| 777 | </tr> |
|---|
| 778 | </tbody> |
|---|
| 779 | </table> |
|---|
| 780 | </div> |
|---|
| 781 | </li><li class="frame"> |
|---|
| 782 | <a href="#frame9" id="frame9"> |
|---|
| 783 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\core.py", |
|---|
| 784 | line <b>273</b>, in</span> |
|---|
| 785 | <var>_ensure</var> |
|---|
| 786 | </a> |
|---|
| 787 | <div class="source" style="display: none"> |
|---|
| 788 | <h3>Code fragment:</h3> |
|---|
| 789 | <ol start="268"> |
|---|
| 790 | <li><code> return</code></li><li><code> </code></li><li><code> # This looks like a markup event stream, so we'll just pass it through</code></li><li><code> # unchanged</code></li><li><code> yield event</code></li> |
|---|
| 791 | <li class="current"><code> for event in stream:</code></li> |
|---|
| 792 | <li><code> yield event</code></li><li><code> </code></li><li><code> </code></li><li><code>class Attrs(tuple):</code></li><li><code> """Immutable sequence type that stores the attributes of an element.</code></li> |
|---|
| 793 | </ol> |
|---|
| 794 | </div> |
|---|
| 795 | <div class="vars" style="display: none"> |
|---|
| 796 | <h3>Local variables:</h3> |
|---|
| 797 | <table class="listing"> |
|---|
| 798 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 799 | <tbody> |
|---|
| 800 | <tr> |
|---|
| 801 | <th scope="row"><var>event</var></th> |
|---|
| 802 | <td><code>('TEXT', u'\n\n ', ...</code></td> |
|---|
| 803 | </tr><tr class="odd"> |
|---|
| 804 | <th scope="row"><var>stream</var></th> |
|---|
| 805 | <td><code><generator object at 0x03990AD0></code></td> |
|---|
| 806 | </tr> |
|---|
| 807 | </tbody> |
|---|
| 808 | </table> |
|---|
| 809 | </div> |
|---|
| 810 | </li><li class="frame"> |
|---|
| 811 | <a href="#frame10" id="frame10"> |
|---|
| 812 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\core.py", |
|---|
| 813 | line <b>273</b>, in</span> |
|---|
| 814 | <var>_ensure</var> |
|---|
| 815 | </a> |
|---|
| 816 | <div class="source" style="display: none"> |
|---|
| 817 | <h3>Code fragment:</h3> |
|---|
| 818 | <ol start="268"> |
|---|
| 819 | <li><code> return</code></li><li><code> </code></li><li><code> # This looks like a markup event stream, so we'll just pass it through</code></li><li><code> # unchanged</code></li><li><code> yield event</code></li> |
|---|
| 820 | <li class="current"><code> for event in stream:</code></li> |
|---|
| 821 | <li><code> yield event</code></li><li><code> </code></li><li><code> </code></li><li><code>class Attrs(tuple):</code></li><li><code> """Immutable sequence type that stores the attributes of an element.</code></li> |
|---|
| 822 | </ol> |
|---|
| 823 | </div> |
|---|
| 824 | <div class="vars" style="display: none"> |
|---|
| 825 | <h3>Local variables:</h3> |
|---|
| 826 | <table class="listing"> |
|---|
| 827 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 828 | <tbody> |
|---|
| 829 | <tr> |
|---|
| 830 | <th scope="row"><var>event</var></th> |
|---|
| 831 | <td><code>('TEXT', u'\n\n ', ...</code></td> |
|---|
| 832 | </tr><tr class="odd"> |
|---|
| 833 | <th scope="row"><var>stream</var></th> |
|---|
| 834 | <td><code><generator object at 0x03990418></code></td> |
|---|
| 835 | </tr> |
|---|
| 836 | </tbody> |
|---|
| 837 | </table> |
|---|
| 838 | </div> |
|---|
| 839 | </li><li class="frame"> |
|---|
| 840 | <a href="#frame11" id="frame11"> |
|---|
| 841 | <span class="file">File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\chrome.py", |
|---|
| 842 | line <b>649</b>, in</span> |
|---|
| 843 | <var>_strip_accesskeys</var> |
|---|
| 844 | </a> |
|---|
| 845 | <div class="source" style="display: none"> |
|---|
| 846 | <h3>Code fragment:</h3> |
|---|
| 847 | <ol start="644"> |
|---|
| 848 | <li><code> else:</code></li><li><code> yield kind, data, pos</code></li><li><code> return _generate</code></li><li><code> </code></li><li><code> def _strip_accesskeys(self, stream, ctxt=None):</code></li> |
|---|
| 849 | <li class="current"><code> for kind, data, pos in stream:</code></li> |
|---|
| 850 | <li><code> if kind is START and 'accesskey' in data[1]:</code></li><li><code> data = data[0], Attrs([(k,v) for k,v in data[1]</code></li><li><code> if k != 'accesskey'])</code></li><li><code> yield kind, data, pos</code></li><li><code> </code></li> |
|---|
| 851 | </ol> |
|---|
| 852 | </div> |
|---|
| 853 | <div class="vars" style="display: none"> |
|---|
| 854 | <h3>Local variables:</h3> |
|---|
| 855 | <table class="listing"> |
|---|
| 856 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 857 | <tbody> |
|---|
| 858 | <tr> |
|---|
| 859 | <th scope="row"><var>ctxt</var></th> |
|---|
| 860 | <td><code>None</code></td> |
|---|
| 861 | </tr><tr class="odd"> |
|---|
| 862 | <th scope="row"><var>data</var></th> |
|---|
| 863 | <td><code>u'\n\n '</code></td> |
|---|
| 864 | </tr><tr> |
|---|
| 865 | <th scope="row"><var>kind</var></th> |
|---|
| 866 | <td><code>'TEXT'</code></td> |
|---|
| 867 | </tr><tr class="odd"> |
|---|
| 868 | <th scope="row"><var>pos</var></th> |
|---|
| 869 | <td><code>('C:\\Workspace\\src\\trac\\repos\\context-refactoring\\trac\\timeline\\tem ...</code></td> |
|---|
| 870 | </tr><tr> |
|---|
| 871 | <th scope="row"><var>self</var></th> |
|---|
| 872 | <td><code><trac.web.chrome.Chrome object at 0x01E05E10></code></td> |
|---|
| 873 | </tr><tr class="odd"> |
|---|
| 874 | <th scope="row"><var>stream</var></th> |
|---|
| 875 | <td><code><genshi.core.Stream object at 0x03ED6C90></code></td> |
|---|
| 876 | </tr> |
|---|
| 877 | </tbody> |
|---|
| 878 | </table> |
|---|
| 879 | </div> |
|---|
| 880 | </li><li class="frame"> |
|---|
| 881 | <a href="#frame12" id="frame12"> |
|---|
| 882 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\core.py", |
|---|
| 883 | line <b>273</b>, in</span> |
|---|
| 884 | <var>_ensure</var> |
|---|
| 885 | </a> |
|---|
| 886 | <div class="source" style="display: none"> |
|---|
| 887 | <h3>Code fragment:</h3> |
|---|
| 888 | <ol start="268"> |
|---|
| 889 | <li><code> return</code></li><li><code> </code></li><li><code> # This looks like a markup event stream, so we'll just pass it through</code></li><li><code> # unchanged</code></li><li><code> yield event</code></li> |
|---|
| 890 | <li class="current"><code> for event in stream:</code></li> |
|---|
| 891 | <li><code> yield event</code></li><li><code> </code></li><li><code> </code></li><li><code>class Attrs(tuple):</code></li><li><code> """Immutable sequence type that stores the attributes of an element.</code></li> |
|---|
| 892 | </ol> |
|---|
| 893 | </div> |
|---|
| 894 | <div class="vars" style="display: none"> |
|---|
| 895 | <h3>Local variables:</h3> |
|---|
| 896 | <table class="listing"> |
|---|
| 897 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 898 | <tbody> |
|---|
| 899 | <tr> |
|---|
| 900 | <th scope="row"><var>event</var></th> |
|---|
| 901 | <td><code>('TEXT', u'\n\n ', ...</code></td> |
|---|
| 902 | </tr><tr class="odd"> |
|---|
| 903 | <th scope="row"><var>stream</var></th> |
|---|
| 904 | <td><code><generator object at 0x03990FA8></code></td> |
|---|
| 905 | </tr> |
|---|
| 906 | </tbody> |
|---|
| 907 | </table> |
|---|
| 908 | </div> |
|---|
| 909 | </li><li class="frame"> |
|---|
| 910 | <a href="#frame13" id="frame13"> |
|---|
| 911 | <span class="file">File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\chrome.py", |
|---|
| 912 | line <b>638</b>, in</span> |
|---|
| 913 | <var>_generate</var> |
|---|
| 914 | </a> |
|---|
| 915 | <div class="source" style="display: none"> |
|---|
| 916 | <h3>Code fragment:</h3> |
|---|
| 917 | <ol start="633"> |
|---|
| 918 | <li><code> def _add_form_token(self, token):</code></li><li><code> elem = tag.div(</code></li><li><code> tag.input(type='hidden', name='__FORM_TOKEN', value=token)</code></li><li><code> )</code></li><li><code> def _generate(stream, ctxt=None):</code></li> |
|---|
| 919 | <li class="current"><code> for kind, data, pos in stream:</code></li> |
|---|
| 920 | <li><code> if kind is START and data[0].localname == 'form' \</code></li><li><code> and data[1].get('method', '').lower() == 'post':</code></li><li><code> yield kind, data, pos</code></li><li><code> for event in elem.generate():</code></li><li><code> yield event</code></li> |
|---|
| 921 | </ol> |
|---|
| 922 | </div> |
|---|
| 923 | <div class="vars" style="display: none"> |
|---|
| 924 | <h3>Local variables:</h3> |
|---|
| 925 | <table class="listing"> |
|---|
| 926 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 927 | <tbody> |
|---|
| 928 | <tr> |
|---|
| 929 | <th scope="row"><var>ctxt</var></th> |
|---|
| 930 | <td><code>None</code></td> |
|---|
| 931 | </tr><tr class="odd"> |
|---|
| 932 | <th scope="row"><var>data</var></th> |
|---|
| 933 | <td><code>u'\n\n '</code></td> |
|---|
| 934 | </tr><tr> |
|---|
| 935 | <th scope="row"><var>elem</var></th> |
|---|
| 936 | <td><code><Element "div"></code></td> |
|---|
| 937 | </tr><tr class="odd"> |
|---|
| 938 | <th scope="row"><var>kind</var></th> |
|---|
| 939 | <td><code>'TEXT'</code></td> |
|---|
| 940 | </tr><tr> |
|---|
| 941 | <th scope="row"><var>pos</var></th> |
|---|
| 942 | <td><code>('C:\\Workspace\\src\\trac\\repos\\context-refactoring\\trac\\timeline\\tem ...</code></td> |
|---|
| 943 | </tr><tr class="odd"> |
|---|
| 944 | <th scope="row"><var>stream</var></th> |
|---|
| 945 | <td><code><genshi.core.Stream object at 0x03ED6B90></code></td> |
|---|
| 946 | </tr> |
|---|
| 947 | </tbody> |
|---|
| 948 | </table> |
|---|
| 949 | </div> |
|---|
| 950 | </li><li class="frame"> |
|---|
| 951 | <a href="#frame14" id="frame14"> |
|---|
| 952 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", |
|---|
| 953 | line <b>521</b>, in</span> |
|---|
| 954 | <var>_include</var> |
|---|
| 955 | </a> |
|---|
| 956 | <div class="source" style="display: none"> |
|---|
| 957 | <h3>Code fragment:</h3> |
|---|
| 958 | <ol start="516"> |
|---|
| 959 | <li><code> """Internal stream filter that performs inclusion of external</code></li><li><code> template files.</code></li><li><code> """</code></li><li><code> from genshi.template.loader import TemplateNotFound</code></li><li><code> </code></li> |
|---|
| 960 | <li class="current"><code> for event in stream:</code></li> |
|---|
| 961 | <li><code> if event[0] is INCLUDE:</code></li><li><code> href, cls, fallback = event[1]</code></li><li><code> if not isinstance(href, basestring):</code></li><li><code> parts = []</code></li><li><code> for subkind, subdata, subpos in self._eval(href, ctxt):</code></li> |
|---|
| 962 | </ol> |
|---|
| 963 | </div> |
|---|
| 964 | <div class="vars" style="display: none"> |
|---|
| 965 | <h3>Local variables:</h3> |
|---|
| 966 | <table class="listing"> |
|---|
| 967 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 968 | <tbody> |
|---|
| 969 | <tr> |
|---|
| 970 | <th scope="row"><var>TemplateNotFound</var></th> |
|---|
| 971 | <td><code><class genshi.template.loader.TemplateNotFound at 0x00DBD570></code></td> |
|---|
| 972 | </tr><tr class="odd"> |
|---|
| 973 | <th scope="row"><var>cls</var></th> |
|---|
| 974 | <td><code><class 'genshi.template.markup.MarkupTemplate'></code></td> |
|---|
| 975 | </tr><tr> |
|---|
| 976 | <th scope="row"><var>ctxt</var></th> |
|---|
| 977 | <td><code>[{'day': u'10/4/2007', 'events': <itertools._grouper object at ...</code></td> |
|---|
| 978 | </tr><tr class="odd"> |
|---|
| 979 | <th scope="row"><var>event</var></th> |
|---|
| 980 | <td><code>('TEXT', u'\n\n ', ...</code></td> |
|---|
| 981 | </tr><tr> |
|---|
| 982 | <th scope="row"><var>fallback</var></th> |
|---|
| 983 | <td><code>None</code></td> |
|---|
| 984 | </tr><tr class="odd"> |
|---|
| 985 | <th scope="row"><var>href</var></th> |
|---|
| 986 | <td><code>u'macros.html'</code></td> |
|---|
| 987 | </tr><tr> |
|---|
| 988 | <th scope="row"><var>self</var></th> |
|---|
| 989 | <td><code><MarkupTemplate "timeline.html"></code></td> |
|---|
| 990 | </tr><tr class="odd"> |
|---|
| 991 | <th scope="row"><var>stream</var></th> |
|---|
| 992 | <td><code><generator object at 0x03C642B0></code></td> |
|---|
| 993 | </tr><tr> |
|---|
| 994 | <th scope="row"><var>tmpl</var></th> |
|---|
| 995 | <td><code><MarkupTemplate "macros.html"></code></td> |
|---|
| 996 | </tr> |
|---|
| 997 | </tbody> |
|---|
| 998 | </table> |
|---|
| 999 | </div> |
|---|
| 1000 | </li><li class="frame"> |
|---|
| 1001 | <a href="#frame15" id="frame15"> |
|---|
| 1002 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\markup.py", |
|---|
| 1003 | line <b>279</b>, in</span> |
|---|
| 1004 | <var>_match</var> |
|---|
| 1005 | </a> |
|---|
| 1006 | <div class="source" style="display: none"> |
|---|
| 1007 | <h3>Code fragment:</h3> |
|---|
| 1008 | <ol start="274"> |
|---|
| 1009 | <li><code> inner = _strip(stream)</code></li><li><code> if 'match_once' not in hints \</code></li><li><code> and 'not_recursive' not in hints:</code></li><li><code> inner = self._match(inner, ctxt, [match_templates[idx]])</code></li><li><code> content = list(self._include(chain([event], inner, tail),</code></li> |
|---|
| 1010 | <li class="current"><code> ctxt))</code></li> |
|---|
| 1011 | <li><code> </code></li><li><code> for test in [mt[0] for mt in match_templates]:</code></li><li><code> test(tail[0], namespaces, ctxt, updateonly=True)</code></li><li><code> </code></li><li><code> # Make the select() function available in the body of the</code></li> |
|---|
| 1012 | </ol> |
|---|
| 1013 | </div> |
|---|
| 1014 | <div class="vars" style="display: none"> |
|---|
| 1015 | <h3>Local variables:</h3> |
|---|
| 1016 | <table class="listing"> |
|---|
| 1017 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 1018 | <tbody> |
|---|
| 1019 | <tr> |
|---|
| 1020 | <th scope="row"><var>_strip</var></th> |
|---|
| 1021 | <td><code><function _strip at 0x03EC1E70></code></td> |
|---|
| 1022 | </tr><tr class="odd"> |
|---|
| 1023 | <th scope="row"><var>content</var></th> |
|---|
| 1024 | <td><code>[('START', (QName(u'http://www.w3.org/1999/xhtml}head'), Attrs()), ...</code></td> |
|---|
| 1025 | </tr><tr> |
|---|
| 1026 | <th scope="row"><var>ctxt</var></th> |
|---|
| 1027 | <td><code>[{'day': u'10/4/2007', 'events': <itertools._grouper object at ...</code></td> |
|---|
| 1028 | </tr><tr class="odd"> |
|---|
| 1029 | <th scope="row"><var>directives</var></th> |
|---|
| 1030 | <td><code>[]</code></td> |
|---|
| 1031 | </tr><tr> |
|---|
| 1032 | <th scope="row"><var>event</var></th> |
|---|
| 1033 | <td><code>('START', (QName(u'http://www.w3.org/1999/xhtml}body'), Attrs()), ...</code></td> |
|---|
| 1034 | </tr><tr class="odd"> |
|---|
| 1035 | <th scope="row"><var>hints</var></th> |
|---|
| 1036 | <td><code>frozenset(['match_once'])</code></td> |
|---|
| 1037 | </tr><tr> |
|---|
| 1038 | <th scope="row"><var>idx</var></th> |
|---|
| 1039 | <td><code>-1</code></td> |
|---|
| 1040 | </tr><tr class="odd"> |
|---|
| 1041 | <th scope="row"><var>inner</var></th> |
|---|
| 1042 | <td><code><generator object at 0x021111C0></code></td> |
|---|
| 1043 | </tr><tr> |
|---|
| 1044 | <th scope="row"><var>match_templates</var></th> |
|---|
| 1045 | <td><code>[]</code></td> |
|---|
| 1046 | </tr><tr class="odd"> |
|---|
| 1047 | <th scope="row"><var>mt</var></th> |
|---|
| 1048 | <td><code>(<function _test at 0x03EC1A30>, <Path "child::body">, [('START', ...</code></td> |
|---|
| 1049 | </tr><tr> |
|---|
| 1050 | <th scope="row"><var>namespaces</var></th> |
|---|
| 1051 | <td><code>{'': u'http://www.w3.org/1999/xhtml', u'py': ...</code></td> |
|---|
| 1052 | </tr><tr class="odd"> |
|---|
| 1053 | <th scope="row"><var>path</var></th> |
|---|
| 1054 | <td><code><Path "child::body"></code></td> |
|---|
| 1055 | </tr><tr> |
|---|
| 1056 | <th scope="row"><var>remaining</var></th> |
|---|
| 1057 | <td><code>[]</code></td> |
|---|
| 1058 | </tr><tr class="odd"> |
|---|
| 1059 | <th scope="row"><var>select</var></th> |
|---|
| 1060 | <td><code><function select at 0x03EC1970></code></td> |
|---|
| 1061 | </tr><tr> |
|---|
| 1062 | <th scope="row"><var>self</var></th> |
|---|
| 1063 | <td><code><MarkupTemplate "timeline.html"></code></td> |
|---|
| 1064 | </tr><tr class="odd"> |
|---|
| 1065 | <th scope="row"><var>stream</var></th> |
|---|
| 1066 | <td><code><generator object at 0x03C64DF0></code></td> |
|---|
| 1067 | </tr><tr> |
|---|
| 1068 | <th scope="row"><var>tail</var></th> |
|---|
| 1069 | <td><code>[('END', QName(u'http://www.w3.org/1999/xhtml}head'), ('timeline.html', ...</code></td> |
|---|
| 1070 | </tr><tr class="odd"> |
|---|
| 1071 | <th scope="row"><var>template</var></th> |
|---|
| 1072 | <td><code>[('START', (QName(u'http://www.w3.org/1999/xhtml}body'), Attrs()), ...</code></td> |
|---|
| 1073 | </tr><tr> |
|---|
| 1074 | <th scope="row"><var>test</var></th> |
|---|
| 1075 | <td><code><function _test at 0x03EC1A30></code></td> |
|---|
| 1076 | </tr> |
|---|
| 1077 | </tbody> |
|---|
| 1078 | </table> |
|---|
| 1079 | </div> |
|---|
| 1080 | </li><li class="frame"> |
|---|
| 1081 | <a href="#frame16" id="frame16"> |
|---|
| 1082 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", |
|---|
| 1083 | line <b>521</b>, in</span> |
|---|
| 1084 | <var>_include</var> |
|---|
| 1085 | </a> |
|---|
| 1086 | <div class="source" style="display: none"> |
|---|
| 1087 | <h3>Code fragment:</h3> |
|---|
| 1088 | <ol start="516"> |
|---|
| 1089 | <li><code> """Internal stream filter that performs inclusion of external</code></li><li><code> template files.</code></li><li><code> """</code></li><li><code> from genshi.template.loader import TemplateNotFound</code></li><li><code> </code></li> |
|---|
| 1090 | <li class="current"><code> for event in stream:</code></li> |
|---|
| 1091 | <li><code> if event[0] is INCLUDE:</code></li><li><code> href, cls, fallback = event[1]</code></li><li><code> if not isinstance(href, basestring):</code></li><li><code> parts = []</code></li><li><code> for subkind, subdata, subpos in self._eval(href, ctxt):</code></li> |
|---|
| 1092 | </ol> |
|---|
| 1093 | </div> |
|---|
| 1094 | <div class="vars" style="display: none"> |
|---|
| 1095 | <h3>Local variables:</h3> |
|---|
| 1096 | <table class="listing"> |
|---|
| 1097 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 1098 | <tbody> |
|---|
| 1099 | <tr> |
|---|
| 1100 | <th scope="row"><var>TemplateNotFound</var></th> |
|---|
| 1101 | <td><code><class genshi.template.loader.TemplateNotFound at 0x00DBD570></code></td> |
|---|
| 1102 | </tr><tr class="odd"> |
|---|
| 1103 | <th scope="row"><var>ctxt</var></th> |
|---|
| 1104 | <td><code>[{'day': u'10/4/2007', 'events': <itertools._grouper object at ...</code></td> |
|---|
| 1105 | </tr><tr> |
|---|
| 1106 | <th scope="row"><var>event</var></th> |
|---|
| 1107 | <td><code>('TEXT', u'\n ', ...</code></td> |
|---|
| 1108 | </tr><tr class="odd"> |
|---|
| 1109 | <th scope="row"><var>self</var></th> |
|---|
| 1110 | <td><code><MarkupTemplate "timeline.html"></code></td> |
|---|
| 1111 | </tr><tr> |
|---|
| 1112 | <th scope="row"><var>stream</var></th> |
|---|
| 1113 | <td><code><itertools.chain object at 0x03A6E288></code></td> |
|---|
| 1114 | </tr> |
|---|
| 1115 | </tbody> |
|---|
| 1116 | </table> |
|---|
| 1117 | </div> |
|---|
| 1118 | </li><li class="frame"> |
|---|
| 1119 | <a href="#frame17" id="frame17"> |
|---|
| 1120 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\markup.py", |
|---|
| 1121 | line <b>239</b>, in</span> |
|---|
| 1122 | <var>_strip</var> |
|---|
| 1123 | </a> |
|---|
| 1124 | <div class="source" style="display: none"> |
|---|
| 1125 | <h3>Code fragment:</h3> |
|---|
| 1126 | <ol start="234"> |
|---|
| 1127 | <li><code> </code></li><li><code> tail = []</code></li><li><code> def _strip(stream):</code></li><li><code> depth = 1</code></li><li><code> while 1:</code></li> |
|---|
| 1128 | <li class="current"><code> event = stream.next()</code></li> |
|---|
| 1129 | <li><code> if event[0] is START:</code></li><li><code> depth += 1</code></li><li><code> elif event[0] is END:</code></li><li><code> depth -= 1</code></li><li><code> if depth > 0:</code></li> |
|---|
| 1130 | </ol> |
|---|
| 1131 | </div> |
|---|
| 1132 | <div class="vars" style="display: none"> |
|---|
| 1133 | <h3>Local variables:</h3> |
|---|
| 1134 | <table class="listing"> |
|---|
| 1135 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 1136 | <tbody> |
|---|
| 1137 | <tr> |
|---|
| 1138 | <th scope="row"><var>depth</var></th> |
|---|
| 1139 | <td><code>3</code></td> |
|---|
| 1140 | </tr><tr class="odd"> |
|---|
| 1141 | <th scope="row"><var>event</var></th> |
|---|
| 1142 | <td><code>('TEXT', u'\n ', ...</code></td> |
|---|
| 1143 | </tr><tr> |
|---|
| 1144 | <th scope="row"><var>stream</var></th> |
|---|
| 1145 | <td><code><generator object at 0x03C64DF0></code></td> |
|---|
| 1146 | </tr><tr class="odd"> |
|---|
| 1147 | <th scope="row"><var>tail</var></th> |
|---|
| 1148 | <td><code>[('END', QName(u'http://www.w3.org/1999/xhtml}head'), ('timeline.html', ...</code></td> |
|---|
| 1149 | </tr> |
|---|
| 1150 | </tbody> |
|---|
| 1151 | </table> |
|---|
| 1152 | </div> |
|---|
| 1153 | </li><li class="frame"> |
|---|
| 1154 | <a href="#frame18" id="frame18"> |
|---|
| 1155 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", |
|---|
| 1156 | line <b>496</b>, in</span> |
|---|
| 1157 | <var>_exec</var> |
|---|
| 1158 | </a> |
|---|
| 1159 | <div class="source" style="display: none"> |
|---|
| 1160 | <h3>Code fragment:</h3> |
|---|
| 1161 | <ol start="491"> |
|---|
| 1162 | <li><code> else:</code></li><li><code> yield kind, data, pos</code></li><li><code> </code></li><li><code> def _exec(self, stream, ctxt):</code></li><li><code> """Internal stream filter that executes Python code blocks."""</code></li> |
|---|
| 1163 | <li class="current"><code> for event in stream:</code></li> |
|---|
| 1164 | <li><code> if event[0] is EXEC:</code></li><li><code> event[1].execute(_ctxt2dict(ctxt))</code></li><li><code> else:</code></li><li><code> yield event</code></li><li><code> </code></li> |
|---|
| 1165 | </ol> |
|---|
| 1166 | </div> |
|---|
| 1167 | <div class="vars" style="display: none"> |
|---|
| 1168 | <h3>Local variables:</h3> |
|---|
| 1169 | <table class="listing"> |
|---|
| 1170 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 1171 | <tbody> |
|---|
| 1172 | <tr> |
|---|
| 1173 | <th scope="row"><var>ctxt</var></th> |
|---|
| 1174 | <td><code>[{'day': u'10/4/2007', 'events': <itertools._grouper object at ...</code></td> |
|---|
| 1175 | </tr><tr class="odd"> |
|---|
| 1176 | <th scope="row"><var>event</var></th> |
|---|
| 1177 | <td><code>('TEXT', u'\n ', ...</code></td> |
|---|
| 1178 | </tr><tr> |
|---|
| 1179 | <th scope="row"><var>self</var></th> |
|---|
| 1180 | <td><code><MarkupTemplate "timeline.html"></code></td> |
|---|
| 1181 | </tr><tr class="odd"> |
|---|
| 1182 | <th scope="row"><var>stream</var></th> |
|---|
| 1183 | <td><code><generator object at 0x035E4F80></code></td> |
|---|
| 1184 | </tr> |
|---|
| 1185 | </tbody> |
|---|
| 1186 | </table> |
|---|
| 1187 | </div> |
|---|
| 1188 | </li><li class="frame"> |
|---|
| 1189 | <a href="#frame19" id="frame19"> |
|---|
| 1190 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", |
|---|
| 1191 | line <b>450</b>, in</span> |
|---|
| 1192 | <var>_eval</var> |
|---|
| 1193 | </a> |
|---|
| 1194 | <div class="source" style="display: none"> |
|---|
| 1195 | <h3>Code fragment:</h3> |
|---|
| 1196 | <ol start="445"> |
|---|
| 1197 | <li><code> `TEXT` events.</code></li><li><code> """</code></li><li><code> filters = (self._flatten, self._eval)</code></li><li><code> number_conv = self._number_conv</code></li><li><code> </code></li> |
|---|
| 1198 | <li class="current"><code> for kind, data, pos in stream:</code></li> |
|---|
| 1199 | <li><code> </code></li><li><code> if kind is START and data[1]:</code></li><li><code> # Attributes may still contain expressions in start tags at</code></li><li><code> # this point, so do some evaluation</code></li><li><code> tag, attrs = data</code></li> |
|---|
| 1200 | </ol> |
|---|
| 1201 | </div> |
|---|
| 1202 | <div class="vars" style="display: none"> |
|---|
| 1203 | <h3>Local variables:</h3> |
|---|
| 1204 | <table class="listing"> |
|---|
| 1205 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 1206 | <tbody> |
|---|
| 1207 | <tr> |
|---|
| 1208 | <th scope="row"><var>attrs</var></th> |
|---|
| 1209 | <td><code>Attrs([(QName(u'class'), [('EXPR', Expression(u'classes(event.kind, ...</code></td> |
|---|
| 1210 | </tr><tr class="odd"> |
|---|
| 1211 | <th scope="row"><var>ctxt</var></th> |
|---|
| 1212 | <td><code>[{'day': u'10/4/2007', 'events': <itertools._grouper object at ...</code></td> |
|---|
| 1213 | </tr><tr> |
|---|
| 1214 | <th scope="row"><var>data</var></th> |
|---|
| 1215 | <td><code>u'\n '</code></td> |
|---|
| 1216 | </tr><tr class="odd"> |
|---|
| 1217 | <th scope="row"><var>event</var></th> |
|---|
| 1218 | <td><code>('END', QName(u'a'), (None, -1, -1))</code></td> |
|---|
| 1219 | </tr><tr> |
|---|
| 1220 | <th scope="row"><var>filter_</var></th> |
|---|
| 1221 | <td><code><bound method MarkupTemplate._eval of <MarkupTemplate "timeline.html">></code></td> |
|---|
| 1222 | </tr><tr class="odd"> |
|---|
| 1223 | <th scope="row"><var>filters</var></th> |
|---|
| 1224 | <td><code>(<bound method MarkupTemplate._flatten of <MarkupTemplate ...</code></td> |
|---|
| 1225 | </tr><tr> |
|---|
| 1226 | <th scope="row"><var>kind</var></th> |
|---|
| 1227 | <td><code>'TEXT'</code></td> |
|---|
| 1228 | </tr><tr class="odd"> |
|---|
| 1229 | <th scope="row"><var>name</var></th> |
|---|
| 1230 | <td><code>QName(u'class')</code></td> |
|---|
| 1231 | </tr><tr> |
|---|
| 1232 | <th scope="row"><var>new_attrs</var></th> |
|---|
| 1233 | <td><code>[(QName(u'class'), u'wiki')]</code></td> |
|---|
| 1234 | </tr><tr class="odd"> |
|---|
| 1235 | <th scope="row"><var>number_conv</var></th> |
|---|
| 1236 | <td><code><type 'genshi._speedups.Markup'></code></td> |
|---|
| 1237 | </tr><tr> |
|---|
| 1238 | <th scope="row"><var>pos</var></th> |
|---|
| 1239 | <td><code>('C:\\Workspace\\src\\trac\\repos\\context-refactoring\\trac\\timeline\\tem ...</code></td> |
|---|
| 1240 | </tr><tr class="odd"> |
|---|
| 1241 | <th scope="row"><var>result</var></th> |
|---|
| 1242 | <td><code><Element "a"></code></td> |
|---|
| 1243 | </tr><tr> |
|---|
| 1244 | <th scope="row"><var>self</var></th> |
|---|
| 1245 | <td><code><MarkupTemplate "timeline.html"></code></td> |
|---|
| 1246 | </tr><tr class="odd"> |
|---|
| 1247 | <th scope="row"><var>stream</var></th> |
|---|
| 1248 | <td><code><generator object at 0x036BD170></code></td> |
|---|
| 1249 | </tr><tr> |
|---|
| 1250 | <th scope="row"><var>subdata</var></th> |
|---|
| 1251 | <td><code>u'wiki'</code></td> |
|---|
| 1252 | </tr><tr class="odd"> |
|---|
| 1253 | <th scope="row"><var>subkind</var></th> |
|---|
| 1254 | <td><code>'TEXT'</code></td> |
|---|
| 1255 | </tr><tr> |
|---|
| 1256 | <th scope="row"><var>subpos</var></th> |
|---|
| 1257 | <td><code>('C:\\Workspace\\src\\trac\\repos\\context-refactoring\\trac\\timeline\\tem ...</code></td> |
|---|
| 1258 | </tr><tr class="odd"> |
|---|
| 1259 | <th scope="row"><var>substream</var></th> |
|---|
| 1260 | <td><code><generator object at 0x03C31C88></code></td> |
|---|
| 1261 | </tr><tr> |
|---|
| 1262 | <th scope="row"><var>tag</var></th> |
|---|
| 1263 | <td><code>QName(u'http://www.w3.org/1999/xhtml}dd')</code></td> |
|---|
| 1264 | </tr><tr class="odd"> |
|---|
| 1265 | <th scope="row"><var>value</var></th> |
|---|
| 1266 | <td><code>[u'wiki']</code></td> |
|---|
| 1267 | </tr><tr> |
|---|
| 1268 | <th scope="row"><var>values</var></th> |
|---|
| 1269 | <td><code>[u'wiki']</code></td> |
|---|
| 1270 | </tr><tr class="odd"> |
|---|
| 1271 | <th scope="row"><var>x</var></th> |
|---|
| 1272 | <td><code>u'wiki'</code></td> |
|---|
| 1273 | </tr> |
|---|
| 1274 | </tbody> |
|---|
| 1275 | </table> |
|---|
| 1276 | </div> |
|---|
| 1277 | </li><li class="frame"> |
|---|
| 1278 | <a href="#frame20" id="frame20"> |
|---|
| 1279 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", |
|---|
| 1280 | line <b>510</b>, in</span> |
|---|
| 1281 | <var>_flatten</var> |
|---|
| 1282 | </a> |
|---|
| 1283 | <div class="source" style="display: none"> |
|---|
| 1284 | <h3>Code fragment:</h3> |
|---|
| 1285 | <ol start="505"> |
|---|
| 1286 | <li><code> if event[0] is SUB:</code></li><li><code> # This event is a list of directives and a list of nested</code></li><li><code> # events to which those directives should be applied</code></li><li><code> directives, substream = event[1]</code></li><li><code> substream = _apply_directives(substream, ctxt, directives)</code></li> |
|---|
| 1287 | <li class="current"><code> for event in self._flatten(substream, ctxt):</code></li> |
|---|
| 1288 | <li><code> yield event</code></li><li><code> else:</code></li><li><code> yield event</code></li><li><code> </code></li><li><code> def _include(self, stream, ctxt):</code></li> |
|---|
| 1289 | </ol> |
|---|
| 1290 | </div> |
|---|
| 1291 | <div class="vars" style="display: none"> |
|---|
| 1292 | <h3>Local variables:</h3> |
|---|
| 1293 | <table class="listing"> |
|---|
| 1294 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 1295 | <tbody> |
|---|
| 1296 | <tr> |
|---|
| 1297 | <th scope="row"><var>ctxt</var></th> |
|---|
| 1298 | <td><code>[{'day': u'10/4/2007', 'events': <itertools._grouper object at ...</code></td> |
|---|
| 1299 | </tr><tr class="odd"> |
|---|
| 1300 | <th scope="row"><var>directives</var></th> |
|---|
| 1301 | <td><code>[<ForDirective>]</code></td> |
|---|
| 1302 | </tr><tr> |
|---|
| 1303 | <th scope="row"><var>event</var></th> |
|---|
| 1304 | <td><code>('TEXT', u'\n ', ...</code></td> |
|---|
| 1305 | </tr><tr class="odd"> |
|---|
| 1306 | <th scope="row"><var>self</var></th> |
|---|
| 1307 | <td><code><MarkupTemplate "timeline.html"></code></td> |
|---|
| 1308 | </tr><tr> |
|---|
| 1309 | <th scope="row"><var>stream</var></th> |
|---|
| 1310 | <td><code><listiterator object at 0x03ED6BB0></code></td> |
|---|
| 1311 | </tr><tr class="odd"> |
|---|
| 1312 | <th scope="row"><var>substream</var></th> |
|---|
| 1313 | <td><code><generator object at 0x03C64CD8></code></td> |
|---|
| 1314 | </tr> |
|---|
| 1315 | </tbody> |
|---|
| 1316 | </table> |
|---|
| 1317 | </div> |
|---|
| 1318 | </li><li class="frame"> |
|---|
| 1319 | <a href="#frame21" id="frame21"> |
|---|
| 1320 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", |
|---|
| 1321 | line <b>510</b>, in</span> |
|---|
| 1322 | <var>_flatten</var> |
|---|
| 1323 | </a> |
|---|
| 1324 | <div class="source" style="display: none"> |
|---|
| 1325 | <h3>Code fragment:</h3> |
|---|
| 1326 | <ol start="505"> |
|---|
| 1327 | <li><code> if event[0] is SUB:</code></li><li><code> # This event is a list of directives and a list of nested</code></li><li><code> # events to which those directives should be applied</code></li><li><code> directives, substream = event[1]</code></li><li><code> substream = _apply_directives(substream, ctxt, directives)</code></li> |
|---|
| 1328 | <li class="current"><code> for event in self._flatten(substream, ctxt):</code></li> |
|---|
| 1329 | <li><code> yield event</code></li><li><code> else:</code></li><li><code> yield event</code></li><li><code> </code></li><li><code> def _include(self, stream, ctxt):</code></li> |
|---|
| 1330 | </ol> |
|---|
| 1331 | </div> |
|---|
| 1332 | <div class="vars" style="display: none"> |
|---|
| 1333 | <h3>Local variables:</h3> |
|---|
| 1334 | <table class="listing"> |
|---|
| 1335 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 1336 | <tbody> |
|---|
| 1337 | <tr> |
|---|
| 1338 | <th scope="row"><var>ctxt</var></th> |
|---|
| 1339 | <td><code>[{'day': u'10/4/2007', 'events': <itertools._grouper object at ...</code></td> |
|---|
| 1340 | </tr><tr class="odd"> |
|---|
| 1341 | <th scope="row"><var>directives</var></th> |
|---|
| 1342 | <td><code>[<ForDirective>, <WithDirective>]</code></td> |
|---|
| 1343 | </tr><tr> |
|---|
| 1344 | <th scope="row"><var>event</var></th> |
|---|
| 1345 | <td><code>('TEXT', u'\n ', ...</code></td> |
|---|
| 1346 | </tr><tr class="odd"> |
|---|
| 1347 | <th scope="row"><var>self</var></th> |
|---|
| 1348 | <td><code><MarkupTemplate "timeline.html"></code></td> |
|---|
| 1349 | </tr><tr> |
|---|
| 1350 | <th scope="row"><var>stream</var></th> |
|---|
| 1351 | <td><code><generator object at 0x03C64CD8></code></td> |
|---|
| 1352 | </tr><tr class="odd"> |
|---|
| 1353 | <th scope="row"><var>substream</var></th> |
|---|
| 1354 | <td><code><generator object at 0x03A05D00></code></td> |
|---|
| 1355 | </tr> |
|---|
| 1356 | </tbody> |
|---|
| 1357 | </table> |
|---|
| 1358 | </div> |
|---|
| 1359 | </li><li class="frame"> |
|---|
| 1360 | <a href="#frame22" id="frame22"> |
|---|
| 1361 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", |
|---|
| 1362 | line <b>504</b>, in</span> |
|---|
| 1363 | <var>_flatten</var> |
|---|
| 1364 | </a> |
|---|
| 1365 | <div class="source" style="display: none"> |
|---|
| 1366 | <h3>Code fragment:</h3> |
|---|
| 1367 | <ol start="499"> |
|---|
| 1368 | <li><code> else:</code></li><li><code> yield event</code></li><li><code> </code></li><li><code> def _flatten(self, stream, ctxt):</code></li><li><code> """Internal stream filter that expands `SUB` events in the stream."""</code></li> |
|---|
| 1369 | <li class="current"><code> for event in stream:</code></li> |
|---|
| 1370 | <li><code> if event[0] is SUB:</code></li><li><code> # This event is a list of directives and a list of nested</code></li><li><code> # events to which those directives should be applied</code></li><li><code> directives, substream = event[1]</code></li><li><code> substream = _apply_directives(substream, ctxt, directives)</code></li> |
|---|
| 1371 | </ol> |
|---|
| 1372 | </div> |
|---|
| 1373 | <div class="vars" style="display: none"> |
|---|
| 1374 | <h3>Local variables:</h3> |
|---|
| 1375 | <table class="listing"> |
|---|
| 1376 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 1377 | <tbody> |
|---|
| 1378 | <tr> |
|---|
| 1379 | <th scope="row"><var>ctxt</var></th> |
|---|
| 1380 | <td><code>[{'day': u'10/4/2007', 'events': <itertools._grouper object at ...</code></td> |
|---|
| 1381 | </tr><tr class="odd"> |
|---|
| 1382 | <th scope="row"><var>directives</var></th> |
|---|
| 1383 | <td><code>[<ForDirective>]</code></td> |
|---|
| 1384 | </tr><tr> |
|---|
| 1385 | <th scope="row"><var>event</var></th> |
|---|
| 1386 | <td><code>('TEXT', u'\n ', ...</code></td> |
|---|
| 1387 | </tr><tr class="odd"> |
|---|
| 1388 | <th scope="row"><var>self</var></th> |
|---|
| 1389 | <td><code><MarkupTemplate "timeline.html"></code></td> |
|---|
| 1390 | </tr><tr> |
|---|
| 1391 | <th scope="row"><var>stream</var></th> |
|---|
| 1392 | <td><code><generator object at 0x03A05D00></code></td> |
|---|
| 1393 | </tr><tr class="odd"> |
|---|
| 1394 | <th scope="row"><var>substream</var></th> |
|---|
| 1395 | <td><code><generator object at 0x03C313F0></code></td> |
|---|
| 1396 | </tr> |
|---|
| 1397 | </tbody> |
|---|
| 1398 | </table> |
|---|
| 1399 | </div> |
|---|
| 1400 | </li><li class="frame"> |
|---|
| 1401 | <a href="#frame23" id="frame23"> |
|---|
| 1402 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\directives.py", |
|---|
| 1403 | line <b>371</b>, in</span> |
|---|
| 1404 | <var>__call__</var> |
|---|
| 1405 | </a> |
|---|
| 1406 | <div class="source" style="display: none"> |
|---|
| 1407 | <h3>Code fragment:</h3> |
|---|
| 1408 | <ol start="366"> |
|---|
| 1409 | <li><code> return</code></li><li><code> </code></li><li><code> assign = self.assign</code></li><li><code> scope = {}</code></li><li><code> stream = list(stream)</code></li> |
|---|
| 1410 | <li class="current"><code> for item in iterable:</code></li> |
|---|
| 1411 | <li><code> assign(scope, item)</code></li><li><code> ctxt.push(scope)</code></li><li><code> for event in _apply_directives(stream, ctxt, directives):</code></li><li><code> yield event</code></li><li><code> ctxt.pop()</code></li> |
|---|
| 1412 | </ol> |
|---|
| 1413 | </div> |
|---|
| 1414 | <div class="vars" style="display: none"> |
|---|
| 1415 | <h3>Local variables:</h3> |
|---|
| 1416 | <table class="listing"> |
|---|
| 1417 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 1418 | <tbody> |
|---|
| 1419 | <tr> |
|---|
| 1420 | <th scope="row"><var>assign</var></th> |
|---|
| 1421 | <td><code><function _assign at 0x038361F0></code></td> |
|---|
| 1422 | </tr><tr class="odd"> |
|---|
| 1423 | <th scope="row"><var>ctxt</var></th> |
|---|
| 1424 | <td><code>[{'day': u'10/4/2007', 'events': <itertools._grouper object at ...</code></td> |
|---|
| 1425 | </tr><tr> |
|---|
| 1426 | <th scope="row"><var>directives</var></th> |
|---|
| 1427 | <td><code>[<WithDirective>]</code></td> |
|---|
| 1428 | </tr><tr class="odd"> |
|---|
| 1429 | <th scope="row"><var>event</var></th> |
|---|
| 1430 | <td><code>('TEXT', u'\n ', ...</code></td> |
|---|
| 1431 | </tr><tr> |
|---|
| 1432 | <th scope="row"><var>item</var></th> |
|---|
| 1433 | <td><code><TimelineEvent 2007-10-04 12:16:46+00:00 - <Resource ...</code></td> |
|---|
| 1434 | </tr><tr class="odd"> |
|---|
| 1435 | <th scope="row"><var>iterable</var></th> |
|---|
| 1436 | <td><code><itertools._grouper object at 0x00AB9940></code></td> |
|---|
| 1437 | </tr><tr> |
|---|
| 1438 | <th scope="row"><var>scope</var></th> |
|---|
| 1439 | <td><code>{'event': <TimelineEvent 2007-10-04 12:16:46+00:00 - <Resource ...</code></td> |
|---|
| 1440 | </tr><tr class="odd"> |
|---|
| 1441 | <th scope="row"><var>self</var></th> |
|---|
| 1442 | <td><code><ForDirective></code></td> |
|---|
| 1443 | </tr><tr> |
|---|
| 1444 | <th scope="row"><var>stream</var></th> |
|---|
| 1445 | <td><code>[('TEXT', u'\n ', ...</code></td> |
|---|
| 1446 | </tr> |
|---|
| 1447 | </tbody> |
|---|
| 1448 | </table> |
|---|
| 1449 | </div> |
|---|
| 1450 | </li><li class="frame"> |
|---|
| 1451 | <a href="#frame24" id="frame24"> |
|---|
| 1452 | <span class="file">File "<string>", |
|---|
| 1453 | line <b>1</b>, in</span> |
|---|
| 1454 | <var><lambda.3></var> |
|---|
| 1455 | </a> |
|---|
| 1456 | <div class="vars" style="display: none"> |
|---|
| 1457 | <h3>Local variables:</h3> |
|---|
| 1458 | <table class="listing"> |
|---|
| 1459 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 1460 | <tbody> |
|---|
| 1461 | <tr> |
|---|
| 1462 | <th scope="row"><var>e</var></th> |
|---|
| 1463 | <td><code><TimelineEvent 2007-10-04 12:16:46+00:00 - <Resource ...</code></td> |
|---|
| 1464 | </tr> |
|---|
| 1465 | </tbody> |
|---|
| 1466 | </table> |
|---|
| 1467 | </div> |
|---|
| 1468 | </li><li class="frame"> |
|---|
| 1469 | <a href="#frame25" id="frame25"> |
|---|
| 1470 | <span class="file">File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", |
|---|
| 1471 | line <b>224</b>, in</span> |
|---|
| 1472 | <var>get</var> |
|---|
| 1473 | </a> |
|---|
| 1474 | <div class="source" style="display: none"> |
|---|
| 1475 | <h3>Code fragment:</h3> |
|---|
| 1476 | <ol start="219"> |
|---|
| 1477 | <li><code> </code></li><li><code> :param key: the name of the variable</code></li><li><code> :param default: the default value to return when the variable is not</code></li><li><code> found</code></li><li><code> """</code></li> |
|---|
| 1478 | <li class="current"><code> for frame in self.frames:</code></li> |
|---|
| 1479 | <li><code> if key in frame:</code></li><li><code> return frame[key]</code></li><li><code> return default</code></li><li><code> </code></li><li><code> def keys(self):</code></li> |
|---|
| 1480 | </ol> |
|---|
| 1481 | </div> |
|---|
| 1482 | <div class="vars" style="display: none"> |
|---|
| 1483 | <h3>Local variables:</h3> |
|---|
| 1484 | <table class="listing"> |
|---|
| 1485 | <thead><tr><th>Name</th><th>Value</th></tr></thead> |
|---|
| 1486 | <tbody> |
|---|
| 1487 | <tr> |
|---|
| 1488 | <th scope="row"><var>default</var></th> |
|---|
| 1489 | <td><code><Undefined 'value'></code></td> |
|---|
| 1490 | </tr><tr class="odd"> |
|---|
| 1491 | <th scope="row"><var>frame</var></th> |
|---|
| 1492 | <td><code>{'event': <TimelineEvent 2007-10-15 08:21:56+00:00 - <Resource ...</code></td> |
|---|
| 1493 | </tr><tr> |
|---|
| 1494 | <th scope="row"><var>key</var></th> |
|---|
| 1495 | <td><code>'format_date'</code></td> |
|---|
| 1496 | </tr><tr class="odd"> |
|---|
| 1497 | <th scope="row"><var>self</var></th> |
|---|
| 1498 | <td><code>[{'select': <function select at 0x03E494B0>}, {'abs_url_of': <function ...</code></td> |
|---|
| 1499 | </tr> |
|---|
| 1500 | </tbody> |
|---|
| 1501 | </table> |
|---|
| 1502 | </div> |
|---|
| 1503 | </li> |
|---|
| 1504 | </ul> |
|---|
| 1505 | <pre style="display: none">File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\main.py", line 381, in dispatch_request |
|---|
| 1506 | dispatcher.dispatch(req) |
|---|
| 1507 | File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\main.py", line 213, in dispatch |
|---|
| 1508 | data, content_type) |
|---|
| 1509 | File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\chrome.py", line 619, in render_template |
|---|
| 1510 | return stream.render(method, doctype=doctype) |
|---|
| 1511 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\core.py", line 172, in render |
|---|
| 1512 | return encode(generator, method=method, encoding=encoding) |
|---|
| 1513 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", line 45, in encode |
|---|
| 1514 | output = u''.join(list(iterator)) |
|---|
| 1515 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", line 274, in __call__ |
|---|
| 1516 | for kind, data, pos in stream: |
|---|
| 1517 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", line 526, in __call__ |
|---|
| 1518 | for kind, data, pos in stream: |
|---|
| 1519 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", line 632, in __call__ |
|---|
| 1520 | for kind, data, pos in chain(stream, [(None, None, None)]): |
|---|
| 1521 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\output.py", line 466, in __call__ |
|---|
| 1522 | for ev in stream: |
|---|
| 1523 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\core.py", line 273, in _ensure |
|---|
| 1524 | for event in stream: |
|---|
| 1525 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\core.py", line 273, in _ensure |
|---|
| 1526 | for event in stream: |
|---|
| 1527 | File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\chrome.py", line 649, in _strip_accesskeys |
|---|
| 1528 | for kind, data, pos in stream: |
|---|
| 1529 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\core.py", line 273, in _ensure |
|---|
| 1530 | for event in stream: |
|---|
| 1531 | File "C:\Workspace\src\trac\repos\context-refactoring\trac\web\chrome.py", line 638, in _generate |
|---|
| 1532 | for kind, data, pos in stream: |
|---|
| 1533 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 521, in _include |
|---|
| 1534 | for event in stream: |
|---|
| 1535 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\markup.py", line 279, in _match |
|---|
| 1536 | ctxt)) |
|---|
| 1537 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 521, in _include |
|---|
| 1538 | for event in stream: |
|---|
| 1539 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\markup.py", line 239, in _strip |
|---|
| 1540 | event = stream.next() |
|---|
| 1541 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 496, in _exec |
|---|
| 1542 | for event in stream: |
|---|
| 1543 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 450, in _eval |
|---|
| 1544 | for kind, data, pos in stream: |
|---|
| 1545 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 510, in _flatten |
|---|
| 1546 | for event in self._flatten(substream, ctxt): |
|---|
| 1547 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 510, in _flatten |
|---|
| 1548 | for event in self._flatten(substream, ctxt): |
|---|
| 1549 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 504, in _flatten |
|---|
| 1550 | for event in stream: |
|---|
| 1551 | File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\directives.py", line 371, in __call__ |
|---|
| 1552 | for item in iterable: |
|---|
| 1553 | File "<string>", line 1, in <lambda.3>File "c:\workspace\src\trac\dependencies\genshi\trunk\genshi\template\base.py", line 224, in get |
|---|
| 1554 | for frame in self.frames: |
|---|
| 1555 | </pre> |
|---|
| 1556 | <p><input type="button" id="tbtoggle" value="Switch to plain text view" /></p> |
|---|
| 1557 | </div> |
|---|
| 1558 | <h2>System Information:</h2> |
|---|
| 1559 | <table class="listing" id="systeminfo"> |
|---|
| 1560 | <tr> |
|---|
| 1561 | <th>Trac:</th> |
|---|
| 1562 | <td>0.11dev-r6089</td> |
|---|
| 1563 | </tr><tr> |
|---|
| 1564 | <th>Python:</th> |
|---|
| 1565 | <td>2.4.2 (#67, Oct 30 2005, 16:11:18) [MSC v.1310 32 bit (Intel)]</td> |
|---|
| 1566 | </tr><tr> |
|---|
| 1567 | <th>setuptools:</th> |
|---|
| 1568 | <td>0.7a1</td> |
|---|
| 1569 | </tr><tr> |
|---|
| 1570 | <th>SQLite:</th> |
|---|
| 1571 | <td>3.3.10</td> |
|---|
| 1572 | </tr><tr> |
|---|
| 1573 | <th>pysqlite:</th> |
|---|
| 1574 | <td>2.3.3</td> |
|---|
| 1575 | </tr><tr> |
|---|
| 1576 | <th>Genshi:</th> |
|---|
| 1577 | <td>0.5dev-r656</td> |
|---|
| 1578 | </tr><tr> |
|---|
| 1579 | <th>Pygments:</th> |
|---|
| 1580 | <td></td> |
|---|
| 1581 | </tr><tr> |
|---|
| 1582 | <th>Mercurial:</th> |
|---|
| 1583 | <td>unknown</td> |
|---|
| 1584 | </tr> |
|---|
| 1585 | </table> |
|---|
| 1586 | <p> |
|---|
| 1587 | <a href="/cblaptop-trac/wiki/TracGuide">TracGuide</a> — The Trac User and Administration Guide |
|---|
| 1588 | </p> |
|---|
| 1589 | </div> |
|---|
| 1590 | </div> |
|---|
| 1591 | <div id="footer" lang="en" xml:lang="en"><hr /> |
|---|
| 1592 | <a id="tracpowered" href="http://trac.edgewall.org/"><img src="/cblaptop-trac/chrome/common/trac_logo_mini.png" height="30" width="107" alt="Trac Powered" /></a> |
|---|
| 1593 | <p class="left"> |
|---|
| 1594 | Powered by <a href="/cblaptop-trac/about"><strong>Trac 0.11dev-r6089</strong></a><br /> |
|---|
| 1595 | By <a href="http://www.edgewall.org/">Edgewall Software</a>. |
|---|
| 1596 | </p> |
|---|
| 1597 | <p class="right">Visit the Trac open source project at<br /><a href="http://trac.edgewall.com/">http://trac.edgewall.com/</a></p> |
|---|
| 1598 | </div> |
|---|
| 1599 | </body> |
|---|
| 1600 | </html> |
|---|