[Pcsclite-cvs-commit] r3383 - in /website: matrix.py supported.template
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Mar 26 14:51:01 UTC 2009
Author: rousseau
Date: Thu Mar 26 14:51:01 2009
New Revision: 3383
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3383
Log:
add Manufacturer URL link
Modified:
website/matrix.py
website/supported.template
Modified: website/matrix.py
URL: http://svn.debian.org/wsvn/pcsclite/website/matrix.py?rev=3383&op=diff
==============================================================================
--- website/matrix.py (original)
+++ website/matrix.py Thu Mar 26 14:51:01 2009
@@ -137,21 +137,16 @@
for r in sorted(manufacturer_readers[m]):
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',
+ "no_image.png"))
if (url):
- note_layer = main_layer.open_layer('reader_with_url',
+ note_layer.write_layer('url',
+ url = 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:
- 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)
+ product=supported_readers[r]['iProduct'])
+ 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=3383&op=diff
==============================================================================
--- website/supported.template (original)
+++ website/supported.template Thu Mar 26 14:51:01 2009
@@ -37,18 +37,13 @@
</ul>
{/reader}
- {reader_with_url}
- <ul>
- <li><p><a href="%url%">%product%</a></p>
- <p><img src="%image%" alt="%manufacturer% %product%"></p>
- %contents%
- </li>
- </ul>
- {/reader_with_url}
-
{note}
<p>%contents%</p>
{/note}
+
+ {url}
+ <p>Manufacturer URL: <a href="%url%">%manufacturer% %product%</a></p>
+ {/url}
{/contents}
<hr>
More information about the Pcsclite-cvs-commit
mailing list