python - Serving up snippets of html and using urlfetch -


i'm trying "modularize" section of appengine website profile requested small hunk of pre-rendered html

sending request /userinfo?id=4992 sends down html like:

     <div>     (image of john) john     information user     </div> 

so, google appengine code, need able repeatedly fetch results url when displaying group of people.

the way can send down collection of <iframes> like

     <iframe src="/userinfo?id=4992"></iframe>     <iframe src="/userinfo?id=4993"></iframe>     <iframe src="/userinfo?id=4994"></iframe> 

the iframes work request data.

i tried using urlfetch.fetch() keeps timing out on me.

am doing right? thought handy-dandy (url serves snippet of html) turns out looking design error.

you're serializing urlfetch requests, ends summing wait times , may push beyond latency deadline. i'm afraid you'll need switch async urlfetch requests -- advanced technique may suit architecture better!


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -