summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-04-22 19:51:05 (GMT)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-04-22 19:51:05 (GMT)
commitc68fbbe2ef451c7996003989ed1e95d29fe3b471 (patch)
treef09657de6eb129855a281b88835b62fa4495c6f2
parent9f9adc7ccc765abac8f2964fc2156af92561c3b9 (diff)
downloadgtimelog-c68fbbe2ef451c7996003989ed1e95d29fe3b471.tar.gz
gtimelog-c68fbbe2ef451c7996003989ed1e95d29fe3b471.tar.xz
Allow http for localhost
Useful if you are running a local django server
-rwxr-xr-xsrc/gtimelog/gtimelog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gtimelog/gtimelog.py b/src/gtimelog/gtimelog.py
index 830192f..783e1f4 100755
--- a/src/gtimelog/gtimelog.py
+++ b/src/gtimelog/gtimelog.py
@@ -1575,7 +1575,7 @@ class MainWindow(object):
dialog.format_secondary_text('Your configuration file is missing the report_to_url field which is necessary for timesheet uploading.')
dialog.connect('response', lambda d, i: dialog.destroy())
dialog.run()
- elif not self.settings.report_to_url.strip().startswith("https"):
+ elif not self.settings.report_to_url.strip().startswith("https") and not "localhost" in self.settings.report_to_url:
dialog = gtk.MessageDialog(self.main_window,
gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
gtk.MESSAGE_ERROR,