def user_portals_picker(self):
<EOL>portals = self.get_portals_list()<EOL>done = False<EOL>while not done:<EOL><INDENT>opts = [ (i, p) for i, p in enumerate(portals) ]<EOL>for opt, portal in opts:<EOL><INDENT>print("<STR_LIT>".format(opt, portal[<NUM_LIT:1>]))<EOL><DEDENT>valid_choices = [o[<NUM_LIT:0>] for o in opts]<EOL>choice = _input("<STR_LIT>".format(valid_choices) )<EOL>if int(choice) in valid_choices:<EOL><INDENT>done = True<EOL>self.set_portal_name( opts[int(choice)][<NUM_LIT:1>][<NUM_LIT:1>] )<EOL>self.set_portal_id( opts[int(choice)][<NUM_LIT:1>][<NUM_LIT:0>] )<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>".format(<EOL>choice, valid_choices))<EOL><DEDENT><DEDENT>
This function is broken and needs to either be fixed or discarded.

User-Interaction function. Allows user to choose which Portal
to make the active one.