python - Why does my image not appear? -


hi wonder why image doesn't appear. think stored both blobproperty , in blobstore since appears thumbnail on list page. address page image doesn't appear http://www.koolbusiness.com/servead/4125209

and thumbnail same image appears in list http://www.koolbusiness.com/li

some of template code display image is:

{% if ad.matched_images.get %} <table><tr>         <td>              <div class="ad_pict" id="display_image"><img src="{{url}}" alt="" onload="show_hidden_elements();return false;"></div>         </td> <td>  {% ifequal len 1 %} {% else %}           {% im in imv %}              <div id="thumb0" class="ad_thumb ad_border_solid_black" onclick="showlargeimage('{{im}}');thumbnailborder(this, 5 )">                 <table class="clean_table shadowed_thumb" cellpadding="0" cellspacing="0">                     <tbody>                         <tr>                             <td><img src="/_/img/thumb_left_top.gif"></td>                             <td class="top_middle" align="left" valign="bottom"></td>                             <td></td>                         </tr>                         <tr>                             <td class="middle_left"></td>                             <td><img src="{{im}}=s120" alt="">  </td>                             <td class="single_middle_right" valign="top"><img src="/_/img/thumb_single_right_top.gif"></td>                         </tr>                          <tr>                             <td></td>                             <td class="single_bottom_center" valign="top"><img src="/_/img/thumb_single_left_bottom.gif"></td>                             <td valign="top"><img src="/_/img/thumb_single_right_bottom.gif"></td>                         </tr>                     </tbody>                 </table>             </div>              {% endfor %}  {% endifequal %} 

ans som eof serverside python load template is:

class adhandler(i18nhandler):     def get(self, id):         ad = ad.get_by_id(long(id))         if not ad:             self.error(404)             return         image = ad.matched_images.get()         url=''         if image:             if image.primary_image:                 url = images.get_serving_url(str(image.primary_image.key()))          imv = []         table=''         in ad.matched_images:             if i.primary_image:               i1=images.get_serving_url(str(i.primary_image.key()))               imv.append(i1)          self.render_template("imageinfo.html", {'url':url,         'imv':imv,'len':len(imv),         'ad':ad,         'image': image,         'logout_url': users.create_logout_url('/'),     }) 

if use old version of page image appear it's clear have in database, i've written bug , need structure migration blobproperty blobstore: http://www.koolbusiness.com/4125209

since image appears @ later url know it's there , it's bug in code somewhere can't reproduce makes image not appear. help

i guess 1 of these 2 if statements evaluating false:

    if image:         if image.primary_image:             url = images.get_serving_url(str(image.primary_image.key())) 

if calling get_serving_url, either valid serving url or exception. instead, url still has starting value, blank string.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -