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
def get_collection_string(self) -> str: return User.get_collection_string()
def get_collection_string(self) -> str: return User.get_collection_string()