~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to mainpage/views.py

  • Committer: franku
  • Date: 2019-04-11 15:06:09 UTC
  • mto: This revision was merged to the branch mainline in revision 540.
  • Revision ID: somal@arcor.de-20190411150609-801l72ffxgr6gkui
converted to python 3.6 using 2to3 script

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from django.conf import settings
2
 
from templatetags.wl_markdown import do_wl_markdown
 
2
from .templatetags.wl_markdown import do_wl_markdown
3
3
from operator import itemgetter
4
4
from django.core.mail import send_mail
5
5
from mainpage.forms import ContactForm
119
119
 
120
120
                # Add a subheader or/and the member(s)
121
121
                for entry in head['entries']:
122
 
                    if 'subheading' in entry.keys():
 
122
                    if 'subheading' in list(entry.keys()):
123
123
                        txt = txt + '###' + entry['subheading'] + '\n'
124
 
                    if 'members' in entry.keys():
 
124
                    if 'members' in list(entry.keys()):
125
125
                        for name in entry['members']:
126
126
                            txt = txt + '* ' + name + '\n'
127
 
                    if 'translate' in entry.keys():
 
127
                    if 'translate' in list(entry.keys()):
128
128
                        for transl in entry['translate']:
129
129
                            txt = txt + '* ' + transl + '\n'
130
130