A patch for phone_features.py
"Jerad Clark" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <[email protected]> |
The html being generated was pretty bad, this patch cleans it up considerably. Jerad ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ BitPim-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bitpim-devel
patch-phone_features.txt
(text/plain, 1.4 KB)
Index: C:/projects2/bitpim/help/phone_features.py
===================================================================
--- C:/projects2/bitpim/help/phone_features.py (revision 3482)
+++ C:/projects2/bitpim/help/phone_features.py (working copy)
@@ -67,10 +67,11 @@
return r
def html_results(r):
- print '<table cellpadding=5 cellspacing=5 border=1>'
- print '<tr><th>'
+ print '<table cellpadding="5" cellspacing="5" border="1">'
+ print '<tr>'
+ print '<th> </th>'
for n in features+misc_features:
- print '<th>%s'%n.replace('_', ' ').upper()
+ print '<th>%s</th>'%n.replace('_', ' ').upper()
print '</tr>'
keys=r.keys()
keys.sort()
@@ -79,14 +80,17 @@
x_flg={ True: 'X', False: '' }
for k in keys:
n=r[k]
- print '<tr><th>%s'%k
+ print '<tr align="center">'
+ print '<th>%s</th>'%k
for f in features+misc_features:
+ print '<td>',
if n[f].get('r', False) or n[f].get('w', False):
- print '<td align=center>%s %s'%(r_flg[n[f]['r']], w_flg[n[f]['w']])
+ print '%s %s'%(r_flg[n[f]['r']], w_flg[n[f]['w']]),
elif n[f].get('x', False):
- print '<td align=center>X'
+ print 'X',
else:
- print '<td align=center> '
+ print ' ',
+ print '</td>'
print '</tr>'
print '</table>'