示例#1
0
 def get_collection_elements_required_for_this(self, collection_element,
                                               config_entry):
     if collection_element.collection_string == MotionPollBallot.get_collection_string(
     ):
         output = [collection_element]
     elif collection_element.collection_string == VotingController.get_collection_string(
     ):
         output = [collection_element]
     elif collection_element.collection_string == AuthorizedVoters.get_collection_string(
     ):
         output = [collection_element]
     elif collection_element.collection_string == Keypad.get_collection_string(
     ):
         output = [collection_element]
     elif collection_element.collection_string == User.get_collection_string(
     ):
         output = [collection_element]
     elif collection_element.information.get('voting_prompt'):
         output = []
     else:
         output = super().get_collection_elements_required_for_this(
             collection_element, config_entry)
     return output
示例#2
0
 def get_collection_string(self) -> str:
     return User.get_collection_string()
示例#3
0
 def get_collection_string(self) -> str:
     return User.get_collection_string()