[Pcsclite-cvs-commit] r3385 - in /website: matrix.py supported.template

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Mar 26 15:04:44 UTC 2009


Author: rousseau
Date: Thu Mar 26 15:04:43 2009
New Revision: 3385

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3385
Log:
add a reference name to each reader and autoreference them

Modified:
    website/matrix.py
    website/supported.template

Modified: website/matrix.py
URL: http://svn.debian.org/wsvn/pcsclite/website/matrix.py?rev=3385&op=diff
==============================================================================
--- website/matrix.py (original)
+++ website/matrix.py Thu Mar 26 15:04:43 2009
@@ -135,18 +135,20 @@
 
         # for each reader
         for r in sorted(manufacturer_readers[m]):
-            url=supported_readers[r].get('url', "")
+            url = supported_readers[r].get('url', "")
             note = supported_readers[r].get('note', "").split('\n')
             note_layer = main_layer.open_layer('reader',
-                manufacturer=m,
-                product=supported_readers[r]['iProduct'],
-                image="img/" + supported_readers[r].get('image',
+                manufacturer = m,
+                product = supported_readers[r]['iProduct'],
+                idVendor = supported_readers[r]['idVendor'],
+                idProduct = supported_readers[r]['idProduct'],
+                image = "img/" + supported_readers[r].get('image',
                     "no_image.png"))
             if (url):
                 note_layer.write_layer('url',
                     url = url,
-                    manufacturer=m,
-                    product=supported_readers[r]['iProduct'])
+                    manufacturer = m,
+                    product = supported_readers[r]['iProduct'])
             features = supported_readers[r].get('features', "")
             if features:
                 note_layer.write_layer('features', features = features)

Modified: website/supported.template
URL: http://svn.debian.org/wsvn/pcsclite/website/supported.template?rev=3385&op=diff
==============================================================================
--- website/supported.template (original)
+++ website/supported.template Thu Mar 26 15:04:43 2009
@@ -30,7 +30,9 @@
 
     {reader}
     <ul>
-      <li><p>%product%</p>
+        <li>
+            <a name="%idVendor%%idProduct%"></a>
+            <p><a href="#%idVendor%%idProduct%">%product%</a></p>
           <p><img src="%image%" alt="%manufacturer% %product%"></p>
           %contents%
       </li>




More information about the Pcsclite-cvs-commit mailing list