Lines Matching refs:out
70 def print_intent(out, id, i, cell): argument
72 out.write("""<span class="intent" title="%s">shortcut</span>""" % (
77 def print_icon(out, id, i, cell): argument
80 out.write("""<img style="width: 3em; height: 3em;" src="%s">""" % ( icon_fn ))
85 def print_icon_type(out, id, i, cell): argument
87 out.write("Application (%d)" % cell)
89 out.write("Shortcut (%d)" % cell)
91 out.write("Folder (%d)" % cell)
93 out.write("Widget (%d)" % cell)
95 out.write("%d" % cell)
97 def print_cell(out, id, i, cell): argument
99 out.write(cgi.escape(unicode(cell)))
107 def render_cell_info(out, cell, occupied): argument
109 out.write(" <td width=%d height=%d></td>\n" %
123 out.write((" <td colspan=%d rowspan=%d width=%d height=%d"
130 out.write("""<img style="width: 4em; height: 4em;" src="icon_%d.png">\n""" % ( cell["_id"] ))
131 out.write("<br/>\n")
132 out.write(cgi.escape(cell["title"]) + " <br/><i>(app)</i>")
134 out.write("""<img style="width: 4em; height: 4em;" src="icon_%d.png">\n""" % ( cell["_id"] ))
135 out.write("<br/>\n")
136 out.write(cgi.escape(cell["title"]) + " <br/><i>(shortcut)</i>")
138 out.write("""<i>folder</i>""")
140 out.write("<i>widget %d</i><br/>\n" % cell["appWidgetId"])
142 out.write("<b>unknown type: %d</b>" % itemType)
143 out.write("</td>\n")
145 def render_screen_info(out, screen): argument
146 out.write("<tr>")
147 out.write("<td>%s</td>" % (screen["_id"]))
148 out.write("<td>%s</td>" % (screen["screenRank"]))
149 out.write("</tr>")
180 out = codecs.open(INDEX_FILE, encoding="utf-8", mode="w")
181 out.write("""<html>
193 out.write("<b>Favorites table</b><br/>\n")
194 out.write("""<html>
203 out.write(""" <th>%s</th>
205 out.write("""
210 out.write("""<tr>
215 out.write(""" <td>""")
216 print_functions[i](out, row[0], row, cell)
217 out.write("""</td>
219 out.write("""</tr>
221 out.write("""</table>
225 out.write("<br/><b>Screens</b><br/>\n")
226 out.write("<table class=layout border=1 cellspacing=0 cellpadding=4>\n")
227 out.write("<tr><td>Screen ID</td><td>Rank</td></tr>\n")
229 render_screen_info(out, screen)
230 out.write("</table>\n")
241 out.write("<br/><b>Hotseat</b><br/>\n")
242 out.write("<table class=layout border=1 cellspacing=0 cellpadding=4>\n")
244 render_cell_info(out, cell, None)
245 out.write("</table>\n")
273 out.write("<br/><b>Screen %d</b><br/>\n" % i)
274 out.write("<table class=layout border=1 cellspacing=0 cellpadding=4>\n")
276 out.write(" <tr>\n")
278 render_cell_info(out, cell, occupied)
279 out.write("</tr>\n")
280 out.write("</table>\n")
283 out.write("""
288 out.close()