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

Opened 13 years ago

Last modified 11 years ago

Widgets created outside of turbogears.widgets with templates cause CherryPy to crash

Reported by: anonymous Owned by: anonymous
Priority: normal Milestone:
Component: TG Widgets Version:
Severity: normal Keywords:
Cc:

Description

The widget has to have a < in the template, so it has to do with kid compiling of it.

The error output repeats forever like this:

2005/11/21 09:57:07 HTTP INFO SystemExit raised: shutting down autoreloader
2005/11/21 09:57:07 HTTP INFO CherryPy shut down
2005/11/21 09:57:09 HTTP INFO SystemExit raised: shutting down autoreloader
2005/11/21 09:57:09 HTTP INFO CherryPy shut down
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:
2005/11/21 09:57:11 HTTP INFO SystemExit raised: shutting down autoreloader
2005/11/21 09:57:11 HTTP INFO CherryPy shut down
2005/11/21 09:57:12 HTTP INFO SystemExit raised: shutting down autoreloader
2005/11/21 09:57:12 HTTP INFO CherryPy shut down
Unhandled exception in thread started by
Error in sys.excepthook:

When you disable the autoreloader, the problem goes away.

Change History

comment:1 Changed 13 years ago by michele

Sometimes ago there was a post in the google group talking about Kid and the "<" but I can't find it. :-(

comment:2 Changed 13 years ago by jchu@…

In this case, having a < means that the widget's template will be compiled by kid and stored in the class. Check the MetaWidget? and Widget code.

comment:3 Changed 13 years ago by dstanek

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

Fixed in [422]. Widgets outside of turbogears.widgets have the module.file set to "<string>". But why...

Note: See TracTickets for help on using tickets.