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

Diff of /src/packages/gentoo.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16.2.4 Revision 1.16.2.5
1#!/usr/bin/python -O 1#!/usr/bin/python -O
2"""These functions mainly take ebuild info (grabbed from the database and 2"""These functions mainly take ebuild info (grabbed from the database and
3 convert it to HTML. See the "main" function at the bottom.""" 3 convert it to HTML. See the "main" function at the bottom."""
4 4
5__revision__ = "$Revision: 1.16.2.4 $" 5__revision__ = "$Revision: 1.16.2.5 $"
6# $Source: /var/cvsroot/gentoo/src/packages/gentoo.py,v $ 6# $Source: /var/cvsroot/gentoo/src/packages/gentoo.py,v $
7 7
8import config 8import config
9import os 9import os
10import time 10import time
11import string
12import sys 11import sys
13import ebuilddb 12import ebuilddb
14import bugs 13import bugs
15import changelogs 14import changelogs
16from cgi import escape 15from cgi import escape
192 '<a href="%s">ChangeLog</a></td>' % changelogurl) 191 '<a href="%s">ChangeLog</a></td>' % changelogurl)
193 similar = ('<td class="similar" rowspan="2">' 192 similar = ('<td class="similar" rowspan="2">'
194 '%s</td>' % create_similar_pkgs_link(pkg)) 193 '%s</td>' % create_similar_pkgs_link(pkg))
195 related_bugs = ('<td class="related_bugs" rowspan="2">' 194 related_bugs = ('<td class="related_bugs" rowspan="2">'
196 '%s</td>' % create_related_bugs_link(pkg)) 195 '%s</td>' % create_related_bugs_link(pkg))
197 forums = ('<td class="forums" rowspan="2">' 196 forums_link = ('<td class="forums" rowspan="2">'
198 '%s</td>' % forums.create_forums_link(pkg)) 197 '%s</td>' % forums.create_forums_link(pkg))
199 198
200 return '\n\t'.join(['<table class="general_info">', 199 return '\n\t'.join(['<table class="general_info">',
201 '<tr>', 200 '<tr>',
202 cat_header, 201 cat_header,
203 homepage, 202 homepage,
204 license_header, 203 license_header,
205 changelog, 204 changelog,
206 similar, 205 similar,
207 related_bugs, 206 related_bugs,
208 forums, 207 forums_link,
209 '</tr>', 208 '</tr>',
210 '<tr>', 209 '<tr>',
211 category, 210 category,
212 license, 211 license,
213 '</tr>', 212 '</tr>',

Legend:
Removed from v.1.16.2.4  
changed lines
  Added in v.1.16.2.5

  ViewVC Help
Powered by ViewVC 1.1.20