for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from collections import OrderedDict
from flask import Blueprint, current_app as app, redirect
flask
This can be caused by one of the following:
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
# .scrutinizer.yml before_commands: - sudo pip install abc # Python2 - sudo pip3 install abc # Python3
This error could also result from missing __init__.py files in your module folders. Make sure that you place one file in each sub-folder.
__init__.py
from ..domain import Text
from ._utils import route
blueprint = Blueprint('legacy', __name__)
@blueprint.route("/templates/")
def legacy_templates_index():
return redirect(route('templates.get'))
@blueprint.route("/<key>")
def legacy_templates_detail(key):
template = app.template_service.find(key)
return redirect(route('templates.create', key=template.key))
@blueprint.route("/<key>/<path:path>")
def legacy_links_detail(**kwargs):
return redirect(route('links.get', **kwargs))
@blueprint.route("/_<code>")
def legacy_links_detail_encoded(code):
key, path = app.link_service.decode(code)
return redirect(route('links.get', key=key, path=path))