(this is a posting reapplying information already contained in the
"mod_python +tg ->apache hangs on some requests" thread... sorry if the
duplication irks.)

If it is a problem with py:extends, you might try reversing out the
change to kid.template_util.py :: get_base_class, r.173, namely:
http://lesscode.org/projects/kid/changeset/173
36        #path = kid.path.find(thing, from_file) comment this line out
37        path = abspath(join(dirname(from_file), normpath(thing)))
#uncomment this line

There is a nasty infinite loop possible when looking up the "extends"
template. r.173 introduced a TemplatePath (in __init__.py - singleton
accessed via kid.path) which was written solely with unix in mind, and
certainly locks up in some cases when you start not from the tg-project
directory, and the tg-project is on a different harddrive than c:, but
there may be other instances.

two kid tickets which MIGHT be relevant (though they aren't toolbox
specific):
http://lesscode.org/projects/kid/ticket/111
http://lesscode.org/projects/kid/ticket/110

(it's worth noting there are only two "while 1:" clauses in the kid
codebase... this one is the best candidate for the problem, although
there are other clauses which can generate infinite loops).

Reply via email to