[ToscaWidgets] #42: wrong rendering child widgets when default_view is genshi

0 views
Skip to first unread message

Trac from toscawidgets.org

unread,
Jun 16, 2009, 4:58:55 PM6/16/09
to toscawidge...@groups.google.com
#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

Trac from toscawidgets.org

unread,
Jun 19, 2009, 7:32:31 AM6/19/09
to toscawidge...@groups.google.com
#42: wrong rendering child widgets when default_view is genshi
------------------------+---------------------------------------------------
Reporter: RushTonop | Owner: alberto
Type: defect | Status: closed
Priority: major | Milestone:
Component: core | Version: 0.9
Resolution: fixed | Keywords: genshi,default_view
------------------------+---------------------------------------------------
Changes (by alberto):

* status: new => closed
* resolution: => fixed


Comment:

Fixed in 0.9.7.1

Alberto

--
Ticket URL: <http://toscawidgets.org/trac/tw/ticket/42#comment:1>

Reply all
Reply to author
Forward
0 new messages