Typos; Some more signals to connect to.

svn: r7536
This commit is contained in:
Martin Hawlisch 2006-11-01 15:09:14 +00:00
parent a0ab6862d0
commit 6beb9ae219

View File

@ -213,7 +213,7 @@ class ScratchPadEvent(ScratchPadWrapper):
(drag_type, idval, handle, val) = pickle.loads(obj) (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._title = str(value.get_type())
self._value = value.get_description() self._value = value.get_description()
@ -251,9 +251,8 @@ class ScratchPadEvent(ScratchPadWrapper):
def is_valid(self): def is_valid(self):
data = pickle.loads(self._obj) data = pickle.loads(self._obj)
handle = data[2] handle = data[2]
person = self._db.get_event_from_handle(handle) obj = self._db.get_event_from_handle(handle)
print person if obj:
if person:
return True return True
return False return False
@ -529,7 +528,7 @@ class ScratchMediaObj(ScratchPadWrapper):
def is_valid(self): def is_valid(self):
data = pickle.loads(self._obj) data = pickle.loads(self._obj)
handle = data[2] handle = data[2]
obj = self._db.get_onject_from_handle(handle) obj = self._db.get_object_from_handle(handle)
if obj: if obj:
return True return True
return False return False
@ -795,7 +794,13 @@ class ScratchPadListView:
'place-rebuild', 'place-rebuild',
'media-update', 'media-update',
'media-delete', 'media-delete',
'media-rebuild' 'media-rebuild',
'event-update',
'event-delete',
'event-rebuild',
'repository-update',
'repository-delete',
'repository-rebuild'
) )
for signal in db_signals: for signal in db_signals: