Skip to content

Instantly share code, notes, and snippets.

@higs4281
Created August 17, 2012 12:36
Show Gist options
  • Save higs4281/3378487 to your computer and use it in GitHub Desktop.
Save higs4281/3378487 to your computer and use it in GitHub Desktop.
widget string
prestring=['MugShotWidget2.serverResponse([\' <div class="ms_outer_container"><a href="http://www.tampabay.com/mugshots/" target="_blank"><img src="http://mugshots.s3.amazonaws.com/site-images/widget-header.gif" alt="Tampa Bay Mug Shots" /></a><div class="ms_toptext">Meet the latest eight people booked in Pinellas, Hillsborough, Manatee and Pasco counties.</div>']
poststring=[]
for each in mugs:
pair = "%s %s" % (each.first_name, each.last_name)
poststring.append('<a href="http://www.tampabay.com/mugshots/" target="_blank"><img class="ms_mug" src="%s" title="%s" alt="%s" /></a>' % (each.signed_photo, pair, pair))
for each in poststring:
prestring.append(each)
widget = "".join(prestring)+"\'])"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment