Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hover_text gives server error with Mako templates #21

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

hover_text gives server error with Mako templates #21

pedersen opened this issue Sep 24, 2012 · 6 comments
Labels
Milestone

Comments

@pedersen
Copy link
Member

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

@pedersen
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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

Original Body: - milestone: 2.1.4 --> 2.2.0

@pedersen
Copy link
Member Author

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
Copy link
Member Author

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-
Copy link
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 as completed Jul 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants