From 6beb9ae21905e3efa072e5994d713ba696bb53a0 Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Wed, 1 Nov 2006 15:09:14 +0000 Subject: [PATCH] Typos; Some more signals to connect to. svn: r7536 --- src/ScratchPad.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/ScratchPad.py b/src/ScratchPad.py index 6c0ed394e..a82d57d31 100644 --- a/src/ScratchPad.py +++ b/src/ScratchPad.py @@ -213,7 +213,7 @@ class ScratchPadEvent(ScratchPadWrapper): (drag_type, idval, handle, val) = pickle.loads(obj) - value = db.get_event_from_handle(handle) + value = self._db.get_event_from_handle(handle) self._title = str(value.get_type()) self._value = value.get_description() @@ -251,9 +251,8 @@ class ScratchPadEvent(ScratchPadWrapper): def is_valid(self): data = pickle.loads(self._obj) handle = data[2] - person = self._db.get_event_from_handle(handle) - print person - if person: + obj = self._db.get_event_from_handle(handle) + if obj: return True return False @@ -529,7 +528,7 @@ class ScratchMediaObj(ScratchPadWrapper): def is_valid(self): data = pickle.loads(self._obj) handle = data[2] - obj = self._db.get_onject_from_handle(handle) + obj = self._db.get_object_from_handle(handle) if obj: return True return False @@ -795,7 +794,13 @@ class ScratchPadListView: 'place-rebuild', 'media-update', 'media-delete', - 'media-rebuild' + 'media-rebuild', + 'event-update', + 'event-delete', + 'event-rebuild', + 'repository-update', + 'repository-delete', + 'repository-rebuild' ) for signal in db_signals: