@classmethod
def from_event(cls, event, shop=None):
    """
        Create Context from event.

        :type event: shuup.notify.Event
        :type shop: shuup.Shop
        :rtype: shuup.notify.script.Context
        """
    ctx = cls(event.variable_values, shop)
    ctx._log_target = event.log_target
    return ctx
