[Pcsclite-cvs-commit] r6909 - website

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Wed Jun 4 13:02:53 UTC 2014


Author: rousseau
Date: 2014-06-04 13:02:53 +0000 (Wed, 04 Jun 2014)
New Revision: 6909

Modified:
   website/short_apdu_readers.py
Log:
Add the interface name (if any)

Some readers are composite devices with more than 1 CCID interface. One
interface may be short APDU only and the other interface may be short
and extended APDU or TPDU.

This is the case for the Gemalto Prox DU reader with 2 CCID interfaces
- a contact interface in TPDU mode
- a contactless interface in short APDU mode


Modified: website/short_apdu_readers.py
===================================================================
--- website/short_apdu_readers.py	2014-06-03 13:09:56 UTC (rev 6908)
+++ website/short_apdu_readers.py	2014-06-04 13:02:53 UTC (rev 6909)
@@ -129,7 +129,19 @@
         for m in manufacturers:
             # for each reader
             for r in sorted(manufacturer_readers[m]):
+                out = '<li>'
+                out += all_readers[r]['iManufacturer']
+                out += ' <a href="ccid/%s.html#%s%s">%s</a>' % (all_readers[r]['section'], all_readers[r]['idVendor'], all_readers[r]['idProduct'], all_readers[r]['iProduct'])
+                # add the interface name (if any)
+                try:
+                    interface = all_readers[r]['iInterface']
+                    if len(interface) > 1:
+                        out += ' (' + interface + ')'
+                except KeyError:
+                    pass
+                out += '</li>'
 
-                print '<li>%s <a href="ccid/%s.html#%s%s">%s</a></li>' % (all_readers[r]['iManufacturer'], all_readers[r]['section'], all_readers[r]['idVendor'], all_readers[r]['idProduct'], all_readers[r]['iProduct'])
+                print out
 
+
         print "</ul>"




More information about the Pcsclite-cvs-commit mailing list