[kupfer] Make Gmail, Picasa and Twitter sources user-reloadable



commit fcf397467cf2b63ae4aaa887642bc2ef7b7b9576
Author: Karol BÄ?dkowski <karol bedkowski gmail com>
Date:   Tue Apr 6 17:33:01 2010 +0200

    Make Gmail, Picasa and Twitter sources user-reloadable

 kupfer/plugin/gmail/__init__.py         |    4 +++-
 kupfer/plugin/google_picasa/__init__.py |    4 +++-
 kupfer/plugin/twitter/__init__.py       |    4 ++++
 3 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/plugin/gmail/__init__.py b/kupfer/plugin/gmail/__init__.py
index b869d0d..54a9b29 100644
--- a/kupfer/plugin/gmail/__init__.py
+++ b/kupfer/plugin/gmail/__init__.py
@@ -3,7 +3,7 @@ __kupfer_name__ = _("Gmail")
 __kupfer_sources__ = ("GoogleContactsSource", )
 __kupfer_actions__ = ('NewMailAction', )
 __description__ = _("Load contacts and compose new email in Gmail")
-__version__ = "2010-04-04"
+__version__ = "2010-04-06"
 __author__ = "Karol BÄ?dkowski <karol bedkowski gmail com>"
 
 import urllib
@@ -137,6 +137,8 @@ class GoogleContact(EmailContact):
 
 
 class GoogleContactsSource(ToplevelGroupingSource):
+	source_user_reloadable = True
+
 	def __init__(self, name=_("Gmail")):
 		super(GoogleContactsSource, self).__init__(name, "Contacts")
 		self._version = 4
diff --git a/kupfer/plugin/google_picasa/__init__.py b/kupfer/plugin/google_picasa/__init__.py
index 493e62f..acd2ab8 100644
--- a/kupfer/plugin/google_picasa/__init__.py
+++ b/kupfer/plugin/google_picasa/__init__.py
@@ -3,7 +3,7 @@ __kupfer_name__ = _("Google Picasa")
 __kupfer_sources__ = ("PicasaUsersSource", )
 __kupfer_actions__ = ('UploadFileToPicasa', 'UploadDirToPicasa')
 __description__ = _("Show albums and upload files to Picasa")
-__version__ = "2010-04-04"
+__version__ = "2010-04-06"
 __author__ = "Karol BÄ?dkowski <karol bedkowski gmail com>"
 
 import os.path
@@ -395,6 +395,8 @@ class PicasaPrivAlbumsSource(Source):
 
 
 class PicasaUsersSource(Source):
+	source_user_reloadable = True
+
 	def __init__(self, name=_("Picasa Albums")):
 		Source.__init__(self, name)
 		self._version = 2
diff --git a/kupfer/plugin/twitter/__init__.py b/kupfer/plugin/twitter/__init__.py
index baa6954..e0a4565 100644
--- a/kupfer/plugin/twitter/__init__.py
+++ b/kupfer/plugin/twitter/__init__.py
@@ -319,6 +319,8 @@ class InvisibleSourceLeaf (SourceLeaf):
 
 class TimelineSource(Source):
 	""" Source for main user timeline """
+	source_user_reloadable = True
+
 	def __init__(self, name=_("Twitter Timeline")):
 		Source.__init__(self, name)
 
@@ -345,6 +347,8 @@ class TimelineSource(Source):
 
 
 class FriendsSource(ToplevelGroupingSource):
+	source_user_reloadable = True
+
 	def __init__(self, name=_('Twitter Friends')):
 		super(FriendsSource, self).__init__(name, "Contacts")
 		self._version = 1



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