[Pcsclite-cvs-commit] r3390 - in /website: matrix.py shouldwork.template supported.template unsupported.template webpage.template

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Mar 27 10:37:25 UTC 2009


Author: rousseau
Date: Fri Mar 27 10:37:24 2009
New Revision: 3390

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3390
Log:
use only 1 template page for all the 3 generated webpages

Added:
    website/webpage.template   (contents, props changed)
      - copied, changed from r3387, website/supported.template
Removed:
    website/shouldwork.template
    website/supported.template
    website/unsupported.template
Modified:
    website/matrix.py

Modified: website/matrix.py
URL: http://svn.debian.org/wsvn/pcsclite/website/matrix.py?rev=3390&op=diff
==============================================================================
--- website/matrix.py (original)
+++ website/matrix.py Fri Mar 27 10:37:24 2009
@@ -103,15 +103,16 @@
         d.setdefault(readers[r]['iManufacturer'], []).append(r)
     return d
 
-def generate_page(section, readers):
+def generate_page(section, title, comment, readers):
     # sort the readers by manufacturers
     manufacturer_readers = get_by_manufacturer(readers)
     manufacturers = list(manufacturer_readers)
     manufacturers.sort(key=str.lower)
 
-    template = templayer.HTMLTemplate(section + ".template")
+    template = templayer.HTMLTemplate("webpage.template")
     file_writer = template.start_file(file=file(section + ".html", "w"))
-    main_layer = file_writer.open(date=time.asctime())
+    main_layer = file_writer.open(date=time.asctime(),
+        title=title, comment=comment)
     
     # for each manufacturer
     for m in manufacturers:
@@ -154,6 +155,6 @@
     #pp.pprint(reader_list)
     check_list(path, reader_list)
 
-    generate_page("supported", supported_readers)
-    generate_page("shouldwork", shouldwork_readers)
-    generate_page("unsupported", unsupported_readers)
+    generate_page("supported", "Supported CCID readers/ICCD tokens", "If you are a reader manufacturer and your reader is not listed here then contact me at ludovic.rousseau at free.fr", supported_readers)
+    generate_page("shouldwork", "Should work but untested by me", "The CCID readers and ICCD tokens listed bellow should work with the driver but have not be validated by me. I would like to get these readers to perform test and validation and move them in the supported list above. If you are one of the manufacturers, please, contact me at ludovic.rousseau at free.fr.", shouldwork_readers)
+    generate_page("unsupported", "Unsupported or partly supported CCID readers", "These readers have problems or serious limitations.", unsupported_readers)

Copied: website/webpage.template (from r3387, website/supported.template)
URL: http://svn.debian.org/wsvn/pcsclite/website/webpage.template?rev=3390&op=diff
==============================================================================
--- website/supported.template (original)
+++ website/webpage.template Fri Mar 27 10:37:24 2009
@@ -8,20 +8,19 @@
 
 <html>
   <head>
-    <title>Supported CCID readers</title>
+    <title>%title%</title>
     <meta name="author" lang="en" content="list of supported CCID readers" />
     <link rel="stylesheet" type="text/css" href="default.css" />
   </head>
 
   <body>
 
-    <h1>Supported CCID readers/ICCD tokens</h1>
+    <h1>%title%</h1>
 
-    <h2>If you are a reader manufacturer and your reader is not listed here</h2>
-
-    <p>then contact <a href="mailto:ludovic.rousseau at free.fr">me</a>.</p>
+    <p>%comment%</p>
 
     <h2>List in alphabetical order of manufacturer</h2>
+
     {contents}
 
     {manufacturer}
@@ -32,7 +31,7 @@
     <ul>
         <li>
             <a name="%idVendor%%idProduct%"></a>
-            <p><a href="#%idVendor%%idProduct%">%product%</a></p>
+            <p>%manufacturer% <a href="#%idVendor%%idProduct%">%product%</a></p>
           <p><img src="%image%" alt="%manufacturer% %product%"></p>
           %contents%
       </li>

Propchange: website/webpage.template
------------------------------------------------------------------------------
    svn:mergeinfo = 




More information about the Pcsclite-cvs-commit mailing list