On Dec 3, 11:25 pm, Robert Kluin <[email protected]> wrote:
> When the main page renders, it will include something like: <img
> src='img?img_id=asdnmmfd2fdg32d390dsf4gf3gg2'></img>.
Hello Robert:
Thanks for the answer. Unfortunately, I still fail to understand what
is going on here. This line
<img src='img?img_id=asdnmmfd2fdg32d390dsf4gf3gg2'></img>
must be this line
self.response.out.write("<div><img src='img?img_id=%s'></img>" %
greeting.key())
when
greeting.key() is substituted. Correct?
How does app engine know to get the key for greeting.avatar? greeting
is defined as one row in the Greeting table fetched by the query. I
think that key() is associated with a stored entity not with the query
object. My apologies for being so confused.
And I don't understand the order. As far as understand, the image is
rendered by this line
self.response.out.write("<div><img src='img?img_id=%s'></img>" %
greeting.key())
if so, why is the key sent to Image handler after the image is
rendered?
--
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.