#684: Kid templates messing up!
-------------------------------------------+--------------------------------
Reporter: jpaulofarias at gmail dot com | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 0.9a2
Component: Kid | Version: 0.9a1
Severity: blocker | Resolution:
Keywords: |
-------------------------------------------+--------------------------------
Comment (by jpaulofarias at gmail dot com):
Patch to solve this problem:
{{{
Index: kid/parser.py
===================================================================
--- kid/parser.py (revision 277)
+++ kid/parser.py (working copy)
@@ -377,7 +377,7 @@
line = code.line
sub = interpolate(text)
if isinstance(sub, list):
- code.start_block('for _e in %r:' % sub)
+ code.start_block('for _e in %s:' % sub)
code.line('for _e2 in template_util.generate_content(_e):
yield _e2')
code.end_block()
else:
}}}
Hope it helps.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/684>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---