[kupfer: 23/23] plugin.thunderbird: Use Source.initialize



commit 0e4b2d1a921b8b750b24da855b9ebdd707275f6c
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Sat Jan 2 23:28:55 2010 +0100

    plugin.thunderbird: Use Source.initialize

 kupfer/plugin/thunderbird.py |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/kupfer/plugin/thunderbird.py b/kupfer/plugin/thunderbird.py
index 64354a2..9d4a777 100644
--- a/kupfer/plugin/thunderbird.py
+++ b/kupfer/plugin/thunderbird.py
@@ -7,7 +7,7 @@ import re
 
 from kupfer.objects import Leaf, Action, Source
 from kupfer.objects import TextLeaf, UrlLeaf, RunnableLeaf, AppLeafContentMixin
-from kupfer.helplib import FilesystemWatchMixin, PicklingHelperMixin
+from kupfer.helplib import FilesystemWatchMixin
 from kupfer import utils, icons
 
 from kupfer.plugin import thunderbird_support as support
@@ -93,14 +93,13 @@ class NewMailAction(Action):
 		return False
 
 
-class ContactsSource(AppLeafContentMixin, Source, FilesystemWatchMixin, PicklingHelperMixin):
+class ContactsSource(AppLeafContentMixin, Source, FilesystemWatchMixin):
 	appleaf_content_id = ('thunderbird', 'icedove')
 
 	def __init__(self, name=_("Thunderbird Address Book")):
 		Source.__init__(self, name)
-		self.unpickle_finish()
 
-	def unpickle_finish(self):
+	def initialize(self):
 		abook_dir = support.get_addressbook_dir()
 		if not abook_dir or not os.path.isdir(abook_dir):
 			return



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]