def assign_properties(thing):
details = request_parameter(parameter="<STR_LIT>", optional=True)<EOL>if details:<EOL><INDENT>setattr(thing, "<STR_LIT>", loads(details))<EOL><DEDENT>for p in range(<NUM_LIT:5>):<EOL><INDENT>property_name = "<STR_LIT>" + str(p + <NUM_LIT:1>)<EOL>property = request_parameter(parameter=property_name, optional=True)<EOL>if property:<EOL><INDENT>setattr(thing, property_name, property)<EOL><DEDENT><DEDENT>session.commit()<EOL>
Assign properties to an object.

    When creating something via a post request (e.g. a node), you can pass the
    properties of the object in the request. This function gets those values
    from the request and fills in the relevant columns of the table.