[kupfer: 48/51] plugin.core: Fix import for invalid leaf exception
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer: 48/51] plugin.core: Fix import for invalid leaf exception
- Date: Sun, 10 Jan 2010 12:00:52 +0000 (UTC)
commit f2ceecb36ad99a42fe09776b9b5e324c317d5165
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Sun Jan 10 04:27:54 2010 +0100
plugin.core: Fix import for invalid leaf exception
kupfer/plugin/core/__init__.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/core/__init__.py b/kupfer/plugin/core/__init__.py
index fa3116a..fef5d50 100644
--- a/kupfer/plugin/core/__init__.py
+++ b/kupfer/plugin/core/__init__.py
@@ -2,6 +2,7 @@ import gtk
from kupfer.objects import Leaf, Action, Source
from kupfer import objects
+from kupfer.obj.base import InvalidLeafError
from kupfer import interface
from kupfer import pretty
@@ -58,7 +59,7 @@ class SearchInside (Action):
return True
def activate(self, leaf):
if not leaf.has_content():
- raise objects.InvalidLeafError("Must have content")
+ raise InvalidLeafError("Must have content")
return leaf.content_source()
def item_types(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]