Beispiel #1
0
def get_domain_context(domain_type='commcare'):
    """
    Set context variables that are normally set based on the domain type
    according to what user/domain type is being registered.
    """

    dummy_domain = Domain()
    dummy_domain.commtrack_enabled = (domain_type == 'commtrack')
    return get_per_domain_context(dummy_domain)
Beispiel #2
0
def get_domain_context(domain_type="commcare"):
    """
    Set context variables that are normally set based on the domain type
    according to what user/domain type is being registered.
    """

    dummy_domain = Domain()
    dummy_domain.commtrack_enabled = domain_type == "commtrack"
    return get_per_domain_context(dummy_domain)
Beispiel #3
0
def get_dummy_domain(domain_type=None):
    domain_type = domain_type or 'commcare'
    dummy_domain = Domain()
    dummy_domain.commtrack_enabled = (domain_type == 'commtrack')
    return dummy_domain
Beispiel #4
0
def get_dummy_domain(domain_type=None):
    domain_type = domain_type or 'commcare'
    dummy_domain = Domain()
    dummy_domain.commtrack_enabled = (domain_type == 'commtrack')
    return dummy_domain