[damned-lies] Updated links to https when available



commit 3dae5974107cd37ec8e7154336209b1041d466a8
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat May 14 11:20:03 2016 +0200

    Updated links to https when available

 README                                 |    6 ++--
 common/fields.py                       |    4 +-
 common/templatetags/list_to_columns.py |    2 +-
 damned-lies.doap                       |   10 ++++----
 damnedlies/settings.py                 |    2 +-
 stats/doap.py                          |    6 +++-
 stats/fixtures/sample_data.json        |    4 +-
 stats/tests/fixture_factory.py         |    4 +-
 templates/about.html                   |    6 ++--
 templates/base.html                    |   37 +++++++++++++++----------------
 templates/freeze-notification.txt      |    2 +-
 templates/help/reduced_po.html         |    2 +-
 templates/index.html                   |    2 +-
 templates/teams/team_base.html         |    2 +-
 templates/teams/team_detail.html       |    2 +-
 templates/teams/team_edit.html         |    2 +-
 16 files changed, 47 insertions(+), 46 deletions(-)
---
diff --git a/README b/README
index b71f543..db7ae7f 100644
--- a/README
+++ b/README
@@ -103,7 +103,7 @@ OpenID support
 
 If you want OpenID support, install django-openid-auth package:
 
-http://pypi.python.org/pypi/django-openid-auth/
+https://pypi.python.org/pypi/django-openid-auth/
 
 Set USE_DJANGO_OPENID to True in your local_settings.py.
 
@@ -116,7 +116,7 @@ Change:
   claimed_id = models.TextField(max_length=2047, unique=True)
 To:
   claimed_id = models.CharField(max_length=255, unique=True)
-See bug http://code.djangoproject.com/ticket/2495
+See bug https://code.djangoproject.com/ticket/2495
 
 Databases
 =========
