#42: wrong rendering child widgets when default_view is genshi
---------------------------------+------------------------------------------
Reporter: RushTonop | Owner: alberto
Type: defect | Status: new
Priority: major | Milestone:
Component: core | Version: 0.9
Keywords: genshi,default_view |
---------------------------------+------------------------------------------
All working if you repeat
[
http://toscawidgets.org/documentation/ToscaWidgets/install/pylons_app.html
pylons install manual]. But if you want to use genshi as template engine
('toscawidgets.framework.default_view': 'genshi'), all test_form inner
html will be escaped. I've patched tw/core/base.py and both mako and
genshi seems proper. May be I'll help one:
{{{
--- a/base.py 2009-06-16 19:46:25.000000000 +0400
+++ b/base.py 2009-06-17 00:23:16.000000000 +0400
@@ -227,10 +227,7 @@
""")
def displays_on(self):
- if self.is_root:
- return tw.framework.default_view
- else:
- return self.parent.engine_name
+ return tw.framework.default_view
displays_on = property(displays_on, doc="""\
Where the widget is being displayed on
""")
}}}
Also may be this correlate to [
http://toscawidgets.org/trac/tw/ticket/13
tw:#13]
--
Ticket URL: <http://toscawidgets.org/trac/tw/ticket/42>
ToscaWidgets </trac/tw>
ToscaWidgets - Web Widgets