コード例 #1
0
ファイル: property_set.py プロジェクト: elemel/boost-python
def create_with_validation (raw_properties):
    """ Creates new 'PropertySet' instances after checking
        that all properties are valid and converting incidental
        properties into gristed form.
    """
    property.validate (raw_properties)
    
    return create (property.make (raw_properties))
コード例 #2
0
def create_with_validation(raw_properties):
    """ Creates new 'PropertySet' instances after checking
        that all properties are valid and converting incidental
        properties into gristed form.
    """
    property.validate(raw_properties)

    return create(property.make(raw_properties))
コード例 #3
0
ファイル: property_set.py プロジェクト: elemel/boost-python
def create_from_user_input(raw_properties, jamfile_module, location):
    """Creates a property-set from the input given by the user, in the
    context of 'jamfile-module' at 'location'"""

    property.validate(raw_properties)

    specification = property.translate_paths(raw_properties, location)
    specification = property.translate_indirect(specification, jamfile_module)
    specification = property.expand_subfeatures_in_conditions(specification)
    specification = property.make(specification)
    return create(specification)
コード例 #4
0
def create_from_user_input(raw_properties, jamfile_module, location):
    """Creates a property-set from the input given by the user, in the
    context of 'jamfile-module' at 'location'"""

    property.validate(raw_properties)

    specification = property.translate_paths(raw_properties, location)
    specification = property.translate_indirect(specification, jamfile_module)
    specification = property.expand_subfeatures_in_conditions(specification)
    specification = property.make(specification)
    return create(specification)