def queue_defaults(queue_name, computer=None):
    """
    In this class you specify defaults methods which you can use for workflows
    or normal calculations.
    """
    """
    code = Code.get_from_string(codename)
    code2 = Code.get_from_string(codename2)
    computer = Computer.get(computer_n
    ame)
    """
    queue_resources = None
    print(queue_name)
    computers = {'iff003': {'th1': {'resources': {'num_machines': 1,
        'num_mpiprocs_per_machine': 12}, 'walltime_sec': 30 * 60},
        'th1_small': {'resources': {'num_machines': 1,
        'num_mpiprocs_per_machine': 12}, 'walltime_sec': 20 * 60}}}
    if computer:
        c_name = computer
        queue = computers.get(c_name, {}).get(queue_name, {})
        res = queue.get('resources', None)
        wt = queue.get('walltime_sec', None)
    else:
        c_name = None
        res = None
        wt = None
        for comp in computers.keys():
            queue = computers.get(comp, {}).get(queue_name, {})
            if queue:
                res = queue.get('resources', None)
                wt = queue.get('walltime_sec', None)
    queue_resources = {'resources': res, 'walltime_sec': wt}
    return queue_resources
