Changes between Version 44 and Version 45 of GenshiFaq
- Timestamp:
- Sep 3, 2010, 6:37:39 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenshiFaq
v44 v45 207 207 If you get an error message like the following {{{TemplateSyntaxError: unbound prefix: line .., column .. (template.html, line ..)}}} with an XML document, you most likely forgot to add the proper namespace to the document. Simply adding {{{xmlns:py="http://genshi.edgewall.org/"}}} should resolve this issue. 208 208 209 === How can I duplicate a Stream without depleting it (e.g. for debug)? === 210 211 When you query stream it depletes. This is highly annoying during development. Here is how you can duplicate it: 212 {{{ 213 #!python 214 stream = Stream(list(stream)) 215 }}} 216 Note that if you rename left `stream` to `streamdbg` or something - this won't work anymore. 217 209 218 ---- 210 219 See also: [wiki:Documentation], GenshiRecipes