Menu

#123 hover_text gives server error with Mako templates

2.3.0
migrated
nobody
None
core
defect
trivial
core
2.1.5
2012-09-25
2011-10-08
Craig Small
No

I was doing the ToscaWidgets tutorial at http://www.turbogears.org/2.1/docs/main/ToscaWidgets/forms.html except i was using Mako templates instead of Genshi.
The section Customizing With CSS And Form Templates says that you can use the hover_help = True in your form template to make hovering help. Setting this to true gives a server error.

Module mako.runtime:718 in _exec_template view

callable_(context, args, *kwargs)
Module _tw_forms_templates_table_form_mak:104 in render_body view
UnboundLocalError: local variable 'help_text' referenced before assignment

Discussion

  • Craig Small

    Craig Small - 2011-10-08
    File '/home/virtualenv/tg2env/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py', line 692 in _render_context
      _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
    File '/home/virtualenv/tg2env/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py', line 718 in _exec_template
      callable_(context, *args, **kwargs)
    File '_tw_forms_templates_table_form_mak', line 104 in render_body
      UnboundLocalError: local variable 'help_text' referenced before assignment
    
     
  • Michael J. Pedersen

    • version: 2.1.3 --> 2.1.5
    • milestone: 2.2.0 --> 2.3.0
     
  • Michael J. Pedersen

    • status: open --> migrated