def __init__(self, app=None, **kwargs):
self.acl = AccessControlList()<EOL>self.before_acl = {'<STR_LIT>': [], '<STR_LIT>': []}<EOL>self._role_model = kwargs.get('<STR_LIT>', RoleMixin)<EOL>self._user_model = kwargs.get('<STR_LIT>', UserMixin)<EOL>self._user_loader = kwargs.get('<STR_LIT>', lambda: current_user)<EOL>self.permission_failed_hook = kwargs.get('<STR_LIT>')<EOL>if app is not None:<EOL><INDENT>self.app = app<EOL>self.init_app(app)<EOL><DEDENT>else:<EOL><INDENT>self.app = None<EOL><DEDENT>
Initialize with app.