Hello again,
> I just took at a look at the ticket... Here's the explanation:
> Yep. This is currently expected behavior. You can get around this by:
>
> 1. adding your template name to turbogears.view.baseTemplates.
> 2. calling turbogears.view.loadBaseTemplates()
I added those two lines to my controllers.py:
turbogears.view.baseTemplates.append("cheetah:wiktory.templates.master")
turbogears.view.loadBaseTemplates()
but i still get the attached traceback.
> This is all a matter of the fact that the template has not been
> loaded/converted to Python. If you precompile your templates, it would
> likely work.
I'm working with precompiled templates. Do not precompiled templates
work at all?
Any ideas?
Thanks,
--
Soni Bergraj
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
line 271, in run
main()
File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
line 502, in main
body = page_handler(*args, **cherrypy.request.paramMap)
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a0dev_r459-py2.4.egg/turbogears/controllers.py",
line 242, in newfunc
html, fragment, *args, **kw)
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a0dev_r459-py2.4.egg/turbogears/database.py",
line 189, in run_with_transaction
retval = func(*args, **kw)
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a0dev_r459-py2.4.egg/turbogears/controllers.py",
line 262, in _execute_func
return _process_output(tg_format, output, html, fragment)
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a0dev_r459-py2.4.egg/turbogears/controllers.py",
line 64, in _process_output
output = view.render(output, tg_format, template=template,fragment=fragment)
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a0dev_r459-py2.4.egg/turbogears/view.py",
line 57, in render
return engine.render(info, format, fragment, template)
File
"/usr/lib/python2.4/site-packages/TurboCheetah-0.9.3-py2.4.egg/turbocheetah/cheetahsupport.py",
line 68, in render
tclass = self.load_template(template)
File
"/usr/lib/python2.4/site-packages/TurboCheetah-0.9.3-py2.4.egg/turbocheetah/cheetahsupport.py",
line 61, in load_template
tfile, classname)
File
"/usr/lib/python2.4/site-packages/TurboCheetah-0.9.3-py2.4.egg/turbocheetah/cheetahsupport.py",
line 14, in _recompile_template
exec(code, ns)
File "<string>", line 29, in ?
ImportError: No module named master