def is_active(self):
"""Tells if the blueprint of this instance is active.
Active is a blueprint if a view func of it is shown.
:return: True if active, False else.
"""
return self.blueprint.name == request.blueprint
文章目录