Ticket #2518 (closed defect: fixed)
Kid is not a dependency for TG1.1.1 anymore but is still needed for TG widget
| Reported by: | zafy | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1.x bugfix |
| Component: | TurboGears | Version: | 1.1 HEAD |
| Severity: | normal | Keywords: | tg widgets, kid, i18n |
| Cc: |
Description
The kid templating engine is used for TG widgets and particularily internationalization in TG1.1.1. However a fresh install of TG1.1.1 with easy_install does not install kid. If the _() method is used in any javascript files it will thus not be recognized and will cause javascript issues in the app.
Also the only warning given by TurboGears in this case is not very explicit :
/usr/lib/python2.5/site-packages/TurboGears-1.1.1-py2.5.egg/turbogears/ widgets/base.py:251: UserWarning?: Widget instance 'JSLink(name='js/ i18n_base.js', charset=None, defer=False, order=0)' has no template defined.
Kid needs to be set as a dependency for TG1.1
Fixed in r7136.
Note that this is only needed for the TG 1.1 branch since TG 1.5 can use Genshi for widget templates and all the templates in TG have been converted to Genshi.