예제 #1
0
파일: decorator.py 프로젝트: zachruan/zulip
def get_deployment_or_userprofile(role):
    return get_user_profile_by_email(
        role) if "@" in role else get_deployment_by_domain(role)
예제 #2
0
def get_deployment_or_userprofile(role):
    # type: (text_type) -> Union[UserProfile, Deployment]
    return get_user_profile_by_email(
        role) if "@" in role else get_deployment_by_domain(role)
예제 #3
0
파일: decorator.py 프로젝트: anteq/zulip
def get_deployment_or_userprofile(role):
    return get_user_profile_by_email(role) if "@" in role else get_deployment_by_domain(role)
예제 #4
0
파일: decorator.py 프로젝트: galexrt/zulip
def get_deployment_or_userprofile(role):
    # type: (text_type) -> Union[UserProfile, Deployment]
    return get_user_profile_by_email(role) if "@" in role else get_deployment_by_domain(role)