[Pcsclite-cvs-commit] r3370 - in /website: matrix.py supported.template
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Mon Mar 23 15:59:24 UTC 2009
Author: rousseau
Date: Mon Mar 23 15:59:24 2009
New Revision: 3370
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3370
Log:
add note support
Modified:
website/matrix.py
website/supported.template
Modified: website/matrix.py
URL: http://svn.debian.org/wsvn/pcsclite/website/matrix.py?rev=3370&op=diff
==============================================================================
--- website/matrix.py (original)
+++ website/matrix.py Mon Mar 23 15:59:24 2009
@@ -75,6 +75,9 @@
return readers
+def parse_note(note):
+ return note.split('\n')
+
def check_list(path, reader_list):
cwd = os.getcwd()
os.chdir(path)
@@ -136,17 +139,22 @@
# for each reader
for r in sorted(manufacturer_readers[m]):
url=supported_readers[r].get('url', "")
+ note = parse_note(supported_readers[r].get('note', ""))
if (url):
- main_layer.write_layer('reader_with_url',
+ note_layer = main_layer.open_layer('reader_with_url',
manufacturer=m,
product=supported_readers[r]['iProduct'],
url=url,
image="img/" + supported_readers[r].get('image',
"no_image.png"))
+ for n in note:
+ note_layer.write_layer('note', contents = n)
else:
- main_layer.write_layer('reader',
+ note_layer = main_layer.open_layer('reader',
manufacturer=m,
product=supported_readers[r]['iProduct'],
image="img/" + supported_readers[r].get('image',
"no_image.png"))
+ for n in note:
+ note_layer.write_layer('note', contents = n)
file_writer.close()
Modified: website/supported.template
URL: http://svn.debian.org/wsvn/pcsclite/website/supported.template?rev=3370&op=diff
==============================================================================
--- website/supported.template (original)
+++ website/supported.template Mon Mar 23 15:59:24 2009
@@ -31,16 +31,24 @@
{reader}
<ul>
<li><p>%product%</p>
- <p><img src="%image%" alt="%manufacturer% %product%"></p></li>
+ <p><img src="%image%" alt="%manufacturer% %product%"></p>
+ %contents%
+ </li>
</ul>
{/reader}
{reader_with_url}
<ul>
<li><p><a href="%url%">%product%</a></p>
- <p><img src="%image%" alt="%manufacturer% %product%"></p></li>
+ <p><img src="%image%" alt="%manufacturer% %product%"></p>
+ %contents%
+ </li>
</ul>
{/reader_with_url}
+
+ {note}
+ <p>%contents%</p>
+ {/note}
{/contents}
<hr>
More information about the Pcsclite-cvs-commit
mailing list