navigation.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:pycroft 作者: agdsn 项目源码 文件源码
def __init__(self, blueprint, text, description=None, blueprint_access=None):
        """Init the `BlueprintNavigation` instance.

        :param blueprint: A `flask.Blueprint` instance.
        :param text: The text for the top bar navigation.
        :param description: An optional anchor title.
        """
        self.blueprint = blueprint
        self.text = text
        self.description = description
        self._elements = []
        if blueprint_access is None:
            blueprint_access = BlueprintAccess(blueprint)
        self._access = blueprint_access
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号