[Cheetahtemplate-discuss] Second try - second question
Brought to you by:
rtyler,
tavis_rudd
From: matilda m. <ma...@gr...> - 2007-01-11 21:17:54
|
Hi all, first of all: Mike, thank you for answering so fast. Now I have the second problem and I couldn't find the answer in the documentation: Simple example: First file 'inner.tmpl' ------------------------------------------- == Start== #block text Some Text #end block == End == --------------------------------------------- Second file 'outer.tmpl' ---------------------------------------------- == Start== #block text Some Text #end block == End == ----------------------------------------------- Now I do: cheetah compile inner.tmpl -> OK chettah compile outer.tmpl -> OK python outer.py fill -> OK BUT: cheetah fill outer.tmpl -> ERROR ---------------------------------------------------------------- Filling outer.tmpl -> outer.html Traceback (most recent call last): File "/usr/bin/cheetah", line 3, in ? CheetahWrapper().main() File "/usr/lib/python2.4/site-packages/Cheetah/CheetahWrapper.py", line 183, in main meth() File "/usr/lib/python2.4/site-packages/Cheetah/CheetahWrapper.py", line 245, in fill self._compileOrFill() File "/usr/lib/python2.4/site-packages/Cheetah/CheetahWrapper.py", line 347, in _compileOrFill self._compileOrFillBundle(b) File "/usr/lib/python2.4/site-packages/Cheetah/CheetahWrapper.py", line 567, in _compileOrFillBundle tclass = TemplateClass.compile(file=src, compilerSettings=compilerSettings) File "/usr/lib/python2.4/site-packages/Cheetah/Template.py", line 776, in compile exec co in mod.__dict__ File "outer_tmpl.py", line 23, in ? File "/usr/lib/python2.4/site-packages/Cheetah/ImportManager.py", line 462, in importHook raise ImportError, "No module named %s" % fqname ImportError: No module named inner ------------------------------------------------------------------ Why that? I need help! :-) I hope I do not ask question three here... ;-) Thanks in advance Andreas |