Minor code cleanup
authorepage <eopage@byu.net>
Sat, 9 Aug 2008 17:14:30 +0000 (17:14 +0000)
committerepage <eopage@byu.net>
Sat, 9 Aug 2008 17:14:30 +0000 (17:14 +0000)
git-svn-id: file:///svnroot/gc-dialer/trunk@130 c39d3808-3fe2-4d86-a59f-b7f623ee9f21

src/evo_backend.py
src/gc_backend.py
src/gc_dialer.py

index 04388bf..6af0012 100644 (file)
@@ -58,7 +58,8 @@ class EvolutionAddressBook(object):
                self._book = evolution.ebook.open_addressbook(self._bookId)
                return self
 
-       def factory_name(self):
+       @staticmethod
+       def factory_name():
                return "Evo"
 
        def get_contacts(self):
index 591c0dd..9af4df7 100644 (file)
@@ -267,7 +267,8 @@ class GCDialer(object):
        def open_addressbook(self, bookId):
                return self
 
-       def factory_name(self):
+       @staticmethod
+       def factory_name():
                return "GC"
 
        def get_contacts(self):
index 07ec3cc..6f5673e 100755 (executable)
@@ -160,7 +160,8 @@ class DummyAddressBook(object):
        def open_addressbook(self, bookId):
                return self
 
-       def factory_name(self):
+       @staticmethod
+       def factory_name():
                return ""
 
        def get_contacts(self):