I'm wondering if it's possible to create a template that doesn't
affect sys.modules? I'm working on a program where I compile some
KID templates from source strings, e.g.
t = kid.Template('<html><body>${myvar}</body></html>')
t.myvar = x
result = t.serialize()
The problem is that this is also using CherryPy. When using CherryPy
in development mode, it watches sys.modules and restarts the process
when any modules change. Since Kid is registering my template as a
module, this is triggering the autorestart.
Is there any way to make a Kid template that is not registered in
sys.modules?
-winston
p.s. For the future, I'm wondering if the import magic that kid does
should not be a separate piece so you can create template objects
that don't have side effects like this.
______________________________________________________
winston wolff - (646) 827-2242 - http://www.stratolab.com
learning by creating - video game courses for kids in new york
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
kid-template-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss