Re: [Cheetahtemplate-discuss] Unhelpful traceback compiling expression
Brought to you by:
rtyler,
tavis_rudd
From: Tavis R. <ta...@re...> - 2006-06-21 23:50:28
|
Done. It's in the cvs now. Let me know if it works as expected. On Wednesday 21 June 2006 3:33 pm, Mike Orr wrote: > #if ${site_logic.has_search()} > > Produces a long traceback ending in: > > File > "/usr/local/lib/python2.4/Cheetah-2.0rc6-py2.4-linux-i686.egg/Cheetah/Parse >r.py", line 789, in getCheetahVar > return self.getCheetahVarBody(plain=plain) > File > "/usr/local/lib/python2.4/Cheetah-2.0rc6-py2.4-linux-i686.egg/Cheetah/Parse >r.py", line 793, in getCheetahVarBody > return self._compiler.genCheetahVar(self.getCheetahVarNameChunks(), > plain=plain) > File > "/usr/local/lib/python2.4/Cheetah-2.0rc6-py2.4-linux-i686.egg/Cheetah/Compi >ler.py", line 199, in genCheetahVar > if nameChunks[0][0] in self.setting('gettextTokens'): > IndexError: list index out of range > > It would be nice if the error message said, "You dummy, the long ${} > form can be used only with placeholders in the text, not in > expressions." |