def process_type_args(type_args, project):
    """
    Process the HTML form arguments from the custom type object

    The processing is strictly dependant on the class of the particular parameter. For instance,
    if the argument is a str the processed one will be the value of the Project's attribute named this way.

    :param attmap.AttMap type_args: the HTML form arguments from the type object
    :param peppy.Project project: the Project in the context of which the data should be processed
    :return dict: the dict with processed values
    """
    for k, v in type_args.iteritems():
        if isinstance(v, str):
            type_args[k] = getattr(project, v)
    return type_args
