コード例 #1
0
ファイル: delegation_node.py プロジェクト: alkadis/vcv
 def is_overriden_by_own_decision(delegation):
     if not hasattr(delegation.scope, 'poll'):
         return True  # scope doesn't have polls -> can't self decide
     if delegation.scope.poll is None:
         # currently no poll in this cope -> can't self decide
         return True
     decision = Decision(delegation.principal, delegation.scope.poll)
     return not decision.is_self_decided()
コード例 #2
0
ファイル: delegation_node.py プロジェクト: phihag/adhocracy
 def is_overriden_by_own_decision(delegation):
     if not hasattr(delegation.scope, 'poll'):
         return True  # scope doesn't have polls -> can't self decide
     if delegation.scope.poll is None:
         return True  # currently no poll in this cope -> can't
         # self decide
     decision = Decision(delegation.principal, delegation.scope.poll)
     return not decision.is_self_decided()