Cheetah is usually not run from ipython!
On Thu, May 14, 2009 at 12:40 PM, Kent Johnson <[email protected]> wrote:
> On Thu, May 14, 2009 at 3:20 PM, <[email protected]> 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.scipy.org/doc/stable/html/interactive/reference.html#magic-commands
>
> Kent
>
> >
> > 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-py2.5-linux-i686.egg/Cheetah/Template.py",
> > line 982, in __str__
> > def __str__(self): return getattr(self, mainMethName)()
> > File "<string>", line 323, in respond
> > TypeError: cannot concatenate 'str' and 'int' objects
> >
> >
> > --
> > Bidegg worlds best auction site
> > http://bidegg.com
> >
> > _______________________________________________
> > Tutor maillist - [email protected]
> > http://mail.python.org/mailman/listinfo/tutor
> >
> >
>
--
Bidegg worlds best auction site
http://bidegg.com
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Cheetahtemplate-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.