[jhbuild/release-team-commands: 5/6] do not harcode report title
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild/release-team-commands: 5/6] do not harcode report title
- Date: Mon, 4 May 2009 05:29:09 -0400 (EDT)
commit b63ba53b330231a0683eaad06e8cd32a48751999
Author: Frederic Peters <fpeters 0d be>
Date: Mon May 4 11:23:43 2009 +0200
do not harcode report title
---
jhbuild/commands/goalreport.py | 5 +++--
jhbuild/commands/twoninetynine.py | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/jhbuild/commands/goalreport.py b/jhbuild/commands/goalreport.py
index d28ac02..f6088a0 100644
--- a/jhbuild/commands/goalreport.py
+++ b/jhbuild/commands/goalreport.py
@@ -53,7 +53,7 @@ except: t_reset = ''
HTML_AT_TOP = '''<html>
<head>
-<title>2.99</title>
+<title>%(title)s</title>
<style type="text/css">
body {
font-family: sans-serif;
@@ -241,6 +241,7 @@ class cmd_goalreport(Command):
checks = None
page_intro = None
+ title = 'GNOME Goal Report'
def __init__(self):
Command.__init__(self, [
@@ -359,7 +360,7 @@ class cmd_goalreport(Command):
os.makedirs(cachedir)
cPickle.dump(results, file(os.path.join(cachedir, 'twoninetynine.pck'), 'w'))
- print >> output, HTML_AT_TOP
+ print >> output, HTML_AT_TOP % {'title': self.title}
if self.page_intro:
print >> output, self.page_intro
print >> output, '<table>'
diff --git a/jhbuild/commands/twoninetynine.py b/jhbuild/commands/twoninetynine.py
index 63bfcf8..fd08fc4 100644
--- a/jhbuild/commands/twoninetynine.py
+++ b/jhbuild/commands/twoninetynine.py
@@ -161,6 +161,7 @@ class cmd_twoninetynine(cmd_goalreport):
LibGnomeVfs, LibGnomePrint, Esound, Orbit, LibGlade, GConf,
GlibDeprecatedSymbols, GtkDeprecatedSymbols,
GObjectIntrospectionSupport]
+ title = '2.99'
page_intro = '''
<p style="font-size: small;">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]