コード例 #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)