Closed signekb closed 1 week ago
Is this basically the same thing as https://github.com/seedcase-project/seedcase-sprout/issues/576 ? If so, we could rename edit_resource_properties_field
> edit_property_field
or edit_properties_field
.
@lwjohnst86 ?
Signature:
edit_property_field(properties: json, field: str, value: str) -> json:
Arguments:
properties
: json with propertiesfield
: string with field to editvalue
: string with value to add to the fieldReturns: json with properties with a field edited
Context: see the
create_properties_template
diagramThis function edits the field values to the defaults we use.
@signekb: I'm guessing we'll use this several times and might include a
edit_property_fields()
function - like withcreate_dir()
andcreate_dirs()
. What say you, @lwjohnst86 ?