r6848 - in bigboard/trunk/bigboard: . stocks/apps
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r6848 - in bigboard/trunk/bigboard: . stocks/apps
- Date: Mon, 29 Oct 2007 13:20:44 -0500 (CDT)
Author: hp
Date: 2007-10-29 13:20:43 -0500 (Mon, 29 Oct 2007)
New Revision: 6848
Removed:
bigboard/trunk/bigboard/logins.py
Modified:
bigboard/trunk/bigboard/stocks/apps/AppsStock.py
Log:
remove logins.py which was apparently unused
Deleted: bigboard/trunk/bigboard/logins.py
===================================================================
--- bigboard/trunk/bigboard/logins.py 2007-10-26 22:27:12 UTC (rev 6847)
+++ bigboard/trunk/bigboard/logins.py 2007-10-29 18:20:43 UTC (rev 6848)
@@ -1,38 +0,0 @@
-import sys
-
-import gobject
-
-import bigboard.google
-
-class LoginSystem(gobject.GObject):
- __gsignals__ = {
- "changed" : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, []),
- }
-
- def __init__(self):
- super(LoginSystem, self).__init__()
- self.accounts = {}
- googles = bigboard.google.get_googles()
- for g in googles:
- g.connect('auth', self.__on_google_auth)
- self.__on_google_auth(g, g.have_auth())
-
- def __on_google_auth(self, g, isauth):
- if isauth:
- self.accounts[g.get_storage_key()] = g.get_auth()
- else:
- if self.accounts.has_key(g.get_storage_key()):
- del self.accounts[g.get_storage_key()]
-
- def get_login(self, name):
- return self.accounts[name]
-
- def iter_logins(self):
- return self.accounts.iteritems()
-
-_singleton = None
-def get_logins():
- global _singleton
- if _singleton is None:
- _singleton = LoginSystem()
- return _singleton
Modified: bigboard/trunk/bigboard/stocks/apps/AppsStock.py
===================================================================
--- bigboard/trunk/bigboard/stocks/apps/AppsStock.py 2007-10-26 22:27:12 UTC (rev 6847)
+++ bigboard/trunk/bigboard/stocks/apps/AppsStock.py 2007-10-29 18:20:43 UTC (rev 6848)
@@ -76,8 +76,6 @@
self.__set_message('Loading...')
- bigboard.logins.get_logins().connect('changed', lambda *args: self.__sync())
-
self.__repo = apps.get_apps_repo()
self.__repo.connect('enabled-changed', self.__on_usage_enabled_changed)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]