[gimp-web/migrate/py3: 61/65] Modify base + download templates



commit 54b898ff28e8d813e25fa693d24971fbf4ab9950
Author: Pat David <patdavid gmail com>
Date:   Thu Jul 11 23:01:41 2019 -0500

    Modify base + download templates
    
    The base template is throwing an error when generating category
    feeds for ATOM.  I've commented that line out for now.
    
    The download templates use some python-y language that needed to
    be updated.  They _may_ work now - still need to check after I get
    a successful build going...

 themes/newgimp/templates/base.html                | 4 +++-
 themes/newgimp/templates/downloads-oldstable.html | 2 +-
 themes/newgimp/templates/downloads.html           | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/themes/newgimp/templates/base.html b/themes/newgimp/templates/base.html
index 6135f422..a3f78193 100644
--- a/themes/newgimp/templates/base.html
+++ b/themes/newgimp/templates/base.html
@@ -33,7 +33,9 @@
         <link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ 
SITENAME }} RSS Feed" />
         {% endif %}
         {% if CATEGORY_FEED_ATOM and category %}
-        <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" 
type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
+        {# NOTE:PLD This was throwing an error during py3 migration #}
+        {# <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" 
type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
+        #}
         {% endif %}
         {% if CATEGORY_FEED_RSS and category %}
         <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(category.slug) }}" 
type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" />
diff --git a/themes/newgimp/templates/downloads-oldstable.html 
b/themes/newgimp/templates/downloads-oldstable.html
index 64bbe288..fb1ad4c2 100644
--- a/themes/newgimp/templates/downloads-oldstable.html
+++ b/themes/newgimp/templates/downloads-oldstable.html
@@ -290,7 +290,7 @@
     <p>To allow you to check the integrity of the tarballs, here are the MD5 sums of the latest releases:</p>
 
     {% if GIMP.OLDSTABLE %}
-        {% for version, values in GIMP.OLDSTABLE.iteritems() %}
+        {% for version, values in GIMP.OLDSTABLE.items() %}
             {% if 'source' in values %}
             <p>
                 <strong>{{ values['source'].keys()[0] }}</strong><br>
diff --git a/themes/newgimp/templates/downloads.html b/themes/newgimp/templates/downloads.html
index 13653369..34d3fa5b 100644
--- a/themes/newgimp/templates/downloads.html
+++ b/themes/newgimp/templates/downloads.html
@@ -381,7 +381,7 @@
 
     {% if GIMP.STABLE %}
         <dl>
-        {% for version, values in GIMP.STABLE.iteritems() %}
+        {% for version, values in GIMP.STABLE.items() %}
             {% if 'source' in values %}
               <dt><strong>{{ values['source'].keys()[0] }}</strong>
               {% if 'sha256' in values['source'].values()[0] %}


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