David,

I haven't tried reloadbases just yet, but here a hack I use to
recompile a template. Without it, Kid just returns already loaded
module nor does it (or TurboKid) make any checks to see if the file has
actually changed.


Index: __init__.py
===================================================================
--- __init__.py (revision 265)
+++ __init__.py (working copy)
@@ -113,8 +113,8 @@
                 filename, ', '.join(path.paths))
         filename = abs_filename
         name = importer.get_template_name(name, filename)
-        if sys.modules.has_key(name):
-            return sys.modules.get(name)
+#        if sys.modules.has_key(name):
+#            return sys.modules.get(name)
     import kid.compiler as compiler
     if filename == '<string>':
         code = compiler.compile(fo, filename, encoding)

Reply via email to