rpms/deskbar-applet/devel fedorabz.py,1.4,1.5
Ignacio Vazquez-Abrams (ivazquez)
fedora-extras-commits at redhat.com
Thu Feb 2 23:58:55 UTC 2006
Author: ivazquez
Update of /cvs/extras/rpms/deskbar-applet/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15399
Modified Files:
fedorabz.py
Log Message:
When in doubt, seek professional help
Index: fedorabz.py
===================================================================
RCS file: /cvs/extras/rpms/deskbar-applet/devel/fedorabz.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- fedorabz.py 2 Feb 2006 23:11:54 -0000 1.4
+++ fedorabz.py 2 Feb 2006 23:58:55 -0000 1.5
@@ -13,13 +13,15 @@
bzurl="https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=%s"
class FedoraBZMatch(deskbar.Match.Match):
- def __init__(self, backend, url):
- deskbar.Match.Match.__init__(self, backend, name=url)
- if url.isdigit():
- self._num=url
+ def __init__(self, backend, **args):
+ deskbar.Match.Match.__init__(self, backend, **args)
+ self.name=args['name']
def action(self, text=None):
- gnomevfs.url_show(bzurl % self._num)
+ gnomevfs.url_show(bzurl % self.name)
+
+ def get_category(self):
+ return 'websearch'
def get_verb(self):
return _("Open Fedora Bugzilla report #%(name)s")
@@ -30,4 +32,4 @@
def query(self, query, max=5):
if query.isdigit():
- return [FedoraBZMatch(self, query)]
+ return [FedoraBZMatch(self, name=query)]
More information about the fedora-extras-commits
mailing list