results_type is always list.
self.response.out.write can accept a string object, so you need
self.response.out.write(str(results_type))

----------
keakon


On Sat, Nov 13, 2010 at 8:10 PM, Wim den Ouden <wdenou...@gmail.com> wrote:

> Hi Zeynel,
> Why do you use type(results)?
> why not simple results_type = results
> gr
> wim
>
> On Sat, Nov 13, 2010 at 6:34 AM, Zeynel <azeyn...@gmail.com> wrote:
> > Hello,
> >
> > I am doing a lot of testing at this stage of learning App Engine but I
> > am having some problems printing something like this:
> > ...
> > ...
> > results = query.fetch(10)
> >
> > results_type = type(results)
> > self.response.out.write(results_type)
> >
> > prints nothing (and no error message).
> >
> > If I do
> >
> > self.response.out.write(results)
> >
> > it prints the content of the results.
> >
> > How do you use the development server to debug? Thanks.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com>
> .
> > For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
> >
> >
>
>
>
> --
> gr
> wdo
>
> Demo free E-business: https://e-comm.appspot.com
> Wim den Ouden Google App Engine (cloud)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to