Re: [Tutor] cheetah is extremely hard to debug - error messages are non indicative TypeError: cannot concatenate 'str' and 'int' objects

2009-05-14 Thread mobiledreamers
Cheetah is usually not run from ipython! On Thu, May 14, 2009 at 12:40 PM, Kent Johnson wrote: > On Thu, May 14, 2009 at 3:20 PM, wrote: > > How do i find which variable has error in these error messages? > > Generally by looking at the last source line in the traceback you can > figure it out

Re: [Tutor] cheetah is extremely hard to debug -error messages are non indicative TypeError: cannotconcatenate 'str' and 'int' objects

2009-05-14 Thread Alan Gauld
wrote How do i find which variable has error in these error messages? *Nonetype object is unsubscriptable* You need to send the entire error message, the last line is not much good without the context. But you should see a line in the traceback where a subscript aka indexing) operation is

Re: [Tutor] cheetah is extremely hard to debug - error messages are non indicative TypeError: cannot concatenate 'str' and 'int' objects

2009-05-14 Thread Kent Johnson
On Thu, May 14, 2009 at 3:20 PM, wrote: > How do i find which variable has error in these error messages? Generally by looking at the last source line in the traceback you can figure it out. IPython has an extended traceback mode that shows variables (see the xmode magic command) http://ipython

[Tutor] cheetah is extremely hard to debug - error messages are non indicative TypeError: cannot concatenate 'str' and 'int' objects

2009-05-14 Thread mobiledreamers
How do i find which variable has error in these error messages? *Nonetype object is unsubscriptable* else:return web.render('searchesnew.html') File "/home/mark/work/common/web/cheetah.py", line 103, in render return str(compiled_tmpl) File "/usr/lib/python2.5/site-packages/Cheetah-2.0.1

[Tutor] Cheetah

2006-04-26 Thread Mike Hansen
I'm having a little trouble populating a cheetah template. I thought I'd ask here first before checking the cheetah mailing list or c.l.p. I have a simple template This is a test $title #for $item in $items category: $item.category name: $item.name price: $item.pric