Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/c/o/commcare-hq-HEAD/corehq/apps/reminders/forms.py   commcare-hq(Download)
from corehq.apps.groups.models import Group
from corehq.apps.hqwebapp.crispy import BootstrapMultiField, FieldsetAccordionGroup, HiddenFieldWithErrors, FieldWithHelpBubble
from .models import (
    REPEAT_SCHEDULE_INDEFINITELY,
    CaseReminderEvent,
 
CONTENT_CHOICES = (
    (METHOD_SMS, _("SMS Message")),
    (METHOD_SMS_SURVEY, _("SMS Form Interaction")),
)
 
KEYWORD_CONTENT_CHOICES = (
    (METHOD_SMS, _("SMS Message")),
 
            message = {}
            if (method in [METHOD_SMS, METHOD_SMS_CALLBACK]) and (not self.cleaned_data.get("use_custom_content_handler")):
                for key in e["messages"]:
                    language = e["messages"][key]["language"].strip()
 
        if (default_lang is not None) and (method is not None) and (events is not None):
            if (method in [METHOD_SMS, METHOD_SMS_CALLBACK]) and (not self.cleaned_data.get("use_custom_content_handler")):
                for e in events:
                    if default_lang not in e.message:

src/c/o/commcare-hq-HEAD/corehq/apps/reminders/event_handlers.py   commcare-hq(Download)
from .models import (Message, METHOD_SMS, METHOD_SMS_CALLBACK, 
    METHOD_SMS_SURVEY, METHOD_IVR_SURVEY, METHOD_EMAIL, 
    METHOD_TEST, METHOD_SMS_CALLBACK_TEST, RECIPIENT_USER, 
    RECIPIENT_CASE, RECIPIENT_SURVEY_SAMPLE, CaseReminder)
from corehq.apps.smsforms.app import submit_unfinished_form
    )
    current_event = reminder.current_event
    if handler.method in [METHOD_SMS, METHOD_SMS_CALLBACK]:
        template_params = {}
        case = reminder.case
 
EVENT_HANDLER_MAP = {
    METHOD_SMS : fire_sms_event,
    METHOD_SMS_CALLBACK : fire_sms_callback_event,
    METHOD_SMS_SURVEY : fire_sms_survey_event,