Overriding getFileContents()

Andreas Kahler <[email protected]> Mon, 8 Mar 2010 19:49:59 +0100
Newsgroups gmane.comp.python.cheetah
Message-ID <[email protected]>
Hi!

I have a use case where I want to store my Cheetah templates in a
database instead of the file system.
I thought that would be possible by overriding the getFileContents method.
I got it working for #import raw directives, but it doesn't work for
#import (without raw).
Is this a bug or am I missing something?
Also, can you use #extend together with getFileContents?

Best regards,
Andreas

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev