[kupfer] plugin.notes, screen: pickle_prepare not needed.
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] plugin.notes, screen: pickle_prepare not needed.
- Date: Tue, 8 Sep 2009 16:00:41 +0000 (UTC)
commit 1762d02b64249fefbbfcfe2f2b6ec11f7ec9eb81
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Sep 8 17:57:08 2009 +0200
plugin.notes, screen: pickle_prepare not needed.
kupfer/plugin/notes.py | 3 ---
kupfer/plugin/screen.py | 5 +----
2 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/kupfer/plugin/notes.py b/kupfer/plugin/notes.py
index 35f25ac..136d908 100644
--- a/kupfer/plugin/notes.py
+++ b/kupfer/plugin/notes.py
@@ -163,9 +163,6 @@ class NotesSource (AppLeafContentMixin, Source, PicklingHelperMixin,
dirs.extend(notedatapaths)
self.monitor_token = self.monitor_directories(*dirs)
- def pickle_prepare(self):
- self.monitor_token = None
-
def _update_cache(self, notes):
try:
noteuris = notes.ListAllNotes()
diff --git a/kupfer/plugin/screen.py b/kupfer/plugin/screen.py
index 5f95d55..a082df7 100644
--- a/kupfer/plugin/screen.py
+++ b/kupfer/plugin/screen.py
@@ -61,9 +61,6 @@ class ScreenSessionsSource (Source, PicklingHelperMixin, FilesystemWatchMixin):
super(ScreenSessionsSource, self).__init__(_("Screen Sessions"))
self.unpickle_finish()
- def pickle_prepare(self):
- self.monitor = None
-
def unpickle_finish(self):
"""Set up a directory watch on Screen's socket dir"""
self.screen_dir = (os.getenv("SCREENDIR") or
@@ -72,7 +69,7 @@ class ScreenSessionsSource (Source, PicklingHelperMixin, FilesystemWatchMixin):
self.screen_dir = None
self.output_debug("Screen socket dir or SCREENDIR not found")
return
- self.monitor = self.monitor_directories(self.screen_dir)
+ self.monitor_token = self.monitor_directories(self.screen_dir)
def get_items(self):
if not self.screen_dir:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]