コード例 #1
0
ファイル: posstatus.py プロジェクト: viarr/eve-wspace
def corpposstatus(user):
    #If we have the 'can_see_all_pos' permission, show all corp POSes.
    #If we do not, then only show those with manager = None
    if user.has_perm('POS.can_see_all_pos'):
        poses = CorpPOS.objects.all()
    else:
        poses = CorpPOS.objects.filter(manager=None)
    #Add status info and return
    status = add_status_info(poses)
    return {'posstatus': status}
コード例 #2
0
ファイル: posstatus.py プロジェクト: DaEngineer/eve-wspace
def corpposstatus(user):
    #If we have the 'can_see_all_pos' permission, show all corp POSes.
    #If we do not, then only show those with manager = None
    if user.has_perm('POS.can_see_all_pos'):
        poses = CorpPOS.objects.all()
    else:
        poses = CorpPOS.objects.filter(manager=None)
    #Add status info and return
    status = add_status_info(poses)
    return {'posstatus': status}
コード例 #3
0
ファイル: posstatus.py プロジェクト: viarr/eve-wspace
def myposstatus(user):
    #Get list of POSes where user is the manager
    poses = CorpPOS.objects.filter(manager=user)
    #Get status information and return
    status = add_status_info(poses)
    return {'posstatus': status}
コード例 #4
0
ファイル: posstatus.py プロジェクト: DaEngineer/eve-wspace
def myposstatus(user):
    #Get list of POSes where user is the manager
    poses = CorpPOS.objects.filter(manager=user)
    #Get status information and return
    status = add_status_info(poses)
    return {'posstatus': status}