Created
August 17, 2012 12:36
-
-
Save higs4281/3378487 to your computer and use it in GitHub Desktop.
widget string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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