deskbar-applet r2211 - in trunk: . deskbar/handlers
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r2211 - in trunk: . deskbar/handlers
- Date: Sun, 15 Jun 2008 09:47:29 +0000 (UTC)
Author: sebp
Date: Sun Jun 15 09:47:29 2008
New Revision: 2211
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2211&view=rev
Log:
Made OpenBeagleFileAction backwards compatible
Modified:
trunk/ChangeLog
trunk/deskbar/handlers/beagle-live.py
Modified: trunk/deskbar/handlers/beagle-live.py
==============================================================================
--- trunk/deskbar/handlers/beagle-live.py (original)
+++ trunk/deskbar/handlers/beagle-live.py Sun Jun 15 09:47:29 2008
@@ -346,7 +346,7 @@
return match.groups()[0]
def get_verb(self):
- if self._parent_file != None:
+ if hasattr(self, "_parent_file") and self._parent_file != None:
# translators: in this case the file (2nd) is part of an archive (1st)
# e.g. README is part of deskbar-applet.tar.gz
return _("Open %s containing %s") % ("<b>%(parent)s</b>", "<b>%(name)s</b>")
@@ -355,7 +355,7 @@
def get_name(self, text=None):
names = OpenFileAction.get_name (self)
- if self._parent_file != None:
+ if hasattr(self, "_parent_file") and self._parent_file != None:
names["parent"] = self._parent_file
return names
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]