Browse Source

Get rid of some deprecation warnings

Peter Justin 3 years ago
parent
commit
14cb1d398e

+ 1 - 1
flaskbb/configs/config.cfg.template

@@ -135,7 +135,7 @@ RATELIMIT_STORAGE_URL = "{% if redis_enabled %}{{ redis_uri }}{% else %}memory:/
 # ------------------------------
 # For all available caching types, have a look at the Flask-Cache docs
 # https://pythonhosted.org/Flask-Caching/#configuring-flask-caching
-CACHE_TYPE = "{% if redis_enabled %}redis{% else %}simple{% endif %}"
+CACHE_TYPE = "{% if redis_enabled %}RedisCache{% else %}SimpleCache{% endif %}"
 CACHE_DEFAULT_TIMEOUT = 60
 
 

+ 1 - 1
flaskbb/configs/default.py

@@ -234,7 +234,7 @@ class DefaultConfig(object):
     # ------------------------------
     # For all available caching types, have a look at the Flask-Cache docs
     # https://pythonhosted.org/Flask-Caching/#configuring-flask-caching
-    CACHE_TYPE = "simple"
+    CACHE_TYPE = "SimpleCache"
     # For redis:
     #CACHE_TYPE = "redis"
     CACHE_DEFAULT_TIMEOUT = 60

+ 1 - 1
flaskbb/markup.py

@@ -13,7 +13,7 @@ import re
 
 import mistune
 from flask import url_for
-from jinja2 import Markup
+from markupsafe import Markup
 from pluggy import HookimplMarker
 from pygments import highlight
 from pygments.formatters import HtmlFormatter

+ 1 - 1
flaskbb/plugins/utils.py

@@ -11,7 +11,7 @@
 """
 from flask import current_app, flash, redirect, url_for
 from flask_babelplus import gettext as _
-from jinja2 import Markup
+from markupsafe import Markup
 
 from flaskbb.extensions import db
 from flaskbb.plugins.models import PluginRegistry