Well yes. I guess. Its from the URL used in the webpage
so this snippet of html <img src="/image?title=matrix"> would show the matrix image. But if the html contained <img src="/image?title=jaws"> Then a different iamge would be displayed. ... There are many and varied ways such html could be generated. On 19 January 2011 20:28, Zeynel <[email protected]> wrote: > Sorry, I am confused about how the title=matrix got to the url. > > I am looking at the entire script here > > http://code.google.com/p/google-app-engine-samples/source/browse/trunk/muvmuv/main.py > ; > line 130 has this; maybe it is related? > > json_obj['movie']['pic'] = 'image?' + urllib.urlencode({'title': > movie.title}) > > > On Jan 19, 9:55 am, Barry Hunter <[email protected]> wrote: > > the code does > > > > title = self.request.get('title') > > > > movie = getMovie(title) > > > > which retrieves it from via the web app framework. > > > > The example url, shows an examplehttp://mydomain.com/image?title=matrix > > > > so in that case the title 'matrix' would be passed to the getMovie > > function. > > > > On 19 January 2011 13:52, Zeynel <[email protected]> wrote: > > > > > > > > > > > > > > > > > I am reading the Serving Dynamic Images article > > > > >http://code.google.com/appengine/articles/python/serving_dynamic_imag. > .. > > > > > It's straighforward but on the Retrieving and Displaying Images > > > section he has the GetImage handler and he writes that "The first > > > thing the request handler does is retrieve the value of "title" from > > > the URL paramater." > > > > > Where is the URL parameter? > > > > > -- > > > 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]<google-appengine%[email protected]><google-appengine%2Bunsubscrib > [email protected]> > > > . > > > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > 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 [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.
