/[gentoo]/src/packages/genrsslist.py
Gentoo

Contents of /src/packages/genrsslist.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download) (as text)
Sun Oct 17 16:53:21 2004 UTC (10 years, 2 months ago) by marduk
Branch: MAIN
Changes since 1.1: +2 -2 lines
File MIME type: text/x-python
Various fixes & enhancements

1 marduk 1.1 #!/usr/bin/python -OO
2    
3     import config
4     FEHOME = config.FEHOME
5    
6 marduk 1.2 print """<div class="centerpage"><H3>packages.gentoo.org RSS Feeds</H3>
7     <p>packages.gentoo.org provides the following RSS feeds. Note that some
8 marduk 1.1 feed readers may have problems with the embedded HTML feeds.</p>
9     </div>
10     <br>
11    
12     <table class="ebuild">
13     <tr><th class="fields">Platform</th><th class="fields">Branch</th><th class="fields">Format</th><th class="fields">URL</th></tr>
14     <tr class="arch">
15     <th class="arch" rowspan="2">All</th>
16     <td class="arch" rowspan="2">N/A</td>
17     <td class="arch">HTML</td>
18     <td class="arch"><a href="%(FEHOME)sgentoo.rss">
19     %(FEHOME)sgentoo.rss</a></td>
20     </tr>
21     <tr class="arch">
22     <td class="arch">plain</td>
23     <td class="arch"><a href="%(FEHOME)sgentoo_simple.rss">
24     %(FEHOME)sgentoo_simple.rss</a></td>
25     </tr>
26     """ % vars()
27    
28     for arch in config.ARCHLIST:
29     print """
30     <!-- %(arch)s -->
31     <tr class="arch">
32     <th class="arch" rowspan="6">%(arch)s</th>
33     <td class="arch" rowspan="2">All</td>
34     <td class="arch">HTML</td>
35     <td class="arch"><a href="%(FEHOME)sarchs/%(arch)s/gentoo.rss">
36     %(FEHOME)sarchs/%(arch)s/gentoo.rss</a></td>
37     </tr>
38     <tr class="arch">
39     <td class="arch">plain</td>
40     <td class="arch"><a href="%(FEHOME)sarchs/%(arch)s/gentoo_simple.rss">
41     %(FEHOME)sarchs/%(arch)s/gentoo_simple.rss</a></td>
42     </tr>
43     <tr class="arch">
44     <td class="arch" rowspan="2">stable</td>
45     <td class="arch">HTML</td>
46     <td class="arch"><a href="%(FEHOME)sarchs/%(arch)s/stable/gentoo.rss">
47     %(FEHOME)sarchs/%(arch)s/stable/gentoo.rss</a></td>
48     </tr>
49     <tr class="arch">
50     <td class="arch">plain</td>
51     <td class="arch"><a href="%(FEHOME)sarchs/%(arch)s/stable/gentoo_simple.rss">
52     %(FEHOME)sarchs/%(arch)s/stable/gentoo_simple.rss</a></td>
53     </tr>
54     <tr class="arch">
55     <td class="arch" rowspan="2">testing</td>
56     <td class="arch">HTML</td>
57     <td class="arch"><a href="%(FEHOME)sarchs/%(arch)s/testing/gentoo.rss">
58     %(FEHOME)sarchs/%(arch)s/testing/gentoo.rss</a></td>
59     </tr>
60     <tr class="arch">
61     <td class="arch">plain</td>
62     <td class="arch"><a href="%(FEHOME)sarchs/%(arch)s/testing/gentoo_simple.rss">
63     %(FEHOME)sarchs/%(arch)s/testing/gentoo_simple.rss</a></td>
64     </tr>
65     """ % vars()
66    
67     print "</table>"

  ViewVC Help
Powered by ViewVC 1.1.20