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 #1316 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

KeyError on page reload

Reported by: SHelmberger Owned by: anonymous
Priority: normal Milestone: 1.0.3
Component: Kid Version: 1.0.1
Severity: normal Keywords:
Cc:

Description

I tried to update my blog site to Turbogears 1.01 and get a

Page handler: <bound method Root.index of <ffwde.controllers.root.Root object at 0xb78867ac>>
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py", line 105, in _run
    self.main()
  File "/usr/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 "/usr/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 "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/turbogears/database.py", line 302, in so_rwt
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/turbogears/controllers.py", line 351, in <lambda>
    mapping, fragment, args, kw)))
  File "/usr/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 "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/turbogears/controllers.py", line 82, in _process_output
    fragment=fragment)
  File "/usr/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 "/usr/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/lib/python2.4/site-packages/TurboKid-0.9.9-py2.4.egg/turbokid/kidsupport.py", line 102, in load_template
    if ct[module] != mtime:
KeyError: 'kid.util.template_62a4daf7'

when reloading a page. adding a "ct.has_key(module) and " seems to solve the issue. Reloading still works after that.

Change History

comment:1 Changed 12 years ago by alberto

Maybe this is related to the upgrade to Kid 0.9.5.... Anyone else experienced this?

Alberto

comment:2 Changed 12 years ago by alberto

  • Milestone changed from 1.0.2 to 1.0.3

comment:3 Changed 12 years ago by faide

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

/me thinks you should try to upgrade your application to TG 1.0.2.2 because a lot of effort was put into kid template reloading in the 1.0.2 release.

Don't hesitate to re-open if the problem persit (without your work around).

Closing this ticket for the moment.

Note: See TracTickets for help on using tickets.