~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to mainpage/settings.py

  • Committer: kaputtnik
  • Date: 2019-06-14 18:40:56 UTC
  • mfrom: (532.1.31 widelands)
  • Revision ID: kaputtnik-20190614184056-l0ha8pm5zais9mxk
Adapted code for use with python 3.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
288
288
## Allowed tags/attributes for 'bleach' ##
289
289
## Used for sanitizing user input.      ##
290
290
##########################################
291
 
BLEACH_ALLOWED_TAGS = [u'a',
292
 
                       u'abbr',
293
 
                       u'acronym',
294
 
                       u'blockquote',
295
 
                       u'br',
296
 
                       u'em',  u'i',  u'strong', u'b',
297
 
                       u'ul',  u'ol', u'li',
298
 
                       u'div', u'p',
299
 
                       u'h1',  u'h2', u'h3', u'h4', u'h5', u'h6',
300
 
                       u'pre', u'code',
301
 
                       u'img',
302
 
                       u'hr',
303
 
                       u'table', u'tbody', u'thead', u'th', u'tr', u'td',
304
 
                       u'sup',
 
291
BLEACH_ALLOWED_TAGS = ['a',
 
292
                       'abbr',
 
293
                       'acronym',
 
294
                       'blockquote',
 
295
                       'br',
 
296
                       'em',  'i',  'strong', 'b',
 
297
                       'ul',  'ol', 'li',
 
298
                       'div', 'p',
 
299
                       'h1',  'h2', 'h3', 'h4', 'h5', 'h6',
 
300
                       'pre', 'code',
 
301
                       'img',
 
302
                       'hr',
 
303
                       'table', 'tbody', 'thead', 'th', 'tr', 'td',
 
304
                       'sup',
305
305
                       ]
306
306
 
307
307
BLEACH_ALLOWED_ATTRIBUTES = {'img': ['src', 'alt'], 'a': [
368
368
 
369
369
 
370
370
try:
371
 
    from local_settings import *
 
371
    from .local_settings import *
372
372
except ImportError:
373
373
    pass