* Fixing GC support and applying it to GV
authorepage <eopage@byu.net>
Thu, 28 May 2009 00:34:55 +0000 (00:34 +0000)
committerepage <eopage@byu.net>
Thu, 28 May 2009 00:34:55 +0000 (00:34 +0000)
* More single sourcing of version
* More lint

git-svn-id: file:///svnroot/gc-dialer/trunk@333 c39d3808-3fe2-4d86-a59f-b7f623ee9f21

Makefile
src/gc_backend.py
src/gv_backend.py
support/builddeb.py
support/pylint.rc

index e943777..c8dc124 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,7 @@ test: $(OBJ)
 build: $(OBJ)
        rm -Rf $(BUILD_PATH)
        mkdir $(BUILD_PATH)
 build: $(OBJ)
        rm -Rf $(BUILD_PATH)
        mkdir $(BUILD_PATH)
+       cp $(SOURCE_PATH)/constants.py  $(BUILD_PATH)
        cp $(SOURCE_PATH)/$(PROJECT_NAME).py  $(BUILD_PATH)
        $(foreach file, $(DATA), cp $(file) $(BUILD_PATH)/$(subst /,-,$(file)) ; )
        $(foreach file, $(SOURCE), cp $(file) $(BUILD_PATH)/$(subst /,-,$(file)) ; )
        cp $(SOURCE_PATH)/$(PROJECT_NAME).py  $(BUILD_PATH)
        $(foreach file, $(DATA), cp $(file) $(BUILD_PATH)/$(subst /,-,$(file)) ; )
        $(foreach file, $(SOURCE), cp $(file) $(BUILD_PATH)/$(subst /,-,$(file)) ; )
index 7600604..d5101f0 100644 (file)
@@ -331,9 +331,10 @@ class GCDialer(object):
                self._accessToken = atGroup.group(1)
 
                anGroup = self._accountNumRe.search(data)
                self._accessToken = atGroup.group(1)
 
                anGroup = self._accountNumRe.search(data)
-               if anGroup is None:
-                       raise RuntimeError("Could not extract account number from GrandCentral")
-               self._accountNum = anGroup.group(1)
+               if anGroup is not None:
+                       self._accountNum = anGroup.group(1)
+               else:
+                       warnings.warn("Could not extract account number from GrandCentral", UserWarning, 2)
 
                self._callbackNumbers = {}
                for match in self._callbackRe.finditer(data):
 
                self._callbackNumbers = {}
                for match in self._callbackRe.finditer(data):
index 514626a..2ae5230 100644 (file)
@@ -447,9 +447,10 @@ class GVDialer(object):
                self._token = tokenGroup.group(1)
 
                anGroup = self._accountNumRe.search(page)
                self._token = tokenGroup.group(1)
 
                anGroup = self._accountNumRe.search(page)
-               if anGroup is None:
-                       raise RuntimeError("Could not extract account number from GoogleVoice")
-               self._accountNum = anGroup.group(1)
+               if anGroup is not None:
+                       self._accountNum = anGroup.group(1)
+               else:
+                       warnings.warn("Could not extract account number from GoogleVoice", UserWarning, 2)
 
                self._callbackNumbers = {}
                for match in self._callbackRe.finditer(page):
 
                self._callbackNumbers = {}
                for match in self._callbackRe.finditer(page):
index 1cc2097..b2db873 100755 (executable)
@@ -1,13 +1,14 @@
 #!/usr/bin/python2.5
 
 from py2deb import *
 #!/usr/bin/python2.5
 
 from py2deb import *
+import constants
 
 
 
 
-__appname__ = "dialcentral"
+__appname__ = constants.__app_name__
 __description__ = "Simple interface to Google's GrandCentral(tm) service"
 __author__ = "Ed Page"
 __email__ = "eopage@byu.net"
 __description__ = "Simple interface to Google's GrandCentral(tm) service"
 __author__ = "Ed Page"
 __email__ = "eopage@byu.net"
-__version__ = "0.9.8"
+__version__ = constants.__version__
 __build__ = 0
 __changelog__ = '''
 0.9.8
 __build__ = 0
 __changelog__ = '''
 0.9.8
@@ -118,8 +119,8 @@ if __name__ == "__main__":
        p.section = "user/communication"
        p.arch = "all"
        p.urgency = "low"
        p.section = "user/communication"
        p.arch = "all"
        p.urgency = "low"
-       p.distribution = "chinook diablo"
-       p.repository = "extras-devel"
+       p.distribution = "chinook diablo fremantle"
+       p.repository = "extras"
        p.changelog = __changelog__
        p.postinstall = __postinstall__
        p.icon="26x26-dialcentral.png"
        p.changelog = __changelog__
        p.postinstall = __postinstall__
        p.icon="26x26-dialcentral.png"
index 37b9725..2a371a1 100644 (file)
@@ -53,7 +53,7 @@ load-plugins=
 #enable-msg=
 
 # Disable the message(s) with the given id(s).
 #enable-msg=
 
 # Disable the message(s) with the given id(s).
-disable-msg=W0403,W0612,W0613,C0103,C0111,C0301,R0903,W0142,W0603,R0904
+disable-msg=W0403,W0612,W0613,C0103,C0111,C0301,R0903,W0142,W0603,R0904,R0921,R0201
 
 [REPORTS]
 
 
 [REPORTS]