Thanks for the help!

This is getting really weird, because:
If I modify the code like this (http://appengine.pastebin.com/
gTjzcfNK), i.e. placing a print statement before the actual statement
I would like to see (no results/results) it works! However, the first
print 'just a string' doesn't show. So somehow it looks like the first
statement is not being printed for some reason, but everything after
that works fine.

I have no clue why this happens, any help would be very much
appreciated.

Thanks in advance,
Evert

On 21 mei, 05:40, Tim Hoffman <[email protected]> wrote:
> Except the OP problem is he is not getting a reponse back at the
> browser, so
> a log won't help him prove the simplest case is working, other than
> logging is working.
>
> I think his setup is probably wrong, ie trying to print inside a
> WSGIHandler when he should be using self.response.write
> or somthing like that.
>
> T
>
> On May 21, 11:24 am, Robert Kluin <[email protected]> wrote:
>
>
>
>
>
> > Even better than print or writing to output, use logging:
>
> > import logging as log
> > log.info('this is some handy stuff to know.')
>
> > Robert
>
> > On Thu, May 20, 2010 at 11:07 AM, Tim Hoffman <[email protected]> wrote:
> > > HI
>
> > > Just had a look at the tutorials
>
> > > Thedatastoreaccess tutorial is shown using
>
> > > self.response.out.write rather than print.
>
> > > If you have your app.yaml and python script setup as the helloworld
> > > example then print should work (I have never seen exit() required)
>
> > > But if you are using webapp then print won't work.
>
> > > You probably need to provide a little more information about how your
> > > environment is set up.
>
> > > T
>
> > > On May 20, 12:17 am, Evert <[email protected]> wrote:
> > >> Hi,
>
> > >> We are having some problems getting data from thedatastore. A simple
> > >> check for results (an if/else statement) results in an empty page. We
> > >> think this shouldn't be happening because at least something should be
> > >> displayed because we used an else statement.
>
> > >> Our code is herehttp://appengine.pastebin.com/c3AKUu8J. It's coming
> > >> straight from theDatastoretutorial samples, but it could be we are
> > >> doing something wrong here..
>
> > >> Thanks in advance,
> > >> Evert
>
> > >> --
> > >> You received this message because you are subscribed to the Google 
> > >> Groups "Google App Engine" group.
> > >> To post to this group, send email to [email protected].
> > >> To unsubscribe from this group, send email to 
> > >> [email protected].
> > >> For more options, visit this group 
> > >> athttp://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 [email protected].
> > > To unsubscribe from this group, send email to 
> > > [email protected].
> > > For more options, visit this group 
> > > athttp://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 [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to