Skip to content

hover_text gives server error with Mako templates #21

Closed
pedersen opened this Issue Sep 24, 2012 · 6 comments

2 participants

@pedersen
TurboGears member

This issue existed on SourceForge. The original can be viewed at https://sourceforge.net/p/turbogears2/tickets/123

@pedersen
TurboGears member

Original Author: csmall, Original Timestamp: 2011-10-08 04:46:48.788000

Original Body: 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

@pedersen
TurboGears member

Original Author: csmall, Original Timestamp: 2011-10-08 04:52:08.439000

Original Body: 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

@pedersen
TurboGears member

Original Author: pedersen, Original Timestamp: 2011-11-25 22:25:13.606000

Original Body: - milestone: 2.1.4 --> 2.2.0

@pedersen
TurboGears member

Original Author: pedersen, Original Timestamp: 2012-08-24 01:47:52.674000

Original Body: - version: 2.1.3 --> 2.1.5

  • milestone: 2.2.0 --> 2.3.0
@pedersen
TurboGears member
pedersen commented Oct 9, 2012

Looking at this, this problem resides in tw.forms. Unfortunately, since this a problem in ToscaWidgets 0.9, and the TW team is pushing TW2, we might not be able to get a code fix for this. Instead, we are probably going to have to update this to include only TW2 references.

@amol-
TurboGears member
amol- commented Jul 22, 2014

Closing as invalid as TW1 is no longer used by TG nor referenced by documentation.

@amol- amol- closed this Jul 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.