Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1278 (closed defect: wontfix)

Opened 12 years ago

Last modified 12 years ago

Master.kid template "missing" if tags are malformed

Reported by: eleddy Owned by: anonymous
Priority: low Milestone: 1.0.2
Component: Kid Version: 1.0
Severity: normal Keywords:
Cc:

Description

I was editing master.kid, from which many templates inherit, and added the following line:

   <link   type="text/css" 
            rel="stylesheet" 
            href="/static/javascript/yui/build/calendar/assets/calendar.css">

I didn't notice that the tag was not closed and received the error below, which states that the master.kid file does not exist. It was a very confusing error which had me running in circles trying to figure out how permissions on the file became different, etc, etc... Usually a malformed tag spits a "can't serialize" type exception.

I would suggest that the error message get updated so as not to send people on adventures for ghost bugs, as this seems like a pretty common mistake to make.

500 Internal error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Page handler: <bound method ViewWikiPage.newWikiPage of <semmc.controllers.ViewWikiPage instance at 0x2a9b55f488>>
Traceback (most recent call last):
  File "/usr/local/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py", line 105, in _run
    self.main()
  File "/usr/local/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 newWikiPage
  File "/usr/local/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/controllers.py", line 334, in expose
    output = database.run_with_transaction(
  File "<string>", line 5, in run_with_transaction
  File "/usr/local/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/database.py", line 260, in so_rwt
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File "/usr/local/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/controllers.py", line 351, in <lambda>
    mapping, fragment, args, kw)))
  File "/usr/local/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/controllers.py", line 391, in _execute_func
    return _process_output(output, template, format, content_type, mapping, fragment)
  File "/usr/local/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/controllers.py", line 82, in _process_output
    fragment=fragment)
  File "/usr/local/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/view/base.py", line 131, in render
    return engine.render(**kw)
  File "/usr/local/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 "/usr/local/lib/python2.4/site-packages/TurboKid-0.9.9-py2.4.egg/turbokid/kidsupport.py", line 128, in load_template
    mod = _compile_template(package, basename, tfile, classname)
  File "/usr/local/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 "/usr/local/lib/python2.4/site-packages/kid-0.9.4-py2.4.egg/kid/__init__.py", line 153, in load_template
    store=cache, ns=ns, exec_module=exec_module)
  File "/usr/local/lib/python2.4/site-packages/kid-0.9.4-py2.4.egg/kid/importer.py", line 133, in _create_module
    exec code in mod.__dict__
  File "/srv/turbogears/semmc/semmc/templates/rdf.py", line 18, in ?
  File "/usr/local/lib/python2.4/site-packages/kid-0.9.4-py2.4.egg/kid/template_util.py", line 121, in base_class_extends
TemplateExtendsError: Could not open '/srv/turbogears/semmc/semmc/templates/master.kid'
Template file "'master.kid'" not found
while processing extends="'master.kid'"

Change History

comment:1 Changed 12 years ago by eleddy

  • Summary changed from Master template load fails if html linked document does not exist to Master.kid template "missing" if tags are malformed

comment:2 follow-up: ↓ 3 Changed 12 years ago by tbradshaw

I think that this problem is just mostly indicative of how Kid errors work. The "solution" to this problem is to use Genshi, which has wicked accurate error messages.

If this is something that can be fixed, then I think this is probably a ticket that should be filed with the Kid project (if he's still working on it).

I suggest this bug is resolved with a "wontfix" or "invalid".

Thoughts?

comment:3 in reply to: ↑ 2 Changed 12 years ago by alberto

  • Status changed from new to closed
  • Resolution set to wontfix

Replying to tbradshaw:

I think that this problem is just mostly indicative of how Kid errors work. The "solution" to this problem is to use Genshi, which has wicked accurate error messages.

If this is something that can be fixed, then I think this is probably a ticket that should be filed with the Kid project (if he's still working on it).

I suggest this bug is resolved with a "wontfix" or "invalid".

Thoughts?

I agree. There's a better chance of this issue being resolved if this ticket is posted at Kid's Trac.

Closing as wontfix

Alberto

Note: See TracTickets for help on using tickets.