1

Removing some constants

Former-commit-id: 56c657766d277852f26c403ecaad16f5db0393ef
This commit is contained in:
Alex Yatskov 2013-11-10 18:13:21 -08:00
parent 082657b3af
commit bd5fe72ab2
3 changed files with 3 additions and 6 deletions

View File

@ -18,7 +18,4 @@
c = {
'appVersion': '0.10b',
'urlFeedback': 'http://foosoft.net/comments/',
'urlHomepage': 'http://foosoft.net/yomichan/',
'urlUpdates': 'http://foosoft.net/pub/projects/yomichan/updates.xml',
}

View File

@ -224,12 +224,12 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader):
def onActionHomepage(self):
url = QtCore.QUrl(constants.c['urlHomepage'])
url = QtCore.QUrl('http://foosoft.net/yomichan/')
QtGui.QDesktopServices().openUrl(url)
def onActionFeedback(self):
url = QtCore.QUrl(constants.c['urlFeedback'])
url = QtCore.QUrl('http://foosoft.net/comments/')
QtGui.QDesktopServices().openUrl(url)

View File

@ -28,7 +28,7 @@ class UpdateFinder(QtCore.QThread):
def run(self):
latest = None
try:
fp = urllib2.urlopen(constants.c['urlUpdates'])
fp = urllib2.urlopen('http://foosoft.net/pub/projects/yomichan/updates.xml')
data = fp.read()
doc = minidom.parseString(data)
root = doc.documentElement