@@ -157,7 +157,7 @@ DATABASES = {
 Grep for ANSI_QUOTES in the source code to find the models.py which
 use a hack to workaround the double quotes interpretation in MySQL.
 The best solution is to run the MySQL server with the ANSI_QUOTES
-mode: http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html
+mode: http://dev.mysql.com/doc/refman/5.7/en/sql-mode.html
 (sql-mode="ANSI_QUOTES" in my.cnf) but it can be dangerous for other
 applications.
 
diff --git a/common/fields.py b/common/fields.py
index 25077ee..b1fe741 100644
--- a/common/fields.py
+++ b/common/fields.py
@@ -1,5 +1,5 @@
 #-*- coding: utf-8 -*-
-# From: http://djangosnippets.org/snippets/1979/
+# From: https://djangosnippets.org/snippets/1979/
 import json
 
 from django import forms
@@ -53,7 +53,7 @@ class DictionaryField(models.Field):
         return super(DictionaryField, self).formfield(**defaults)
 
 
-# From http://djangosnippets.org/snippets/1478/
+# From https://djangosnippets.org/snippets/1478/
 
 class JSONField(models.TextField):
     """JSONField is a generic textfield that neatly serializes/unserializes
diff --git a/common/templatetags/list_to_columns.py b/common/templatetags/list_to_columns.py
index 75b1c9e..2ba5e40 100644
--- a/common/templatetags/list_to_columns.py
+++ b/common/templatetags/list_to_columns.py
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 #
-# Based on http://www.djangosnippets.org/snippets/889/
+# Based on https://www.djangosnippets.org/snippets/889/
 # Copyright (c) 2008 Stéphane Raimbault <stephane raimbault gmail com>
 #
 # This file is part of Damned Lies.
diff --git a/damned-lies.doap b/damned-lies.doap
index d39ba53..267e830 100644
--- a/damned-lies.doap
+++ b/damned-lies.doap
@@ -1,15 +1,15 @@
 <Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
          xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";
          xmlns:foaf="http://xmlns.com/foaf/0.1/";
-         xmlns:gnome="http://api.gnome.org/doap-extensions#";
+         xmlns:gnome="https://api.gnome.org/doap-extensions#";
          xmlns="http://usefulinc.com/ns/doap#";>
 
   <name xml:lang="en">damned-lies</name>
   <shortdesc xml:lang="en">Web application for translation tracking</shortdesc>
-  <homepage rdf:resource="http://l10n.gnome.org/"; />
-  <bug-database rdf:resource="http://bugzilla.gnome.org/browse.cgi?product=damned-lies"/>
-  <mailing-list rdf:resource="http://mail.gnome.org/mailman/listinfo/gnome-i18n"; />
-  <category rdf:resource="http://api.gnome.org/doap-extensions#infrastructure"; />
+  <homepage rdf:resource="https://l10n.gnome.org/"; />
+  <bug-database rdf:resource="https://bugzilla.gnome.org/browse.cgi?product=damned-lies"/>
+  <mailing-list rdf:resource="https://mail.gnome.org/mailman/listinfo/gnome-i18n"; />
+  <category rdf:resource="https://api.gnome.org/doap-extensions#infrastructure"; />
   <programming-language>Python</programming-language>
 
   <maintainer>
diff --git a/damnedlies/settings.py b/damnedlies/settings.py
index f9a8f60..9766f00 100644
--- a/damnedlies/settings.py
+++ b/damnedlies/settings.py
@@ -38,7 +38,7 @@ NOTIFICATIONS_TO = ['gnome-i18n 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
+# https://en.wikipedia.org/wiki/List_of_tz_zones_by_name
 # although not all choices may be available on all operating systems.
 # If running in a Windows environment this must be set to the same as your
 # system time zone.
diff --git a/stats/doap.py b/stats/doap.py
index 00fcfbc..5d2e76d 100644
--- a/stats/doap.py
+++ b/stats/doap.py
@@ -25,11 +25,13 @@ class DoapParser(object):
         pers_attrs = [
             "{http://xmlns.com/foaf/0.1/}name";,
             "{http://xmlns.com/foaf/0.1/}mbox";,
-            "{http://api.gnome.org/doap-extensions#}userid";
+            "{http://api.gnome.org/doap-extensions#}userid";,
+            "{https://api.gnome.org/doap-extensions#}userid";,
         ]
         maintainers = []
         for maint in maint_tags:
-            name, mbox, uid = [maint[0].find(attr) for attr in pers_attrs]
+            name, mbox, uid = [res for res in [maint[0].find(attr) for attr in pers_attrs]
+                               if res is not None]
             maint = {'name': name.text, 'email': None, 'account': None}
             if mbox is not None:
                 maint['email'] = unquote(mbox.items()[0][1].replace("mailto:";, ""))
diff --git a/stats/fixtures/sample_data.json b/stats/fixtures/sample_data.json
index 2f2aace..413d09c 100644
--- a/stats/fixtures/sample_data.json
+++ b/stats/fixtures/sample_data.json
@@ -234,9 +234,9 @@
 },
 {
  "fields": {
-  "comment": "This is not a GNOME-specific module. Please submit your translation through the <a 
href=\"http://www.transifex.com/projects/p/shared-mime-info/c/default/\";>Transifex platform</a>.",
+  "comment": "This is not a GNOME-specific module. Please submit your translation through the <a 
href=\"https://www.transifex.com/freedesktop/shared-mime-info/\";>Transifex platform</a>.",
   "archived": false,
-  "vcs_web": "http://cgit.freedesktop.org/xdg/shared-mime-info/";,
+  "vcs_web": "https://cgit.freedesktop.org/xdg/shared-mime-info/";,
   "name": "shared-mime-info",
   "vcs_root": "git://anongit.freedesktop.org/xdg/shared-mime-info",
   "bugs_product": "shared-mime-info",
diff --git a/stats/tests/fixture_factory.py b/stats/tests/fixture_factory.py
index 27edd0f..1d2ac86 100644
--- a/stats/tests/fixture_factory.py
+++ b/stats/tests/fixture_factory.py
@@ -71,12 +71,12 @@ class FixtureFactory(TestCase):
         s_m_i = Module.objects.create(name="shared-mime-info", vcs_type="git",
             description="Shared MIME Info",
             vcs_root="git://anongit.freedesktop.org/xdg/shared-mime-info",
-            vcs_web="http://cgit.freedesktop.org/xdg/shared-mime-info/";,
+            vcs_web="https://cgit.freedesktop.org/xdg/shared-mime-info/";,
             bugs_base="https://bugs.freedesktop.org/";,
             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.com/projects/p/shared-mime-info/c/default/\";>Transifex platform</a>.")
+            "through the <a href=\"https://www.transifex.com/freedesktop/shared-mime-info/\";>Transifex 
platform</a>.")
 
         # Creating models: Domains
         dom = {}
diff --git a/templates/about.html b/templates/about.html
index 79d07e6..8bb3b0d 100644
--- a/templates/about.html
+++ b/templates/about.html
@@ -9,11 +9,11 @@
 <h1>{% trans "About Damned Lies" %}</h1>
 
 <p>{% trans "Damned Lies is the Web application used to manage the localisation (l10n) of the GNOME 
project." %}
-{% blocktrans with link='http://l10n.gnome.org/help/vertimus_workflow/' %}It allows you to browse live 
statistics. Damned Lies also manages the translation <a href="{{ link }}">workflow</a>.{% endblocktrans %}</p>
+{% blocktrans with link='https://l10n.gnome.org/help/vertimus_workflow/' %}It allows you to browse live 
statistics. Damned Lies also manages the translation <a href="{{ link }}">workflow</a>.{% endblocktrans %}</p>
 
 <p>{% blocktrans with gpl='http://www.gnu.org/licenses/gpl-2.0.html' 
bug='https://bugzilla.gnome.org/enter_bug.cgi?product=damned-lies' %}Damned Lies is Free Software, its source 
code is available under the <a href="{{ gpl }}">GNU GPL license</a>. You are welcome to participate to its 
improvement, especially by <a href="{{ bug }}">reporting bugs and enhancement proposals</a>.{% endblocktrans 
%}</p>
 
-<p>{% blocktrans with link='http://en.wikipedia.org/wiki/Lies,_damned_lies,_and_statistics' %}If you wonder 
about the name of this application, see <a href="{{ link }}">this article on Wikipedia</a>.{% endblocktrans 
%}</p>
+<p>{% blocktrans with link='https://en.wikipedia.org/wiki/Lies,_damned_lies,_and_statistics' %}If you wonder 
about the name of this application, see <a href="{{ link }}">this article on Wikipedia</a>.{% endblocktrans 
%}</p>
 
 <p>{% blocktrans with link='https://www.getsentry.com/' %}Many thanks to <a href="{{ link 
}}">GetSentry.com</a> for freely providing us an account on their online logging platform.{% endblocktrans 
%}</p>
 
@@ -27,7 +27,7 @@
 <h2>{% trans "Quick links" %}</h2>
 <table class="about_qlinks">
     <tr><th>{% trans "Project wiki" %}</th>
-        <td><a href="https://live.gnome.org/DamnedLies";>https://live.gnome.org/DamnedLies</a></td>
+        <td><a href="https://wiki.gnome.org/DamnedLies";>https://wiki.gnome.org/DamnedLies</a></td>
        </tr>
     <tr><th>{% trans "Bug tracking page" %}</th>
         <td><a 
href="https://bugzilla.gnome.org/browse.cgi?product=damned-lies";>https://bugzilla.gnome.org/browse.cgi?product=damned-lies</a></td>
diff --git a/templates/base.html b/templates/base.html
index 9ebe764..11a1e3f 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -34,7 +34,7 @@
     <div id="global_domain_bar">
         <div class="maxwidth">
             <div class="tab">
-                <a class="root" href="http://www.gnome.org/";>GNOME.org</a>
+                <a class="root" href="https://www.gnome.org/";>GNOME.org</a>
                 {% if user.is_authenticated %}
                     <a class="user" href="{% url 'person_detail_username' user.username %}">{{ user.person 
}}</a>
                 {% else %}
@@ -87,37 +87,36 @@
       <div class="links">
                <div>
                <ul id="menu-footer" class="menu">
-                       <li><a href="http://www.gnome.org";>{% trans "The GNOME Project" %}</a>
+                       <li><a href="https://www.gnome.org";>{% trans "The GNOME Project" %}</a>
                        <ul class="sub-menu">
-                               <li><a href="http://www.gnome.org/about/";>{% trans "About Us" %}</a></li>
-                               <li><a href="http://www.gnome.org/get-involved/";>{% trans "Get Involved" 
%}</a></li>
-                               <li><a href="http://www.gnome.org/teams/";>{% trans "Teams" %}</a></li>
-                               <li><a href="http://www.gnome.org/support-gnome/";>{% trans "Support GNOME" 
%}</a></li>
-                               <li><a href="http://www.gnome.org/contact/";>{% trans "Contact Us" %}</a></li>
-                               <li><a href="http://www.gnome.org/foundation/";>{% trans "The GNOME 
Foundation" %}</a></li>
+                               <li><a href="https://www.gnome.org/about/";>{% trans "About Us" %}</a></li>
+                               <li><a href="https://www.gnome.org/get-involved/";>{% trans "Get Involved" 
%}</a></li>
+                               <li><a href="https://www.gnome.org/teams/";>{% trans "Teams" %}</a></li>
+                               <li><a href="https://www.gnome.org/support-gnome/";>{% trans "Support GNOME" 
%}</a></li>
+                               <li><a href="https://www.gnome.org/contact/";>{% trans "Contact Us" %}</a></li>
+                               <li><a href="https://www.gnome.org/foundation/";>{% trans "The GNOME 
Foundation" %}</a></li>
                        </ul>
                </li>
                <li><a href="#">{% trans "Resources" %}</a>
                        <ul class="sub-menu">
                                <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="https://live.gnome.org/GnomeIrcChannels";>{% trans "IRC Channels" 
%}</a></li>
+                               <li><a href="https://wiki.gnome.org/";>{% trans "Wiki" %}</a></li>
+                               <li><a href="https://mail.gnome.org/mailman/listinfo";>{% trans "Mailing 
Lists" %}</a></li>
+                               <li><a href="https://wiki.gnome.org/GnomeIrcChannels";>{% trans "IRC Channels" 
%}</a></li>
                                <li><a href="https://bugzilla.gnome.org/";>{% trans "Bug Tracker" %}</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>
+                               <li><a href="https://wiki.gnome.org/Jhbuild";>{% trans "Build Tool" %}</a></li>
                </ul>
                </li>
-               <li><a href="http://www.gnome.org/news/";>{% trans "News" %}</a>
+               <li><a href="https://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="https://www.gnome.org/press/";>{% trans "Press Releases" %}</a></li>
+                       <li><a href="https://www.gnome.org/start/stable";>{% trans "Latest Release" %}</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="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>
+                       <li><a href="https://identi.ca/gnome";>{% trans "Identi.ca" %}</a></li>
+                       <li><a href="https://twitter.com/gnome";>{% trans "Twitter" %}</a></li>
                </ul>
                </li>
        </ul>
@@ -125,7 +124,7 @@
        </div> <!-- end of div.links -->
 
       <div id="footnotes">
-        {% trans "Copyright &copy; 2006" %}-{% now "Y" %} <strong><a href="http://www.gnome.org/";>{% trans 
"The GNOME Project" %}</a></strong>.
+        {% trans "Copyright &copy; 2006" %}-{% now "Y" %} <strong><a href="https://www.gnome.org/";>{% trans 
"The GNOME Project" %}</a></strong>.
         <br />
         <a href="{% url 'about' %}">{% trans "About Damned Lies" %}</a>.
         {% trans "Optimized for standards." %}
diff --git a/templates/freeze-notification.txt b/templates/freeze-notification.txt
index 41260f7..ece85f6 100644
--- a/templates/freeze-notification.txt
+++ b/templates/freeze-notification.txt
@@ -1,5 +1,5 @@
 This is an automatic notification from status generation scripts on:
-http://{{ ourweb }}.
+https://{{ ourweb }}.
 
 There have been following string additions to module '{{ module }}':
 
diff --git a/templates/help/reduced_po.html b/templates/help/reduced_po.html
index f90a981..cbce77d 100644
--- a/templates/help/reduced_po.html
+++ b/templates/help/reduced_po.html
@@ -8,7 +8,7 @@
 {% block content %}
 <p>{% blocktrans %}Damned Lies is able to filter strings which are seldom visible in user interfaces, so as 
translation teams can concentrate on most visible strings.{% endblocktrans %}</p>
 
-<p>{% blocktrans with "http://translate.sourceforge.net/wiki/toolkit/pogrep"; as pogrep_url%}The most typical 
case is the strings from schema files, hence the default filter is filtering out strings which come from 
files having "gschema.xml.in" in their name. Technically speaking, the filter is using the <a href="{{ 
pogrep_url }}">pogrep command from the Translate Toolkit</a>.{% endblocktrans %}</p>
+<p>{% blocktrans with 
"http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pogrep.html?id=toolkit/pogrep"; 
as pogrep_url%}The most typical case is the strings from schema files, hence the default filter is filtering 
out strings which come from files having "gschema.xml.in" in their name. Technically speaking, the filter is 
using the <a href="{{ pogrep_url }}">pogrep command from the Translate Toolkit</a>.{% endblocktrans %}</p>
 
 <p>{% blocktrans %}When you see a po file or a table header containing "(red.)" or "(reduced)", it means 
that the target files have been filtered as stated above.{% endblocktrans %}</p>
 
diff --git a/templates/index.html b/templates/index.html
index ccaddda..bd4ce79 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -17,7 +17,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='https://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://wiki.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 9d167b1..77b9b2f 100644
--- a/templates/teams/team_base.html
+++ b/templates/teams/team_base.html
@@ -48,7 +48,7 @@
           {% include "people/person_overview.html" %}
         {% empty %}
           <p><em>{% trans "This team has currently no coordinator." %}<br>
-             {% 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>
+             {% blocktrans with 
link="https://wiki.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 fbd7436..00ba4bd 100644
--- a/templates/teams/team_detail.html
+++ b/templates/teams/team_detail.html
@@ -52,7 +52,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="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>
+    <p><em>{% blocktrans %}There is currently no established team for this language. See <a 
href="https://wiki.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/templates/teams/team_edit.html b/templates/teams/team_edit.html
index cc690a0..c57900b 100644
--- a/templates/teams/team_edit.html
+++ b/templates/teams/team_edit.html
@@ -32,7 +32,7 @@ $(document).ready(function() {
       <td>{{ form.use_workflow }} <label for="id_use_workflow">{% trans "This team is using the translation 
workflow" %}</label>
   <tr><th valign="top"><span class="help">&nbsp;</span><br />{{ form.presentation.label }}:</th>
       <td>{{ form.presentation.label.errors }}
-          <span class="help">{% trans "This content may use <a 
href='http://en.wikipedia.org/wiki/Markdown'>Markdown</a> syntax" %}<br />
+          <span class="help">{% trans "This content may use <a 
href='https://en.wikipedia.org/wiki/Markdown'>Markdown</a> syntax" %}<br />
           {{ form.presentation }}</td></tr>
   <tr><td colspan="2" align="right"><input type="submit" value="{% trans 'Save' %}"/></td></tr>
 </table>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]