[Cheetahtemplate-discuss] placeholder bug?
Brought to you by:
rtyler,
tavis_rudd
From: Greg C. <gre...@ya...> - 2002-09-24 21:50:54
|
It seems that section 4.2 of userguide allows this syntax: print Template(source="""\ #set $a = [0] #set $b = [${a[0]}] """) but Cheetah-0.9.14 doesn't like the second line: Traceback (most recent call last): File "test.py", line 4, in ? print Template(source="""\ File "Cheetah\Template.py", line 210, in __init__ self.compile(source, file) File "Cheetah\Template.py", line 241, in compile compiler.compile() File "Cheetah\Compiler.py", line 1068, in compile self.parse() File "Cheetah\Parser.py", line 1036, in parse self.eatDirective() File "Cheetah\Parser.py", line 1151, in eatDirective self.directiveEaters[directiveKey]() File "Cheetah\Parser.py", line 1570, in eatSet RVALUE = self.getExpression() File "Cheetah\Parser.py", line 934, in getExpression token = self.getCheetahVar() File "Cheetah\Parser.py", line 635, in getCheetahVar return self.getCheetahVarBody(plain=plain) File "Cheetah\Parser.py", line 638, in getCheetahVarBody return self.genCheetahVar(self.getCheetahVarNameChunks(), plain=plain) File "Cheetah\Compiler.py", line 111, in genCheetahVar return self.genNameMapperVar(nameChunks) File "Cheetah\Compiler.py", line 165, in genNameMapperVar chunk = nameChunks.pop() IndexError: pop from empty list Regards, --Greg Czajkowski __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com |