[Cheetahtemplate-discuss] Some Bugs
Brought to you by:
rtyler,
tavis_rudd
From: Ernesto R. <ae...@re...> - 2002-04-28 16:58:54
|
Dear all, I could find the following bugs with Cheetah 0.9.12, under Windows 2K: First: whenver I start 'cheetah test' from a root directory under Windows 2000. (Cheetah is not in Python Path, but python and cheetah.py are in Path, and Cheetah (inside Webware) also.) I've installed Cheetah on P:\Webware\Cheetah, and Python21 on P:\Python21. Fails for C:\ or P:\ but works for C:\<somedir> and P:\<somedir> . Test: ********************************************************************** ERROR Cheetah.Tests.SyntaxAndOutput.ImportDirective_MacEOL.test10 (#import os.pa th -- use it with NameMapper turned off) ---------------------------------------------------------------------- Traceback (most recent call last): File "p:\python21\Webware\Cheetah\Tests\SyntaxAndOutput.py", line 1772, in test10 File "p:\python21\Webware\Cheetah\Tests\SyntaxAndOutput.py", line 139, in verify File "p:\python21\Webware\Cheetah\Tests\SyntaxAndOutput.py", line 147, in _gen File "p:\python21\Webware\Cheetah\Template.py", line 193, in __init__ File "p:\python21\Webware\Cheetah\Template.py", line 224, in compile File "p:\python21\Webware\Cheetah\Compiler.py", line 1060, in compile File "p:\python21\Webware\Cheetah\Parser.py", line 1031, in parse File "p:\python21\Webware\Cheetah\Parser.py", line 1146, in eatDirective File "p:\python21\Webware\Cheetah\Parser.py", line 1414, in eatImport File "p:\python21\Webware\Cheetah\Template.py", line 427, in _importAsDummyModule File "p:\python21\Webware\Cheetah\Template.py", line 455, in _makeDummyPackageForDir File "p:\python21\Webware\Cheetah\Template.py", line 498, in _importModuleFromDirectory NameError: Can't find file for module (filename P:\) Second: the #errorCatcher directive returns the following error: from Cheetah.Template import Template >>> templ=Template(''' ... #errorCatcher ErrorCatcher ... $something ... ''') Traceback (most recent call last): File "<interactive input>", line 1, in ? File "p:\python21\Webware\Cheetah\Template.py", line 193, in __init__ File "p:\python21\Webware\Cheetah\Template.py", line 224, in compile File "p:\webware\Cheetah\Compiler.py", line 1060, in compile self.parse() File "p:\python21\Webware\Cheetah\Parser.py", line 1029, in parse File "p:\python21\Webware\Cheetah\Parser.py", line 1117, in eatPlaceholder File "p:\webware\Cheetah\Compiler.py", line 828, in addErrorCatcher catcherMeth.addMethDocString('Generated from ' + rawCode + TypeError: cannot add type "tuple" to string Of 'cause, this goes away if I convert the expressions explicitly to strings: catcherMeth.addMethDocString('Generated from ' + `rawCode` + ' at line, col ' + `lineCol` + '.') Still I'm not subscribed to the list. So CC to me. Regards, Erny |