[Pcsclite-cvs-commit] r3441 - /website/matrix.py

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Apr 13 13:14:26 UTC 2009


Author: rousseau
Date: Mon Apr 13 13:14:26 2009
New Revision: 3441

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3441
Log:
add a features column

Modified:
    website/matrix.py

Modified: website/matrix.py
URL: http://svn.debian.org/wsvn/pcsclite/website/matrix.py?rev=3441&op=diff
==============================================================================
--- website/matrix.py (original)
+++ website/matrix.py Mon Apr 13 13:14:26 2009
@@ -218,7 +218,7 @@
             elif f == 'iManufacturer':
                 file.write('<td><a onmouseover="">%s<img src="%s"></td>' % (readers[r][f], "img/" + readers[r].get('image', "no_image.png")))
             else:
-                file.write("<td>%s</td>" % readers[r][f])
+                file.write("<td>%s</td>" % readers[r].get(f, ""))
         file.write('</tr>\n')
 
     file.write('</table>\n')
@@ -239,12 +239,12 @@
             'dwMaxDataRate', 'dwMaxIFSD', 'dwSynchProtocols',
             'dwMechanical', 'dwFeatures', 'dwMaxCCIDMessageLength',
             'bClassGetResponse', 'bClassEnveloppe', 'wLcdLayout',
-            'bPINSupport', 'bMaxCCIDBusySlots' ]
+            'bPINSupport', 'bMaxCCIDBusySlots', 'features' ]
 
     for f in fields:
         index = list()
         for r in readers.keys():
-            index.append([readers[r][f], r])
+            index.append([readers[r].get(f, ""), r])
         if f == 'section':
             # hack to sort in the order supported, shouldwork, unsupported
             index = [(s.replace('supported', 'asupported'),r) for s,r in index]




More information about the Pcsclite-cvs-commit mailing list