[damned-lies] Converted a bunch of links from http to https
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Converted a bunch of links from http to https
- Date: Wed, 6 Mar 2013 18:55:06 +0000 (UTC)
commit 01c64c22b10de5ef26a1d2b3a29749b162ce8e10
Author: Claude Paroz <claude 2xlibre net>
Date: Wed Mar 6 19:54:40 2013 +0100
Converted a bunch of links from http to https
languages/models.py | 4 ++--
people/forms.py | 2 +-
po/README.translators | 2 +-
settings.py | 2 +-
stats/fixtures/sample_data.json | 4 ++--
stats/models.py | 4 ++--
stats/tests/__init__.py | 8 ++++----
stats/tests/fixture_factory.py | 10 +++++-----
templates/about.html | 4 ++--
templates/base.html | 16 ++++++++--------
templates/index.html | 2 +-
templates/teams/team_base.html | 2 +-
templates/teams/team_detail.html | 2 +-
vertimus/models.py | 2 +-
vertimus/tests/__init__.py | 2 +-
15 files changed, 33 insertions(+), 33 deletions(-)
---
diff --git a/languages/models.py b/languages/models.py
index 8926f09..f981b2f 100644
--- a/languages/models.py
+++ b/languages/models.py
@@ -57,10 +57,10 @@ class Language(models.Model):
return self.plurals or _("Unknown")
def bugs_url_enter(self):
- return "http://bugzilla.gnome.org/enter_bug.cgi?product=l10n&component=%s%%20[%s]" %
(self.name, self.locale)
+ return "https://bugzilla.gnome.org/enter_bug.cgi?product=l10n&component=%s%%20[%s]" %
(self.name, self.locale)
def bugs_url_show(self):
- return
"http://bugzilla.gnome.org/buglist.cgi?product=l10n&component=%s%%20[%s]&bug_status=NEW&bug_status=REOPENED&bug_status=ASSIGNED&bug_status=UNCONFIRMED"
% (self.name, self.locale)
+ return
"https://bugzilla.gnome.org/buglist.cgi?product=l10n&component=%s%%20[%s]&bug_status=NEW&bug_status=REOPENED&bug_status=ASSIGNED&bug_status=UNCONFIRMED"
% (self.name, self.locale)
def get_release_stats(self, archives=False):
# FIXME Here be dragons
diff --git a/people/forms.py b/people/forms.py
index 8d0085e..21fb7ce 100644
--- a/people/forms.py
+++ b/people/forms.py
@@ -79,7 +79,7 @@ class RegistrationForm(forms.Form):
current_site = Site.objects.get_current()
subject = settings.EMAIL_SUBJECT_PREFIX + _(u'Account activation')
message = _(u"This is a confirmation that your registration on %s succeeded. To activate your
account, please click on the link below or copy and paste it in a browser.") % current_site.name
- message += "\n\nhttp://%s%s\n\n" % (current_site.domain, str(reverse("register_activation",
kwargs={'key': activation_key})))
+ message += "\n\nhttps://%s%s\n\n" % (current_site.domain, str(reverse("register_activation",
kwargs={'key': activation_key})))
message += _(u"Administrators of %s" % current_site.name)
send_mail(subject, message, settings.DEFAULT_FROM_EMAIL,
diff --git a/po/README.translators b/po/README.translators
index 73a815e..a69d2ed 100644
--- a/po/README.translators
+++ b/po/README.translators
@@ -4,7 +4,7 @@ is not compatible with standard GNOME intltool toolchain.
If you want to update a translation or begin a translation
for a new language, pick the respective po/pot file
through the Damned-Lies web interface.
-http://l10n.gnome.org/module/damned-lies
+https://l10n.gnome.org/module/damned-lies
For the curious, the pot file is generated with a special
wrapper script ('python manage.py update-trans en') and it needs
diff --git a/settings.py b/settings.py
index 4ac2b43..1bfdb56 100644
--- a/settings.py
+++ b/settings.py
@@ -36,7 +36,7 @@ DEFAULT_FROM_EMAIL = 'gnomeweb gnome org'
SERVER_EMAIL = 'gnomeweb gnome org'
# When in STRINGFREEZE, where to send notifications (gnome-i18n gnome org) on any POT changes
NOTIFICATIONS_TO = ['gnome-i18n gnome org']
-ENTER_BUG_URL = 'http://bugzilla.gnome.org/enter_bug.cgi?product=damned-lies&component=l10n.gnome.org'
+ENTER_BUG_URL = 'https://bugzilla.gnome.org/enter_bug.cgi?product=damned-lies&component=l10n.gnome.org'
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
diff --git a/stats/fixtures/sample_data.json b/stats/fixtures/sample_data.json
index 8443fd0..83cdee4 100644
--- a/stats/fixtures/sample_data.json
+++ b/stats/fixtures/sample_data.json
@@ -196,7 +196,7 @@
"model": "stats.module",
"fields": {
"comment": null,
- "vcs_web": "http://git.gnome.org/browse/gnome-hello/",
+ "vcs_web": "https://git.gnome.org/browse/gnome-hello/",
"name": "gnome-hello",
"vcs_root": "git://git.gnome.org/gnome-hello",
"bugs_product": "test",
@@ -232,7 +232,7 @@
"model": "stats.module",
"fields": {
"comment": null,
- "vcs_web": "http://git.gnome.org/browse/zenity/",
+ "vcs_web": "https://git.gnome.org/browse/zenity/",
"name": "zenity",
"vcs_root": "git://git.gnome.org/zenity",
"bugs_product": "zenity",
diff --git a/stats/models.py b/stats/models.py
index 61a81c7..4069019 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -805,7 +805,7 @@ class Domain(models.Model):
if not self.pot_method: # default is intltool
env = {"XGETTEXT_ARGS": "\"--msgid-bugs-address=%s\"" % self.module.get_bugs_enter_url()}
pot_command = "intltool-update -g '%(domain)s' -p" % {'domain': self.potbase()}
- elif self.pot_method.startswith('http://'):
+ elif self.pot_method.startswith(('http://', 'https://')):
# Get POT from URL and save file locally
import urllib2
req = urllib2.Request(self.pot_method)
@@ -1472,7 +1472,7 @@ class Statistics(models.Model):
[{'path':, 'hash':, 'fuzzy':, 'translated':, 'translated_file':}, ...] """
figures = []
if self.full_po and self.domain.dtype == 'doc':
- # something like: "http://git.gnome.org/browse/vinagre / plain / help / %s / %s ?h=master"
+ # something like: "https://git.gnome.org/browse/vinagre / plain / help / %s / %s ?h=master"
url_model = utils.url_join(self.branch.get_vcs_web_url(), self.branch.img_url_prefix,
self.domain.directory, '%s', '%s') + self.branch.img_url_suffix
for fig in self.full_po.figures:
diff --git a/stats/tests/__init__.py b/stats/tests/__init__.py
index 5f9e4b4..9b15601 100644
--- a/stats/tests/__init__.py
+++ b/stats/tests/__init__.py
@@ -85,7 +85,7 @@ class ModuleTestCase(TestCase):
def test_branch_methods(self):
self.assertTrue(self.branch.is_head())
self.assertEqual(self.branch.get_vcs_url(), "git://git.gnome.org/gnome-hello")
- self.assertEqual(self.branch.get_vcs_web_url(), "http://git.gnome.org/browse/gnome-hello/")
+ self.assertEqual(self.branch.get_vcs_web_url(), "https://git.gnome.org/browse/gnome-hello/")
@test_scratchdir
def test_branch_stats(self):
@@ -183,7 +183,7 @@ class ModuleTestCase(TestCase):
dom = Domain.objects.create(
module=self.mod, name='http-po',
description='UI Translations', dtype='ui',
- pot_method='http://l10n.gnome.org/POT/damned-lies.master/damned-lies.master.pot')
+ pot_method='https://l10n.gnome.org/POT/damned-lies.master/damned-lies.master.pot')
self.branch.checkout()
potfile, errs = dom.generate_pot_file(self.branch)
self.assertTrue(os.path.exists(potfile))
@@ -235,7 +235,7 @@ class ModuleTestCase(TestCase):
def test_update_doap_infos(self):
from stats.doap import update_doap_infos
update_doap_infos(self.mod)
- self.assertEqual(self.mod.homepage, "http://git.gnome.org/browse/gnome-hello")
+ self.assertEqual(self.mod.homepage, "https://git.gnome.org/browse/gnome-hello")
class StatisticsTests(TestCase):
@@ -296,7 +296,7 @@ class FigureTests(TestCase):
""" Test if figure urls are properly constructed """
stat = Statistics.objects.get(branch__module__name='gnome-hello', branch__name='master',
domain__dtype='doc', language__locale='fr')
figs = stat.get_figures()
- self.assertEqual(figs[0]['orig_remote_url'],
'http://git.gnome.org/browse/gnome-hello/plain/help/C/figures/gnome-hello-new.png?h=master')
+ self.assertEqual(figs[0]['orig_remote_url'],
'https://git.gnome.org/browse/gnome-hello/plain/help/C/figures/gnome-hello-new.png?h=master')
self.assertFalse('trans_remote_url' in figs[0])
@test_scratchdir
diff --git a/stats/tests/fixture_factory.py b/stats/tests/fixture_factory.py
index 55ce7c6..f9b6598 100644
--- a/stats/tests/fixture_factory.py
+++ b/stats/tests/fixture_factory.py
@@ -54,14 +54,14 @@ class FixtureFactory(TestCase):
# Creating models: Modules
gnome_hello = Module.objects.create(name="gnome-hello", vcs_type="git",
vcs_root="git://git.gnome.org/gnome-hello",
- vcs_web="http://git.gnome.org/browse/gnome-hello/",
- bugs_base="http://bugzilla.gnome.org",
+ vcs_web="https://git.gnome.org/browse/gnome-hello/",
+ bugs_base="https://bugzilla.gnome.org",
bugs_product="test", # This product really exists
bugs_component="test")
zenity = Module.objects.create(name="zenity", vcs_type="git",
vcs_root="git://git.gnome.org/zenity",
- vcs_web="http://git.gnome.org/browse/zenity/",
- bugs_base="http://bugzilla.gnome.org",
+ vcs_web="https://git.gnome.org/browse/zenity/",
+ bugs_base="https://bugzilla.gnome.org",
bugs_product="zenity",
bugs_component="general")
s_m_i = Module.objects.create(name="shared-mime-info", vcs_type="git",
@@ -72,7 +72,7 @@ class FixtureFactory(TestCase):
bugs_product="shared-mime-info",
bugs_component="general",
comment="This is not a GNOME-specific module. Please submit your translation " \
- "through the <a
href=\"http://www.transifex.net/projects/p/shared-mime-info/c/default/\">Transifex platform</a>.")
+ "through the <a
href=\"http://www.transifex.com/projects/p/shared-mime-info/c/default/\">Transifex platform</a>.")
# Creating models: Domains
dom = {}
diff --git a/templates/about.html b/templates/about.html
index ef62fc7..5366c69 100644
--- a/templates/about.html
+++ b/templates/about.html
@@ -31,10 +31,10 @@
<td><a
href="https://bugzilla.gnome.org/browse.cgi?product=damned-lies">https://bugzilla.gnome.org/browse.cgi?product=damned-lies</a></td>
</tr>
<tr><th>{% trans "Source code" %}</th>
- <td><a
href="http://git.gnome.org/browse/damned-lies/">http://git.gnome.org/browse/damned-lies</a></td>
+ <td><a
href="https://git.gnome.org/browse/damned-lies/">https://git.gnome.org/browse/damned-lies</a></td>
</tr>
<tr><th>{% trans "Workflow" %}</th>
- <td><a
href="http://l10n.gnome.org/help/vertimus_workflow/">http://l10n.gnome.org/help/vertimus_workflow</a></td>
+ <td><a
href="https://l10n.gnome.org/help/vertimus_workflow/">https://l10n.gnome.org/help/vertimus_workflow</a></td>
</tr>
</table>
diff --git a/templates/base.html b/templates/base.html
index c80bc2d..9005705 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -105,23 +105,23 @@
</li>
<li><a href="#">Resources</a>
<ul class="sub-menu">
- <li><a href="http://developer.gnome.org">{% trans "Developer Center"
%}</a></li>
- <li><a href="http://library.gnome.org">{% trans "Documentation" %}</a></li>
+ <li><a href="https://developer.gnome.org">{% trans "Developer Center"
%}</a></li>
+ <li><a href="https://help.gnome.org">{% trans "Documentation" %}</a></li>
<li><a href="http://live.gnome.org">{% trans "Wiki" %}</a></li>
<li><a href="http://mail.gnome.org/mailman/listinfo">{% trans "Mailing Lists"
%}</a></li>
- <li><a href="http://live.gnome.org/GnomeIrcChannels">{% trans "IRC Channels"
%}</a></li>
+ <li><a href="https://live.gnome.org/GnomeIrcChannels">{% trans "IRC Channels"
%}</a></li>
<li><a href="https://bugzilla.gnome.org/">{% trans "Bug Tracker" %}</a></li>
- <li><a href="http://git.gnome.org/browse/">{% trans "Development Code"
%}</a></li>
- <li><a href="http://live.gnome.org/Jhbuild">{% trans "Build Tool" %}</a></li>
+ <li><a href="https://git.gnome.org/browse/">{% trans "Development Code"
%}</a></li>
+ <li><a href="https://live.gnome.org/Jhbuild">{% trans "Build Tool" %}</a></li>
</ul>
</li>
<li><a href="http://www.gnome.org/news/">{% trans "News" %}</a>
<ul class="sub-menu">
<li><a href="http://www.gnome.org/press/">{% trans "Press Releases" %}</a></li>
<li><a href="http://www.gnome.org/start/stable">{% trans "Latest Release" %}</a></li>
- <li><a href="http://planet.gnome.org">{% trans "Planet GNOME" %}</a></li>
+ <li><a href="https://planet.gnome.org">{% trans "Planet GNOME" %}</a></li>
<li><a href="http://gnomejournal.org">{% trans "GNOME Journal" %}</a></li>
- <li><a href="http://news.gnome.org">{% trans "Development News" %}</a></li>
+ <li><a href="https://news.gnome.org">{% trans "Development News" %}</a></li>
<li><a href="http://identi.ca/gnome">{% trans "Identi.ca" %}</a></li>
<li><a href="http://twitter.com/gnome">{% trans "Twitter" %}</a></li>
</ul>
@@ -136,7 +136,7 @@
<a href="{% url 'about' %}">{% trans "About Damned Lies" %}</a>.
{% trans "Optimized for standards." %}
{% blocktrans with "<a href='http://www.canonical.com/'>Canonical</a>" as link %}Hosted by {{ link
}}.{% endblocktrans %}
- {% blocktrans with "<a href='http://www.djangoproject.com/'>Django</a>" as link %}Powered by {{ link
}}.{% endblocktrans %}
+ {% blocktrans with "<a href='https://www.djangoproject.com/'>Django</a>" as link %}Powered by {{
link }}.{% endblocktrans %}
</div>
</div>
</div>
diff --git a/templates/index.html b/templates/index.html
index d669880..bf5e4c7 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -18,7 +18,7 @@
<div class="bloc half first">
<h2><a href="{% url 'teams' %}">{% trans "Teams" %}</a></h2>
<p>{% trans "List of all GNOME Translation Teams, with full information such as primary contact
(coordinator), web pages and mailing list information." %}
- {% trans "If there is no team for your language, you can easily <a
href='http://live.gnome.org/TranslationProject/StartingATeam/'>start your own team</a>." %}
+ {% trans "If there is no team for your language, you can easily <a
href='https://live.gnome.org/TranslationProject/StartingATeam/'>start your own team</a>." %}
{% if user_language %}
{% with user_language.get_team_url as team_url %}
diff --git a/templates/teams/team_base.html b/templates/teams/team_base.html
index 5e8ba8a..f008581 100644
--- a/templates/teams/team_base.html
+++ b/templates/teams/team_base.html
@@ -49,7 +49,7 @@
{% include "people/person_overview.html" %}
{% empty %}
<p><em>{% trans "This team has currently no coordinator." %}<br>
- {% blocktrans with
link="http://live.gnome.org/TranslationProject/TeamCoordinatorResponsibilities" %}See <a href="{{ link
}}">the GTP Wiki</a> for more information about coordinatorship.{% endblocktrans %}</em></p>
+ {% blocktrans with
link="https://live.gnome.org/TranslationProject/TeamCoordinatorResponsibilities" %}See <a href="{{ link
}}">the GTP Wiki</a> for more information about coordinatorship.{% endblocktrans %}</em></p>
{% endfor %}
</div>
diff --git a/templates/teams/team_detail.html b/templates/teams/team_detail.html
index 41ac42f..e2ea022 100644
--- a/templates/teams/team_detail.html
+++ b/templates/teams/team_detail.html
@@ -51,7 +51,7 @@ $(document).ready(function() {
{% else %}
<h1>{{ team.get_description }}</h1>
- <p><em>{% blocktrans %}There is currently no established team for this language. See <a
href="http://live.gnome.org/TranslationProject/StartingATeam">the GTP Wiki</a> to get more information about
the process of building a new translation team.{% endblocktrans %}</em></p>
+ <p><em>{% blocktrans %}There is currently no established team for this language. See <a
href="https://live.gnome.org/TranslationProject/StartingATeam">the GTP Wiki</a> to get more information about
the process of building a new translation team.{% endblocktrans %}</em></p>
{% endif %}
diff --git a/vertimus/models.py b/vertimus/models.py
index f293692..c70db0e 100644
--- a/vertimus/models.py
+++ b/vertimus/models.py
@@ -482,7 +482,7 @@ class Action(ActionAbstract):
else:
msg = ugettext(msg)
current_site = Site.objects.get_current()
- url = "http://%s%s" % (current_site.domain, urlresolvers.reverse(
+ url = "https://%s%s" % (current_site.domain, urlresolvers.reverse(
'vertimus_by_names',
args = (
state.branch.module.name,
diff --git a/vertimus/tests/__init__.py b/vertimus/tests/__init__.py
index dce4353..99b0f16 100644
--- a/vertimus/tests/__init__.py
+++ b/vertimus/tests/__init__.py
@@ -40,7 +40,7 @@ class VertimusTest(TeamsAndRolesTests):
super(VertimusTest, self).setUp()
self.m = Module.objects.create(name='gedit', description='GNOME Editor',
- bugs_base="http://bugzilla.gnome.org/",
+ bugs_base="https://bugzilla.gnome.org/",
bugs_product='gedit', bugs_component='general',
vcs_type='svn', vcs_root="http://svn.gnome.org/svn",
vcs_web="http://svn.gnome.org/viewvc/gedit")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]