In order to have two distinct styles, for small mobile browser screens,
and for regular screens, I have two variants of a turbogears kid template.
I have myPage.kid and myPageSmall.kid, and I have them extend
a master.kid (which extends sitetemplate) and a masterSmall.kid (which
also extends sitetemplate.kid).
The master.kid variants are currently identical with the exception of
referring to a different css file.
Upon trying to load the second of these (myPageSmall) into a web
browser, I get the
following error in the framework code. Anyone know what's up?
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py",
line 105, in _run
self.main()
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py",
line 254, in main
body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in ballotSmall
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboGears-0.9a6-py2.4.egg/turbogears/controllers.py",
line 273, in expose
output = database.run_with_transaction(
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboGears-0.9a6-py2.4.egg/turbogears/database.py",
line 221, in run_with_transaction
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboGears-0.9a6-py2.4.egg/turbogears/controllers.py",
line 290, in <lambda>
mapping, fragment, *args, **kw)))
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboGears-0.9a6-py2.4.egg/turbogears/controllers.py",
line 324, in _execute_func
return _process_output(output, template, format, content_type,
mapping, fragment)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboGears-0.9a6-py2.4.egg/turbogears/controllers.py",
line 65, in _process_output
fragment=fragment)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboGears-0.9a6-py2.4.egg/turbogears/view/base.py",
line 131, in render
return engine.render(**kw)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboKid-0.9.5-py2.4.egg/turbokid/kidsupport.py",
line 140, in render
tclass = self.load_template(template)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboKid-0.9.5-py2.4.egg/turbokid/kidsupport.py",
line 84, in load_template
if ct[module] != mtime:
KeyError: 'kid.util.template_0xBB936AFEL'