()
Helper for obtaining module and session numbers
Helper for obtaining module and session numbers
Helper for obtaining module and session numbers
def get_session_input():
    """ Helper for obtaining module and session numbers
    """
    try:
        display = color.B_GREEN + '[' + color.B_YELLOW + 'session' + color.B_GREEN + \
                  '] [' + color.B_YELLOW + 'number' + color.B_GREEN + ']' + \
                  color.B_WHITE + ' > '
        tmp = raw_input(display)
        (module, number) = tmp.split(' ')
        if not module is None and not number is None:
            return (int(module), int(number))
    except Exception:
        Error('Must specify [module] followed by [number]\n')
        return (None, None)
def get_session_input ( ) : try : display = color . B_GREEN + '[' + color . B_YELLOW + 'session' + color . B_GREEN + '] [' + color . B_YELLOW + 'number' + color . B_GREEN + ']' + color . B_WHITE + ' > ' tmp = raw_input ( display ) ( module , number ) = tmp . split ( ' ' ) if not module is None and not number is None : return ( int ( module ) , int ( number ) ) except Exception : Error ( 'Must specify [module] followed by [number]\n' ) return ( None , None )