settings_overrides fixed
authorReimar Bauer <rb.proj AT googlemail DOT com>
Thu, 23 Jan 2014 18:14:46 +0100
changeset 2147dda7406a677
parent 213 1871ef3bee34
child 216 6d1dda68ec4c
settings_overrides fixed
pymove3d.py
     1.1 --- a/pymove3d.py	Thu Jan 23 17:52:52 2014 +0100
     1.2 +++ b/pymove3d.py	Thu Jan 23 18:14:46 2014 +0100
     1.3 @@ -20,13 +20,13 @@
     1.4  app.config['BABEL_DEFAULT_LOCALE'] = 'de'
     1.5  
     1.6  
     1.7 -def get_content(filename, settings=None):
     1.8 +def get_content(filename, overrides=None):
     1.9      content = u""
    1.10      if os.path.isfile(filename):
    1.11          with codecs.open(filename, 'r', 'utf-8') as f:
    1.12              rst_data = f.read()
    1.13          f.close()
    1.14 -        content = publish_parts(rst_data, writer_name='html', settings_overwrite=settings)['html_body']
    1.15 +        content = publish_parts(rst_data, writer_name='html', settings_overrides=overrides)['html_body']
    1.16      return content
    1.17  
    1.18  def get_topmenue():
    1.19 @@ -114,10 +114,10 @@
    1.20  @app.route("/privacy")
    1.21  def privacy():
    1.22      filename = os.path.join("templates", get_locale(), "rst", "privacy.rst")
    1.23 -    settings_overrides = {
    1.24 -                           'initial_header_level': 2,
    1.25 -                         }
    1.26 -    content = get_content(filename, settings=settings_overrides)
    1.27 +    overrides = {
    1.28 +                 'initial_header_level': 2,
    1.29 +                }
    1.30 +    content = get_content(filename, overrides=overrides)
    1.31      return render_template("/content.html", act="privacy", content=content)
    1.32  
    1.33  @app.route("/dates")
Impressum Datenschutzerklärung