Hi,
I'm having a very strange TG problem. The problem manifests itself
somewhat randomly; the error messages seem to alternate between the
below, this one (http://groups.google.com/group/turbogears/browse_frm/
thread/2704d1ef2faf4e1f/3b5b74d075d4e5bf?lnk=gst&q=tclass+%3D
+mod.template&rnum=2#3b5b74d075d4e5bf), and no errors. The page used
to work fine, and I just added some new HTML div and span elements
into KID and all of sudden I have these errors. I'm not able to edit
the page without causing these errors, though if I revert back to base
it always works.
I'm not sure what is going wrong? My templating is correct, as is the
master.kid paths and all variables passed into the KID page.
----------------------------
Page handler: <bound method Root.index of
<PROJECTNAME.controllers.Root object at 0x245ed70>>
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/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-packages/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 index
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/turbogears/
controllers.py", line 334, in expose
output = database.run_with_transaction(
File "<string>", line 5, in run_with_transaction
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/turbogears/
database.py", line 352, in sa_rwt
retval = dispatch_exception(e,args,kw)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/turbogears/
database.py", line 341, in sa_rwt
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/turbogears/
controllers.py", line 351, in <lambda>
mapping, fragment, args, kw)))
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/turbogears/
controllers.py", line 391, 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-packages/TurboGears-1.0.1-py2.4.egg/turbogears/
controllers.py", line 82, in _process_output
fragment=fragment)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/TurboGears-1.0.1-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-packages/TurboKid-0.9.9-py2.4.egg/turbokid/
kidsupport.py", line 158, in render
tclass = self.load_template(template)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/TurboKid-0.9.9-py2.4.egg/turbokid/
kidsupport.py", line 118, in load_template
tfile, classname)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/TurboKid-0.9.9-py2.4.egg/turbokid/
kidsupport.py", line 15, in _compile_template
mod = kid.load_template(tfile, name=classname)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/kid-0.9.5-py2.4.egg/kid/__init__.py", line
158, in load_template
store=cache, ns=ns, exec_module=exec_module)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/kid-0.9.5-py2.4.egg/kid/importer.py", line
144, in _create_module
raise_template_error(module=name, filename=filename)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/kid-0.9.5-py2.4.egg/kid/importer.py", line
141, in _create_module
exec code in mod.__dict__
File "/Users/WULABS/Sites/PROJECTNAME/PROJECTNAME/templates/
index.py", line 20, in ?
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/kid-0.9.5-py2.4.egg/kid/template_util.py",
line 123, in base_class_extends
raise TemplateExtendsError((str(e)
TemplateExtendsError: Could not open '/Users/WULABS/Sites/PROJECTNAME/
PROJECTNAME/templates/master.kid'
Template file "'master.kid'" not found
while processing extends="'master.kid'"
Error location in template file '/Users/WULABS/Sites/PROJECTNAME/
PROJECTNAME/templates/index.kid'
between line 27, column 79 and line 28, column 1:
... </script>
------------------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---