... just found what caused the error in master.kid - there were some funky chars which Coda had somehow added to the file ... not visible in Coda, but I found them in ViM (I don't know why I keep trying other editors - I should just stick with what works lol). But the error message was misleading none the less ... maybe this is more of a CherryPy issue, though?
Cheers, C On Oct 19, 8:12 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi all, > > I just had the problem that I'd messed up my master.kid, but when I > tried to call a page using a template which extends from that I get > the error message that master.kid can't be found - not that it has > errors in - is there any way of seeing the error message? > > Cheers, > C > > PS: here's what I see in the console: > > 2008-10-19 20:11:32,258 cherrypy.msg INFO HTTP: Page handler: <bound > method Root.index of <doublesweb.controllers.Root object at > 0x146c3b0>> > Traceback (most recent call last): > File "/Library/Python/2.5/site-packages/CherryPy-2.3.0-py2.5.egg/ > cherrypy/_cphttptools.py", line 121, in _run > self.main() > File "/Library/Python/2.5/site-packages/CherryPy-2.3.0-py2.5.egg/ > cherrypy/_cphttptools.py", line 264, in main > body = page_handler(*virtual_path, **self.params) > File "<string>", line 3, in index > File "/Library/Python/2.5/site-packages/TurboGears-1.0.7-py2.5.egg/ > turbogears/controllers.py", line 360, in expose > *args, **kw) > File "<string>", line 5, in run_with_transaction > File "/Library/Python/2.5/site-packages/TurboGears-1.0.7-py2.5.egg/ > turbogears/database.py", line 359, in so_rwt > retval = func(*args, **kw) > File "<string>", line 5, in _expose > File "/Library/Python/2.5/site-packages/TurboGears-1.0.7-py2.5.egg/ > turbogears/controllers.py", line 373, in <lambda> > mapping, fragment, args, kw))) > File "/Library/Python/2.5/site-packages/TurboGears-1.0.7-py2.5.egg/ > turbogears/controllers.py", line 423, in _execute_func > return _process_output(output, template, format, content_type, > mapping, fragment) > File "/Library/Python/2.5/site-packages/TurboGears-1.0.7-py2.5.egg/ > turbogears/controllers.py", line 88, in _process_output > fragment=fragment) > File "/Library/Python/2.5/site-packages/TurboGears-1.0.7-py2.5.egg/ > turbogears/view/base.py", line 161, in render > return engine.render(**kw) > File "/Library/Python/2.5/site-packages/TurboKid-1.0.4-py2.5.egg/ > turbokid/kidsupport.py", line 182, in render > tclass = self.load_template(template) > File "/Library/Python/2.5/site-packages/TurboKid-1.0.4-py2.5.egg/ > turbokid/kidsupport.py", line 139, in load_template > package, basename, tfile, classname) > File "/Library/Python/2.5/site-packages/TurboKid-1.0.4-py2.5.egg/ > turbokid/kidsupport.py", line 16, in _compile_template > mod = kid.load_template(tfile, name=classname) > File "/Library/Python/2.5/site-packages/kid-0.9.6-py2.5.egg/kid/ > __init__.py", line 160, in load_template > store=cache, ns=ns, exec_module=exec_module) > File "/Library/Python/2.5/site-packages/kid-0.9.6-py2.5.egg/kid/ > importer.py", line 147, in _create_module > raise_template_error(module=name, filename=filename) > File "/Library/Python/2.5/site-packages/kid-0.9.6-py2.5.egg/kid/ > importer.py", line 143, in _create_module > exec code in mod.__dict__ > File "/Users/clive/projects/DoublesWeb/doublesweb/doublesweb/ > templates/welcome.py", line 20, in <module> > File "/Library/Python/2.5/site-packages/kid-0.9.6-py2.5.egg/kid/ > template_util.py", line 127, in base_class_extends > % (all_extends or extends)).lstrip()) > TemplateExtendsError: Could not open '/Users/clive/projects/DoublesWeb/ > doublesweb/doublesweb/templates/master.kid' > Template file "'master.kid'" not found > while processing extends="'master.kid'" > Error location in template file '/Users/clive/projects/DoublesWeb/ > doublesweb/doublesweb/templates/welcome.kid' > on line 1 after column 120: > ... > > Request Headers: > COOKIE: session_id=b48f4dd3e073f6e3e1778c2f8066bf7d5a663f50; tg- > visit=08d118486b9aab726d29d59d2059c1b4683a4abc > Content-Length: > USER-AGENT: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) > AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1 > CONNECTION: keep-alive > HOST: localhost:8080 > ACCEPT: text/xml,application/xml,application/xhtml+xml,text/ > html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 > Remote-Addr: ::1 > ACCEPT-LANGUAGE: en-us > Content-Type: > ACCEPT-ENCODING: gzip, deflate > - - "GET / HTTP/1.1" 500 3871 "" "Mozilla/5.0 (Macintosh; U; Intel > Mac OS X 10_5_5; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/ > 3.1.2 Safari/525.20.1" --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

