Merge branch 'newrules' into lenny

* newrules:
  updated translations
  add ideas for SSH functions as comment
  add idea for debconf list search as comment
  add Debian search
  add website google search
  add patch tracker
  add piuparts
  add support for "firstchar" in patterns
This commit is contained in:
Jan Dittberner 2010-05-10 21:22:59 +02:00
commit 2b6e6869f7
6 changed files with 100 additions and 42 deletions

View file

@ -65,6 +65,8 @@ developer name on all bug logs)'),
'lintianfull' : N_('full lintian reports (i.e. including \ 'lintianfull' : N_('full lintian reports (i.e. including \
"info"-level messages)'), "info"-level messages)'),
'dehs' : N_('DEHS (Debian External Health Status)'), 'dehs' : N_('DEHS (Debian External Health Status)'),
'piuparts' : N_('piuparts'),
'patchtracker' : N_('Debian patch tracking system'),
}, },
'upload' : { 'upload' : {
'label' : N_('Upload'), 'label' : N_('Upload'),
@ -93,6 +95,8 @@ developer name on all bug logs)'),
'label' : N_('Miscellaneous'), 'label' : N_('Miscellaneous'),
'debtags' : N_('debtags'), 'debtags' : N_('debtags'),
'links' : N_('links'), 'links' : N_('links'),
'website' : N_('Debian website'),
'search' : N_('Debian search'),
}, },
'ubuntu' : { 'ubuntu' : {
'label' : N_('Ubuntu'), 'label' : N_('Ubuntu'),

View file

@ -9,7 +9,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: ddportfolioservice 0.1\n" "Project-Id-Version: ddportfolioservice 0.1\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2010-05-10 20:09+0200\n" "POT-Creation-Date: 2010-05-10 21:18+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -99,78 +99,94 @@ msgstr ""
msgid "DEHS (Debian External Health Status)" msgid "DEHS (Debian External Health Status)"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:70 #: ddportfolioservice/controllers/ddportfolio.py:68
msgid "piuparts"
msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:69
msgid "Debian patch tracking system"
msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:72
msgid "Upload" msgid "Upload"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:71 #: ddportfolioservice/controllers/ddportfolio.py:73
msgid "" msgid ""
"keylog (per-key upload list)\n" "keylog (per-key upload list)\n"
"(note: uses key fingerprint)" "(note: uses key fingerprint)"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:75 #: ddportfolioservice/controllers/ddportfolio.py:77
msgid "Mailing Lists" msgid "Mailing Lists"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:76 #: ddportfolioservice/controllers/ddportfolio.py:78
msgid "lists.d.o" msgid "lists.d.o"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:77 #: ddportfolioservice/controllers/ddportfolio.py:79
msgid "lists.a.d.o" msgid "lists.a.d.o"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:78 #: ddportfolioservice/controllers/ddportfolio.py:80
msgid "gmane" msgid "gmane"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:81 #: ddportfolioservice/controllers/ddportfolio.py:83
msgid "Files" msgid "Files"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:82 #: ddportfolioservice/controllers/ddportfolio.py:84
msgid "people.d.o" msgid "people.d.o"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:83 #: ddportfolioservice/controllers/ddportfolio.py:85
msgid "oldpeople" msgid "oldpeople"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:84 #: ddportfolioservice/controllers/ddportfolio.py:86
#: ddportfolioservice/controllers/ddportfolio.py:90 #: ddportfolioservice/controllers/ddportfolio.py:92
msgid "Alioth" msgid "Alioth"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:87 #: ddportfolioservice/controllers/ddportfolio.py:89
msgid "Membership" msgid "Membership"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:88 #: ddportfolioservice/controllers/ddportfolio.py:90
msgid "NM" msgid "NM"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:89 #: ddportfolioservice/controllers/ddportfolio.py:91
msgid "DB" msgid "DB"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:93 #: ddportfolioservice/controllers/ddportfolio.py:95
msgid "Miscellaneous" msgid "Miscellaneous"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:94 #: ddportfolioservice/controllers/ddportfolio.py:96
msgid "debtags" msgid "debtags"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:95 #: ddportfolioservice/controllers/ddportfolio.py:97
msgid "links" msgid "links"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:98 #: ddportfolioservice/controllers/ddportfolio.py:98
msgid "Ubuntu" msgid "Debian website"
msgstr "" msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:99 #: ddportfolioservice/controllers/ddportfolio.py:99
msgid "Debian search"
msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:102
msgid "Ubuntu"
msgstr ""
#: ddportfolioservice/controllers/ddportfolio.py:103
msgid "Available patches from Ubuntu" msgid "Available patches from Ubuntu"
msgstr "" msgstr ""
@ -198,7 +214,7 @@ msgstr ""
msgid "Alioth user name" msgid "Alioth user name"
msgstr "" msgstr ""
#: ddportfolioservice/model/urlbuilder.py:73 #: ddportfolioservice/model/urlbuilder.py:74
#, python-format #, python-format
msgid "Missing input: %s" msgid "Missing input: %s"
msgstr "" msgstr ""

View file

@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: ddportfolioservice 0.1\n" "Project-Id-Version: ddportfolioservice 0.1\n"
"Report-Msgid-Bugs-To: jan@dittberner.info\n" "Report-Msgid-Bugs-To: jan@dittberner.info\n"
"POT-Creation-Date: 2009-01-20 23:13+0100\n" "POT-Creation-Date: 2009-01-20 23:13+0100\n"
"PO-Revision-Date: 2010-05-10 20:10+0200\n" "PO-Revision-Date: 2010-05-10 21:20+0200\n"
"Last-Translator: Jan Dittberner <jan@dittberner.info>\n" "Last-Translator: Jan Dittberner <jan@dittberner.info>\n"
"Language-Team: de <LL@li.org>\n" "Language-Team: de <LL@li.org>\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n"
@ -109,11 +109,19 @@ msgstr ""
msgid "DEHS (Debian External Health Status)" msgid "DEHS (Debian External Health Status)"
msgstr "DEHS (Debian External Health Status)" msgstr "DEHS (Debian External Health Status)"
#: ddportfolioservice/controllers/ddportfolio.py:70 #: ddportfolioservice/controllers/ddportfolio.py:68
msgid "piuparts"
msgstr "piuparts"
#: ddportfolioservice/controllers/ddportfolio.py:69
msgid "Debian patch tracking system"
msgstr "Debian Nachverfolgungssystem für Patches"
#: ddportfolioservice/controllers/ddportfolio.py:72
msgid "Upload" msgid "Upload"
msgstr "Upload" msgstr "Upload"
#: ddportfolioservice/controllers/ddportfolio.py:71 #: ddportfolioservice/controllers/ddportfolio.py:73
msgid "" msgid ""
"keylog (per-key upload list)\n" "keylog (per-key upload list)\n"
"(note: uses key fingerprint)" "(note: uses key fingerprint)"
@ -121,68 +129,77 @@ msgstr ""
"Keylog\n" "Keylog\n"
"(Anmerkung: verwendet den Fingerabdruck des Schlüssels)" "(Anmerkung: verwendet den Fingerabdruck des Schlüssels)"
#: ddportfolioservice/controllers/ddportfolio.py:75 #: ddportfolioservice/controllers/ddportfolio.py:77
msgid "Mailing Lists" msgid "Mailing Lists"
msgstr "Mailinglisten" msgstr "Mailinglisten"
#: ddportfolioservice/controllers/ddportfolio.py:76 #: ddportfolioservice/controllers/ddportfolio.py:78
msgid "lists.d.o" msgid "lists.d.o"
msgstr "lists.d.o" msgstr "lists.d.o"
#: ddportfolioservice/controllers/ddportfolio.py:77 #: ddportfolioservice/controllers/ddportfolio.py:79
msgid "lists.a.d.o" msgid "lists.a.d.o"
msgstr "lists.a.d.o" msgstr "lists.a.d.o"
#: ddportfolioservice/controllers/ddportfolio.py:78 #: ddportfolioservice/controllers/ddportfolio.py:80
msgid "gmane" msgid "gmane"
msgstr "Gmane" msgstr "Gmane"
#: ddportfolioservice/controllers/ddportfolio.py:81 #: ddportfolioservice/controllers/ddportfolio.py:83
msgid "Files" msgid "Files"
msgstr "Dateien" msgstr "Dateien"
#: ddportfolioservice/controllers/ddportfolio.py:82 #: ddportfolioservice/controllers/ddportfolio.py:84
msgid "people.d.o" msgid "people.d.o"
msgstr "people.d.o" msgstr "people.d.o"
#: ddportfolioservice/controllers/ddportfolio.py:83 #: ddportfolioservice/controllers/ddportfolio.py:85
msgid "oldpeople" msgid "oldpeople"
msgstr "oldpeople" msgstr "oldpeople"
#: ddportfolioservice/controllers/ddportfolio.py:84 #: ddportfolioservice/controllers/ddportfolio.py:86
#: ddportfolioservice/controllers/ddportfolio.py:90 #: ddportfolioservice/controllers/ddportfolio.py:92
msgid "Alioth" msgid "Alioth"
msgstr "Alioth" msgstr "Alioth"
#: ddportfolioservice/controllers/ddportfolio.py:87 #: ddportfolioservice/controllers/ddportfolio.py:89
msgid "Membership" msgid "Membership"
msgstr "Mitgliedschaft" msgstr "Mitgliedschaft"
#: ddportfolioservice/controllers/ddportfolio.py:88 #: ddportfolioservice/controllers/ddportfolio.py:90
msgid "NM" msgid "NM"
msgstr "NM" msgstr "NM"
#: ddportfolioservice/controllers/ddportfolio.py:89 #: ddportfolioservice/controllers/ddportfolio.py:91
msgid "DB" msgid "DB"
msgstr "DB" msgstr "DB"
#: ddportfolioservice/controllers/ddportfolio.py:93 #: ddportfolioservice/controllers/ddportfolio.py:95
msgid "Miscellaneous" msgid "Miscellaneous"
msgstr "Sonstiges" msgstr "Sonstiges"
#: ddportfolioservice/controllers/ddportfolio.py:94 #: ddportfolioservice/controllers/ddportfolio.py:96
msgid "debtags" msgid "debtags"
msgstr "debtags" msgstr "debtags"
#: ddportfolioservice/controllers/ddportfolio.py:95 #: ddportfolioservice/controllers/ddportfolio.py:97
msgid "links" msgid "links"
msgstr "Links" msgstr "Links"
#: ddportfolioservice/controllers/ddportfolio.py:98 #: ddportfolioservice/controllers/ddportfolio.py:98
msgid "Debian website"
msgstr "Debian Webseite"
#: ddportfolioservice/controllers/ddportfolio.py:99
#| msgid "Debian user name"
msgid "Debian search"
msgstr "Debian-Suche"
#: ddportfolioservice/controllers/ddportfolio.py:102
msgid "Ubuntu" msgid "Ubuntu"
msgstr "Ubuntu" msgstr "Ubuntu"
#: ddportfolioservice/controllers/ddportfolio.py:99 #: ddportfolioservice/controllers/ddportfolio.py:103
msgid "Available patches from Ubuntu" msgid "Available patches from Ubuntu"
msgstr "Verfügbare Patches aus Ubuntu" msgstr "Verfügbare Patches aus Ubuntu"
@ -210,7 +227,7 @@ msgstr "Nicht-DD E-Mailadresse:"
msgid "Alioth user name" msgid "Alioth user name"
msgstr "Alioth-Benutzername" msgstr "Alioth-Benutzername"
#: ddportfolioservice/model/urlbuilder.py:73 #: ddportfolioservice/model/urlbuilder.py:74
#, python-format #, python-format
msgid "Missing input: %s" msgid "Missing input: %s"
msgstr "Fehlende Eingabe: %s" msgstr "Fehlende Eingabe: %s"

View file

@ -44,10 +44,12 @@ buildd.pattern=http://buildd.debian.org/pkg.cgi?maint=%(email)s
svnbuildstat.pattern=http://svnbuildstat.debian.net/packages/list/%(email)s svnbuildstat.pattern=http://svnbuildstat.debian.net/packages/list/%(email)s
[qa] [qa]
urls=lintian,lintianfull,dehs urls=lintian,lintianfull,dehs,piuparts,patchtracker
lintian.pattern=http://lintian.debian.org/maintainer/%(email)s.html lintian.pattern=http://lintian.debian.org/maintainer/%(email)s.html
lintianfull.pattern=http://lintian.debian.org/full/%(email)s.html lintianfull.pattern=http://lintian.debian.org/full/%(email)s.html
dehs.pattern=http://dehs.alioth.debian.org/report.php?login=%(email)s dehs.pattern=http://dehs.alioth.debian.org/report.php?login=%(email)s
piuparts.pattern=http://piuparts.debian.org/sid/maintainer/%(firstchar)s/%(email)s.html
patchtracker.pattern=http://patch-tracker.debian.org/email/%(email)s
[upload] [upload]
urls=keylog urls=keylog
@ -58,6 +60,11 @@ urls=dolists,adolists,gmane
dolists.pattern=http://lists.debian.org/cgi-bin/search?author=%(name)s&amp;sort=date dolists.pattern=http://lists.debian.org/cgi-bin/search?author=%(name)s&amp;sort=date
adolists.pattern=http://www.google.com/search?q=site%%3Alists.alioth.debian.org+%%22%(name)s%%22 adolists.pattern=http://www.google.com/search?q=site%%3Alists.alioth.debian.org+%%22%(name)s%%22
gmane.pattern=http://search.gmane.org/?email=%(name)s&amp;group=gmane.linux.debian.* gmane.pattern=http://search.gmane.org/?email=%(name)s&amp;group=gmane.linux.debian.*
# debconf list search has a tricky URL format
# http://lists.debconf.org/lurker/search \
# /20100510.202949.00000000@au:%(firstname)s,au:%(lastname)s.en.html
# /YYYYMMDD.HHmmss.hashcode@au:%(firstname)s,au:%(lastname)s.en.html
# maybe this could be implemented using some custom formatter function
[files] [files]
urls=people,alioth urls=people,alioth
@ -71,9 +78,22 @@ db.pattern=http://db.debian.org/search.cgi?uid=%(username)s&amp;dosearch=Search
alioth.pattern=http://alioth.debian.org/users/%(aliothusername)s/ alioth.pattern=http://alioth.debian.org/users/%(aliothusername)s/
[miscellaneous] [miscellaneous]
urls=debtags,links urls=debtags,links,website,search
debtags.pattern=http://debtags.alioth.debian.org/todo.html?maint=%(email)s debtags.pattern=http://debtags.alioth.debian.org/todo.html?maint=%(email)s
links.pattern=http://www.google.com/search?hl=en&lr=&q=site%%3Adebian.org+%%22%(name)s%%22+-site%%3Anm.debian.org+-site%%3Alintian.debian.org+-site%%3Abugs.debian.org+-site%%3Alists.debian.org+-site%%3Apackages.debian.org+-site%%3Alists.alioth.debian.org+-site%%3Aftp.debian.org++-site%%3Apackages.qa.debian.org++-site%%3Aftp*.*.debian.org+-inurl%%3Adebian.org%%2Fdevel%%2Fpeople.+-inurl%%3Aindices%%2FMaintainers+-inurl%%3Adebian.org%%2Fdebian%%2Fproject++-inurl%%3A%%2Fdists%%2F&btnG=Search links.pattern=http://www.google.com/search?hl=en&lr=&q=site%%3Adebian.org+%%22%(name)s%%22+-site%%3Anm.debian.org+-site%%3Alintian.debian.org+-site%%3Abugs.debian.org+-site%%3Alists.debian.org+-site%%3Apackages.debian.org+-site%%3Alists.alioth.debian.org+-site%%3Aftp.debian.org++-site%%3Apackages.qa.debian.org++-site%%3Aftp*.*.debian.org+-inurl%%3Adebian.org%%2Fdevel%%2Fpeople.+-inurl%%3Aindices%%2FMaintainers+-inurl%%3Adebian.org%%2Fdebian%%2Fproject++-inurl%%3A%%2Fdists%%2F&btnG=Search
website.pattern=http://www.google.com/search?q=site:www.debian.org+%(name)s
search.pattern=http://search.debian.org/?q=%%22%(name)s%%22
# SSH functions
#
# owned *.debian.net domains
# ssh merkel.debian.org ldapsearch -u -x -H ldap://db.debian.org -b dc=debian,dc=org \
# uid=%(username)s dnsZoneEntry
#
# MIA information
# ssh merkel.debian.org /srv/qa.debian.org/mia/mia-query %(username)s
#
# Group information
# ssh merkel.debian.org id %(username)s
[ubuntu] [ubuntu]
urls=ubuntudiff urls=ubuntudiff

View file

@ -56,6 +56,7 @@ def build_urls(fields):
fpr = keyfinder.getFingerprintByEmail(fields['email'].encode('utf8')) fpr = keyfinder.getFingerprintByEmail(fields['email'].encode('utf8'))
if fpr: if fpr:
qfields['gpgfp'] = fpr[0] qfields['gpgfp'] = fpr[0]
qfields['firstchar'] = fields['email'][0].encode('utf8')
for section in [section.strip() for section in \ for section in [section.strip() for section in \
my_config.get('DEFAULT', my_config.get('DEFAULT',
'urlbuilder.sections').split(',')]: 'urlbuilder.sections').split(',')]: