Source code for shoop.notify.actions.debug
# -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from shoop.notify.base import Action, Binding, ConstantUse
from shoop.notify.typology import Text
[docs]class SetDebugFlag(Action):
identifier = "set_debug_flag"
flag_name = Binding("Flag Name", Text, constant_use=ConstantUse.CONSTANT_ONLY, default="debug")
[docs] def execute(self, context):
context.set(self.get_value(context, "flag_name"), True)